Hi,
I am using Sci chart library to plot the heart rate monitor graph.
I followed tutorials till 06 Tutorial and am able to draw graph with static data.
But as for plotting HRM graph I need, x axix to display current date and time and y-axix displaying BPM.
I tried to use ==>
final IAxis xAxis = sciChartBuilder.newDateAxis()
in my application , but when am executing it getting crashed.
Would anyone help how can I achieve this . Any help will be greatly appreciated.
Thanks,
Sushmita
- Sushmita Ghan asked 6 years ago
- You must login to post comments
Hi Sushmita Ghan,
If you’re using our tutorials as a base then you should also update TX type for data series to use DateAxis. In tutorial they are declared like this so they can be used with NumericAxis as xAxis:
final XyDataSeries lineData = sciChartBuilder.newXyDataSeries(Integer.class, Double.class).build();
final XyDataSeries scatterData = sciChartBuilder.newXyDataSeries(Integer.class, Double.class).build();
And DateAxis requires Date values – so you need to declare TX as Date and append Dates:
final XyDataSeries<Date, Double> lineData = sciChartBuilder.newXyDataSeries(Date.class, Double.class).build();
final XyDataSeries<Date, Double> scatterData = sciChartBuilder.newXyDataSeries(Date.class, Double.class).build();
Hope this will help you!
Best regards,
Yura
- Yura Khariton answered 6 years ago
- You must login to post comments
Please login first to submit.