How to get the value from a ChartSeries

Here are the details:

currentChartSeries = FastLineSeries<PressureReading, DateTime>(
dataSource: _listPressureReading, //myChartDataList[counter],
xValueMapper: (PressureReading currentChatData, _) => currentChatData.time,
yValueMapper: (PressureReading currentChatData, _) => currentChatData.value,
);


I want to get the min and max DateTime in my Chart series:

ChartSeries minChartSeries = myChartSeries.reduce((currentChartSeries, nextChartSeries) =>
currentChartSeries.xValueMapper!(0).isBefore(nextChartSeries.xValueMapper!(0))
? currentChartSeries
: nextChartSeries);

How do I get the data DateTime from ChartSeries?



2 Replies 1 reply marked as answer

PE Peter September 23, 2021 04:50 AM UTC

Ok, I figure it out. Thanks


Marked as answer

SK Sriram Kiran Senthilkumar Syncfusion Team September 23, 2021 01:21 PM UTC

Hi Peter, 
  
Greetings from Syncfusion. 
  
We are glad to hear from you that your problem is resolved at our end. Please get in touch with us if you require further assistance and we are always happy in assisting you. 
  
Regards,  
Sriram Kiran 


Loader.
Up arrow icon