Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
875
How to use both Y and Y2 axis on a Line Chart
posted

I have a set of data that for each date, I have 2 pieces of numeric data.  For example:

Date              Value1      Value2

01/01/2008     10.5             2

02/01/2008     20.6             4

03/01/2008     30.7             6

04/01/2008     40.8             8

I am trying to represent this on a line chart where "Value1" is plotted against the Y-Axis and "Value2" is plotted against the Y2-Axis.  I can create a set of NumericTimeSeries and add NumericTimeDataPoints using the date and the value in the "Value1" column.  I then add these NumericTimeSeries to the chart's Series.  The time series lines show up like expected.

I am also creating a different set of NumericTimeSeries with NumericTimeDataPoints using the same dates and the value from the "Value2" column.

How do I show this time series in the same chart so that "Value2" uses the Y2 axis instead of the Y axis that the "Value1" column is using?