Home Demos

A demonstration of a graph with two different vertical axes

This example demonstrates the use of two separate vertical axes.

The red curve is plotted against the vertical axis on the left side of the graph, while the blue curve is plotted against the vertical axis on the right. This is controlled using the axis2 setting on each JSPlot_DataSet instance. A value of y1 uses the left y axis, while y2 uses the right y axis.

Source code for this page



        

Follow