You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
YAxis.Add(newAxis{
.. datafrom the Axis
});ISerieselmnt=newLineSeries<DateTimePointScopeDatasetAdapter>{
...other properties
ScalesYAt=YAxis.Count()-1};elmnt.SeriesId=generatedUniqueId;PlotData.Add(elmnt);
When removing one data stream from the diagram (not the last) I also do remove the associated YAxis from the List.
Removing a data stream:
varexistingPlot=PlotData.FirstOrDefault(i =>i.SeriesId==parameter.Id);if(existingPlotis not null){//Read index for the connected YAxisint?yAxisPosition=(existingPlotasLineSeries<DateTimePointScopeDatasetAdapter>)!.ScalesYAt;if(yAxisPosition.HasValue){YAxis.RemoveAt(yAxisPosition.Value);}PlotData.Remove(existingPlot);}
But after doing this I have to reorder all the other ScalesYAt Values from the remaining data streams, because this property is an index to the list.
Describe the solution you'd like
Is it possible to reference the Yaxis directly? e.g.
ScalesYAt=YAxis[index]
The text was updated successfully, but these errors were encountered:
Daimonion1980
changed the title
ScalesXAt, ScalesYAt should reference directly to XAxis,Yaxis
ScalesXAt, ScalesYAt should reference directly to XAxis,Yaxis instead of index
May 2, 2024
Hello
I'm using LiveCharts to display often two oder more data stream of consecutive values (from a serial interface). Every data stream has its own YAxis and the connection to the data stream is done vie the ScaleYAt Property.
https://livecharts.dev/api/2.0.0-rc2/LiveChartsCore.SkiaSharpView.LineSeries-2#property-ScalesYAt
Adding a data stream:
When removing one data stream from the diagram (not the last) I also do remove the associated YAxis from the List.
Removing a data stream:
But after doing this I have to reorder all the other ScalesYAt Values from the remaining data streams, because this property is an index to the list.
Describe the solution you'd like
Is it possible to reference the Yaxis directly? e.g.
The text was updated successfully, but these errors were encountered: