Is it possible to have independent multiple axes in WPF graphs?

Jul 16, 2012 at 5:30 AM

Hello World,


Having independent multiple axes for each series in scientific graphs is very common condition.

The requirement is,

The graph can have more than one series. and each series is associated with separate Y axes and one X axis (Time).

E.g. Y1 axis shows temperature and Y2 axis shows pressure against Time on X axis.

Both axes may show different scales (range min - max) like temperature from 0 to 100 Degree kelvin & pressure from 300 to 900 kPa and accordingly the series will be plotted.

I am trying to use WPF for plotting graphs and studying Dynamic Data Display for that.

But I am not able to find feature of independent multiple axes in these controls.

Please help otherwise I have to drop the idea of using WPF.

Thanks in advance.

Jul 26, 2012 at 8:56 AM

Maybe this can help:


            source2 = new ObservableDataSource<DatePoint>();

            source2.SetXMapping(p => dateAxis.ConvertToDouble(p.Date));
            source2.SetYMapping(p => p.Value0);
            CultureInfo culture = CultureInfo.InvariantCulture;
            Assembly executingAssembly = Assembly.GetExecutingAssembly();

            CursorCoordinateGraph ccg = new CursorCoordinateGraph();
            ccg.XTextMapping = x => dateAxis.ConvertFromDouble(x).ToString(CultureInfo.CurrentCulture);

            ccg.YTextMapping = y => valueAxis.ConvertFromDouble(y).ToString();


different graphs

chartPlotter1.AddLineGraph(source2, new Pen(Brushes.Red, 2),
                new TrianglePointMarker {Size = 1.0,
                        Pen = new Pen(Brushes.Black, 2.0),
                new PenDescription("Data 1"));

Oct 19, 2012 at 5:17 AM

Hi guyys....

yeah with this i am bble to plot graphs...but i m unable to see 2 y axis ......