SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I’m creating lines chart with data from CSV file.
I have multiple series and each serie has its own YAxis.
As it comes from different CSV files, the number of series and their names are not known in advance.
I create the series in the code (MVVM) .
I’m using the trial version for 2 weeks now and before I purchase the licence, I have two questions:
1) I need to implement a function allowing the user to create multiple VerticalSliceModifier and display data for each serie on the graph and store data to a list or datatable.
Is it possible to have Vertical Slice Tooltip with multiple YAxis ?
If I create a vertical line annotation, can I get data for each serie crossing the line?
2) I need to be able to add annotation dynamically (measure, text, box, lines…).
Is there a way to save annotations to a list (and then to a file) so that if the user reopens the same CSV file he can load and display the corresponding annotations?
Thank you in advance for your answer,
Your question is a bit undefined and difficult to answer exactly.
need to implement a function allowing the user to create multiple VerticalSliceModifier and display data for each serie on the graph and store data to a list or datatable.
Sounds like how to build an application feature, rather than does SciChart support something or not. We can help with application development and consultancy and if that is of interest, talk to our sales team.
For specific questions on SciChart:
1/ Is it possible to have Vertical Slice Tooltip with multiple YAxis ?
Yes, of course, but the tooltip is specific to the series which is registered on an X,Y axis. For example say you have a chart, four YAxis, four series (each on one YAxis) and you cover over one of the series. The tooltip that is displayed will be for that series’ axis. Take a look at our tutorial on multiple axis to understand this concept more clearly.
2/ if I create a vertical line annotation, can I get data for each series crossing the line?
There’s a few ways to get the data out. One is using the Hit-Test API and another is binding to the SeriesInfo created by a specific modifier. Id have to look into it a bit more closely to see how to do that with VerticalSliceModifier but with RolloverModifier its easily possible.
You can certainly bind to VerticalLine.X1 or be notified when it changes and use Hit-Test API to get data out from a series. All things are possible with a little work.
3/ I need to be able to add annotation dynamically (measure, text, box, lines…).
Also possible, you can add/remove lines to VerticalSliceModifier.VerticalLines property.
4/ Is there a way to save annotations to a list (and then to a file)
Not out of the box but if you have the collection of VerticalSliceModifier.VerticalLines it would not be hard to iterate over that and persist X1 values, then restore.
Let me know if this helps. If you have further questions just ask
thank you very much for your answer.
I realize my question was not detailed enough.
My software could be described as an offline graph visualizer. Users export industrial process data to CSV files (one serie per sensor or PLC variable). Then they analyse the process with my software that creates XY chart (common DateTime Xaxis but one numerical YAxis per series) from the CSV.
For point 1 and 2, I want to do exactly what is done in your example “Using Vertical Slice Tooltips” but with multiple YAxis. Then copy the data of each slicer to a list.
I understand it could be done using the hit-test API, or binding to the SeriesInfo.
I will work on it and then I will have more specific questions.
Point 3 and 4 are not only related to VerticalSliceModifier.VerticalLines.
I want that a user (user1) of my software opens a CSV file, create some annotations like boxes, text, measurement, vertical or horizontal lines. Then I would like to store all annotations details (size, position, color, text…) in a list so that it can be exported to a file (annotations.json for example or another format) so that another user (user2) who opens the same CSV file, can open the annotations.json to display annotations of user1 on his own chart.
I hope this is clearer despite my rough English.
Please login first to submit.