Home Demos

A sideways bar chart demonstration

This example demonstrates how to generate a bar chart with horizontal bars.

The roles of the horizontal and vertical axes are inverted by using the axis1 and axis2 settings on the JSPlot_DataSet instance describing the bar chart.

Allowed options are x1 (bottom), x2 (top), y1 (left) and y2 (right). On three-dimensional graphs, z1 and z2 are also valid options.

Source code for this page



        

Share

Follow