Hi,
In short, I am trying to do the same thing done here (https://www.scichart.com/questions/wpf/extend-latest-value-of-line-chart-to-right-of-view-port), except the types I am using are different and I am having trouble making it work.
We are using MVVM, where our data series is an XyDataSeries<DateTime, double> and our view models are LineRenderableSeriesViewModels. I am trying to make a custom class that inherits from one of those types so I can override the draw function just like the question I linked to did, so I don’t have to change away from any of the types we are already using. The problem is I am not seeing any overridable internal draw type of function for either of those two types. Is there one that I’m missing or is there a different way to approach this?
Thanks,
Clayton
- Clayton Johnson asked 6 months ago
- You must login to post comments
Hi Clayton,
Thanks for your inquiry.
If you are looking for a way to create a custom Renderable Series, we recommend using our CustomRenderableSeries API.
Here you can find more details:
SciChart WPF Documentation – Custom Series (CustomRenderableSeries) | WPF Chart Documentation
The mentioned API is also used in the following example provided in our WPF Examples Suite:
WPF Spline Line Scatter Chart – SciChart
Hope this helps.
Kind regards,
Lex,
SciChart Technical Support Engineer
- Lex answered 6 months ago
- You must login to post comments
Hi again,
As I said, we are using MVVM in our software. As I understand it, you normally add data to a surface using some type of RenderableSeries. But when you are using MVVM, you add data to a surface using a RenderableSeriesViewModel that has its own DataSeries (which actually contains the data).
If I am using MVVM and would like to customize how certain data is drawn onto my surface, how can I do that? As I understand it, I can’t simply use the CustomRenderableSeries API as BaseRenderableSeries is neither a RenderableSeriesViewModel nor a DataSeries.
How can I implement custom drawing while using MVVM? Does SciChart support this?
Thanks again,
Clayton
- Clayton Johnson answered 6 months ago
- last edited 6 months ago
- You must login to post comments
Please login first to submit.