jpgraph for Emily

Emily wanted to know how to do this.

See here for horizontal bars documentation

  
See here for reversed axis documentation

   

I couldn’t get $bplot->SetWidth() to work, so used SetAbsWidth

Needed to stagger X axis values so bars didn’t overlap, so first series plotted at 0,2,4,6,8… and second at 1,3,5,7,9…

Once x axis data introduced to new Barplot, seems like rolls reversed, thus this

    $bplot1 = new BarPlot($datay1,$datax1);

rather than this

    $bplot1 = new BarPlot($datax1,$datay1);

About Wesley Wright

Born on a mountain top near New York City, Craziest state in the land of the pretty. Raised in the woods so's he knew every tree, Killed him a bear when he was only three.
This entry was posted in Projects, Scripts - Programming. Bookmark the permalink.

Leave a Reply