2 LineSeries on 2 different YAxis

Nov 7, 2011 at 6:51 PM


Quick question. How can I make a chart that has two lineseries that have very different scales? How can I assign different y-axis to the two respective lineseries?


Thanks in advance.

Nov 7, 2011 at 9:26 PM

see the Amdahl's law example in the Example browser. Set focus on the OxyPlot control and press Ctrl+Alt+C. Paste the source into your code.

Define two vertical axes (at different positions or with different position tiers) and define a Key for each axis. Set the LineSeries.YAxisKey to select which axis to use.

Nov 8, 2011 at 2:53 PM

Great that works!


Didn't know you could copy paste the code.