2 LineSeries on 2 different YAxis

Oystein Bjorke 6 lat temu 0
This discussion was imported from CodePlex

philmo74 wrote at 2011-11-07 19:51:


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.

objo wrote at 2011-11-07 22:26:

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.

philmo74 wrote at 2011-11-08 15:53:

Great that works!


Didn't know you could copy paste the code.