Hi, I'm having an issue with kendo charts. Basically I need to get both the cost and consumption y-axes on the chart to cross the category axis at 0. Kendo has .AxisCrossingValue() which looks like its supposed to fix this issue by setting the value however it doesn't seem to work when there is more than one y axis on a graph.
Here is the code im using:
@(Html.Kendo().Chart<PlotPoint>()
.Name("InvoiceChart")
.Legend(legend => legend.Position(ChartLegendPosition.Bottom).Visible(true))
.ChartArea(chartArea => chartArea.Background("transparent"))
.PlotArea(pa => pa.Background("#FFFFFF"))
.AutoBind(false)
.SeriesDefaults(x => x.Column().Labels(y => y.Visible(true).Format("{0:N0}").Background("transparent").Position(ChartBarLabelsPosition.InsideEnd).Rotation(90)))
.ValueAxis(axis => axis.Numeric().Name("cons").Title("Consumption").Labels(labels => labels.Format("{0:N0}")).AxisCrossingValue(0))
.ValueAxis(axis => axis.Numeric().Name("cost").Title("Cost £").Labels(labels => labels.Format("{0:N0}")).AxisCrossingValue(0))
.HtmlAttributes(new { style = "height:480px;" })
.CategoryAxis(axis => axis.Labels(x => x.Rotation(-45)).AxisCrossingValue(0, 1000))
.Events(x => x.LegendItemClick("OnChartLegendClickToHideShowSeriesData")))
And here is what the graph looks like when there are negative y axis values:
Any help would be greatly appreciated.
Thanks