Hi,
I'd like to understand something concerning the line is the series.
Here's my code :
Between 2 markers, I have a nice blue line.
Then I try to add a value for the XAxis, so I added the line:
.CategoryAxis(axis => axis.Categories(model => model.Date))
Now, the nice blue line has disappeared but the dates are displayed in on the axis ! Why ? How can I have my Xaxis with the dates and a nice blue line between the markers ?
Another little question : how to customize the dates so all dates are not displayed because it's a big mess on the axis :-)
Thanks
Sylvain
I'd like to understand something concerning the line is the series.
Here's my code :
@(Html.Kendo().Chart<
Noolibee.Presentation.Web.Administration.Areas.Nodes.Models.EnergyGraphModel
>()
.Name("intensityKendoChart")
.ChartArea(chart => chart.Background(""))
.DataSource(dataSource => dataSource.Read(read => read.Action("GetIntensityValues", "Plugins")))
.Series(series =>
{
series
.Line(line => line.Value)
.Name("Ampere")
.Color("blue")
.Tooltip(true)
.Width(2)
.Markers(marker => marker.Type(ChartMarkerShape.Circle).Size(4));
})
)
Between 2 markers, I have a nice blue line.
Then I try to add a value for the XAxis, so I added the line:
.CategoryAxis(axis => axis.Categories(model => model.Date))
Now, the nice blue line has disappeared but the dates are displayed in on the axis ! Why ? How can I have my Xaxis with the dates and a nice blue line between the markers ?
Another little question : how to customize the dates so all dates are not displayed because it's a big mess on the axis :-)
Thanks
Sylvain