l .Pos" /> l .Pos" /> l .Pos"/>

Kendo UI Core Chart

145 Views Asked by At

Where can I find breaking changes when upgrading to kendo ui core?

For e.g. in previous version

Html.Kendo().Chart()
.Name("test")
.Legend(l => l
  .Position(ChartLegendPosition.Top)
  .Color("#111111") //This gives error .Color is not available
)
.ChartArea(chartarea => chartarea.Border(3, "#111111", ChartDashType.Dash)) //This gives error No overload method 'Border' takes 3 arguments

I am unable to find how to fix them and there are other controls with similar issues. So I would also like to know if there is any where I can look for all such breaking changes?

1

There are 1 best solutions below

1
Shai On BEST ANSWER

You can see breaking changes listed in the documentation here, sorted into years.

Edit:
Based on the API reference found here, it seems that your code should look something like this:

Html.Kendo().Chart()
.Name("test")
.Legend(legend => legend
    .Position(ChartLegendPosition.Top)
    .Labels(labels => labels.Color("#111111"))
)
.ChartArea(chartarea => chartarea
    .Border(border => border
        .Width(3)
        .Color("#111111")
        .DashType(ChartDashType.Dash))

Edit #2: Changed to set legend label color.