O'Reilly logo

Learning jqPlot by Scott Gottreu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4, Horizontal and Stacked Bar Charts

  1. We need to switch their order from [[x, y], [x, y], [x, y]] to [[y, x], [y, x], [y, x]].
  2. We use the canvasOverlay option to create a horizontal or vertical line. Within this property, we must set show to true and create an objects array that holds the options for each line we will create.
  3. Under tickOptions, set showGridline to false for the axis you want to remove grid lines from. If you want to remove both the grid lines and the ticks, you can set show to false under tickOptions.
  4. Within the series array, you will need to create a property called pointLabels. Within this object, you pass an array to the label property. It is expected that there will be a label for each data point in the series.
  5. There are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required