Good day.
Changing RolloverModifier SourceMode property to AllSeries, AllVisibleSeries and etc. take no effect.
In collection RolloverModifier.SeriesData.SeriesInfo we have only charts, that currently visible in chart field.
Is that bug?
Best regards
Sam
- binni asked 11 years ago
- You must login to post comments
I am considering applying server-side licensing for my javerScript application.
In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support-dev.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)
However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)
I wonder if there is a sample code implemented in C++ for server-side licensing.
Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?
- binni answered 11 years ago
- You must login to post comments
Hi Sam,
We have the example in our example suite called “Rollover callback”. There you can test SourceMode behavior: select appropriate mode in the dropbox on the top, select/deselect series by mouse clicks and observe series info reported in the legend. It seems to work as expected in the example, but feel free to post if you find something you believe is wrong.
Best regards,
Yuriy
- Yuriy Zadereckiy answered 11 years ago
-
Good example, but I cant change series IsVisible property, or scroll (zoom) chart field to make some series hidden. In this case invisible series not present in collection RolloverModifier.SeriesData.SeriesInfo аlthough that SourceMode=AllSeries.
-
I add to "Rollover callback" example zoom/scroll modifiers. Invisible series not presented in RolloverModifier.SeriesData.SeriesInfo (SourceMode=AllSeries)
-
And if SeriesA.IsVisible = false this series not present in RolloverModifier.SeriesData.SeriesInfo too (SourceMode=AllSeries).
- You must login to post comments
Hi Sam,
Thanks for getting in touch. I was just talking to Yuriy about this. This behaviour is by design, since many users bind N RenderableSeries to a single DataSeries and use IsVisible to switch between them. Consider the SciTrader example has Line, Candlestick, Mountain, Ohlc RenderableSeries types all bound to a single OhlcDataSeries. IsVisible is used to change the render-series type currently visible.
In the case the rollover showed these it would main the main OHLC series would be reported 4 times in the tooltip. Also for other cases where series are invisible, it would mean the rollover bullets would be hovering in the chart but with no series.
Just out of interest, what is it you want to achieve, and why do you need the values of invisible series reported by the rollover?
Best regards,
Andrew
- Andrew Burnett-Thompson answered 11 years ago
-
:( I am afraid that my level of English will not allow me to clearly explain why do I need show in rollower invisible series. I think that RolloverModifier.SourceMode work similar to LegendModifier.GetLegendDataFor. If RolloverModifier.SourceMode=AllSeries, then in collection RolloverModifier.SeriesData.SeriesInfo present ALL series.
-
Or may be there is a way to get all series (nearest to mouse) values by processing mouse position (in code)?
- You must login to post comments
Hi there,
We are going to provide a way to customize this rollover behavior via inheritance in the next update. For now, it is quite difficult to change it because of amount of code you need to write in derived class. It is possible to get all series values in certain point as you suggested via IRenderableSeries.HitTest(..) method:
private void SciChartSurfaceMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { // Perform the hit test relative to the GridLinesPanel var hitTestPoint = e.GetPosition(sciChartSurface.GridLinesPanel as UIElement); foreach (var renderableSeries in sciChartSurface.RenderableSeries) { // Perform hit test operation with interpolation HitTestInfo hitTestInfo = renderableSeries.HitTest(hitTestPoint, true); var seriesInfo = renderableSeries.GetSeriesInfo(hitTestInfo); } }
You could use this approach as a workaround till the next update. Please, let us know if it is suitable for you.
Best regards,
Yuriy
- Yuriy Zadereckiy answered 11 years ago
- You must login to post comments
Please login first to submit.