Hello!
I’m in the process of building a live trading charting tool and one of the most requested features the traders have is a last traded price indicator on the right side of the chart (on the top of the Y-Axis).
I was looking at the “Create Annotations Dynamically” demo, and I think using the Axis Marker could be a solution.
Is that an approach you recommend? Can I make those markers read-only so that traders cannot move them around?
I just need to place the marker in the Y-Axis and move it automatically according to the last traded price.
I attached an screenshot so you have an idea of what I am trying to achieve.
Thanks.
- Diego Guerrero asked 11 years ago
- You must login to post comments
Hi again,
We actually have a built in modifier to do this already. This is called the SeriesValueModifier. The SeriesValueModifier iterates over the RenderableSeries, gets their latest values and outputs them to AxisMarkerAnnotations on the Y-Axis.
In SciChart v2.1.1 we have greatly improved this modifier.
Usage:
<s:SciChartSurface.ChartModifier>
<!– Provides axis markers per series –>
<s:SeriesValueModifier/>
</s:SciChartSurface.ChartModifier>
Take a look at the live demo: http://http://www.scichart.com/Abt.Controls.SciChart.SL.ExampleTestPage.html#/Abt.Controls.SciChart.Example;component/Examples/IWantTo/CreateRealtimeChart/UsingSeriesValueModifier.xaml
Best regards,
Andrew
- Andrew Burnett-Thompson answered 11 years ago
-
Hi there, what's not working? Our Seriesvaluemodifier? Can you check our examples suite as we have a working example there. Best regards, Andrew
-
Yes regarding seriesvaluemodifier, it is not working, I am pasting my code over here and could you please correct me if I am wrong, " <s:SciChartSurface.RenderableSeries > </s:SciChartSurface.RenderableSeries> " and inside ModifierGroup.... s is alias for scichart.
-
For some reason the comment window is not displaying entire code I am wanting to paste.
-
Hi Kedar, could you create a new question please? The comment window is restricted and doesn't allow code samples or line breaks. Also, I would encourage you to investigate our sample in our Examples Suite, as that does work https://www.scichart.com/Abt.Controls.SciChart.SL.ExampleTestPage.html#/Abt.Controls.SciChart.Example;component/Examples/IWantTo/CreateRealtimeChart/UsingSeriesValueModifier.xaml. Please take a look at our sample and if that is failing to work, then we have problem. Otherwise something else is wrong in your code. Best regards, Andrew
-
Hi Andrew, I have added a question, could you please help me with this? The link for the question is https://www.scichart.com/questions/question/seriesvaluemodifier-is-not-displaying-the-last-price
- 2 more comments
- You must login to post comments
Please login first to submit.