I have two data sets, that I would like to overlay on a Grid. I would like to plot them on the same Grid, using the same X-axis, but each set would use a different Y-axis. For example, one data set may have Y values that range between 0 to 100, while the
other set may have values that range between 1000 to 10,000). The X values for both sets would range from 0 to 100. Y axis labels would be on the right and left sides of the Grid.
I've been able to use one X and Y axis rather easily, following the examples, but I'm not sure how to add a second Y axis and then add my data so it is associated with that second axis.
For my simple chart, my XAML looks like this (abbreviated)
Name="chart" BottomTitle="Time" LeftTitle="Value"
My code in MainPage.xaml.cs looks like this (abbreviated):
var linegraph = new
Coordinates dataSet = GetDataSet();
where Coordinates is my own class that manage a lists of X and Y coordinates.
I was thinking that I need to add another axis to lines.Children and then add additional data to that, but I'm not sure how that is done. Any suggestions would be appreciated.