And in the code behind, I am using the lineseries in the .cs file of the usercontrol - as shown below :
LineSeries lineSeries = new LineSeries();
lineSeries.ItemsSource = viewModel.GraphData;
lineSeries.XBindingPath = "Date";
lineSeries.YBindingPath = Columns
lineSeries.IsSeriesVisible = true;
lineSeries.ShowTooltip = true;
And graph is shown below :
when the graph is displaying like this, what is the exact data on x axis ? Datetime or double values ??when we assign a datetime value with milliseconds (eg. 5/3/2022 3:34:55 PM), the graph is converting that datetime value into a double value (like 44680.67). This double value is NOT displaying anywhere in the Graph. Our wpf app receives an exact time value from another external source and want to match with the datetime values shown in the x axis here - it is not happening.
Why can't we get exact datetime value shown in the x axis ?? [it is used for displaying only ???].
MDMoneeshram Dhanabal Syncfusion Team October 17, 2022 07:47 AM
Hi Jassim Sharaf,
We have validated your query, and we would like to inform you that for DataTimeCatagoryAxis the XAxis values are converted to double since it is plotted based on Index value. And if you want to receive exact time value from another external source and match with the datetime values, then you need to change the Primary axis to DataTimeAxis as mentioned in the below code snippet.