Scenario:
I have a series of data,
and I would like to plot it in line chart.
The X Axis is time to milliseconds, Y axis is numeric data with at least three digit after decimal point,
and each time data is not in the same time step,
Example of my data:
Question:
I'm setting the CategoryAxis to milliseconds(1).
However, when I check the chart it only shows a few point,
and the data were in the wrong point.
Q1. Is the CategoryAxis AutobaseUnitStep setting wrong that made the data point mismatching?
Q2. How can I show more data point on grid?
Q3. How can I set the tooltip format to show data with at least 4 or 5 digit after decimal point, and the time to milliseconds?
Code
@(Html.Kendo().Chart(MyViewModel) .Name("dtchart") .Title("Displacement") .Legend(legend => legend .Position(ChartLegendPosition.Bottom) ) .ChartArea(chartArea => chartArea .Background("transparent") ) .SeriesDefaults(seriesDefaults => seriesDefaults.Line().Style(ChartSeriesStyle.Smooth) ) .Series(series => { series.Line(model => model.ReadData).Name("Displacement"); }) .ValueAxis(axis => axis .Numeric() ) .CategoryAxis(axis => axis .Categories( m => m.ReadTime) .Type(ChartCategoryAxisType.Date) .BaseUnit(ChartAxisBaseUnit.Fit) .Labels(labels => labels.Rotation(-90)) .Crosshair(c => c.Visible(true)) .AutoBaseUnitSteps(config => config.Milliseconds(1)) ) .Tooltip(tooltip => tooltip .Visible(true) .Shared(true) .Format("{0:N0}") ) )