add box plot

jab avatarjab created an issue

This is a request for jqplot to provide a box plot. It would look very similar to the candlestick plot which is provided already, so perhaps this would not be much work.

Thanks for the great library!

Comments (7)

  1. jab

    I just checked in a basic prototype which meets all my needs[*]. Feel free to include/modify as you see fit!

    I'm attaching an html file which creates an example box plot using the jqplot.boxplotRenderer.js linked to above.

    [*] Actually, the one thing I've not yet been able to figure out is how to get the highlight tooltip to appear when mousing over any part of a diagram (inside the box, over a whisker, etc). Currently it only appears when mousing over the min point. It looks like the candlestick plot is able to achieve this, but I haven't yet figured out how. Any help would be much appreciated!

  2. Jim Miller

    I am trying to use the prototype of the box plot. The y axis bounds are not being correct. It looks like the bounds are being set as if the plot is a line plot and indexing into data that is just [x,y].

    The box plot prototype was written a couple of years ago and I am trying to use on the most recent release of jqplot.

    I had the same issue when I started with a copy of the ohlc renderer code and just changed the names of the class.

  3. jpatel3

    I am able to access it now, though getting following when using the similar code as index.html in this thread -

    Is there any parameter which needs to be updated in order to scale with the axis values?

  4. jpatel3

    For some reason it was not able to scale yaxis on its own, Once I specified min, max for it, issue was resolved. (In case anyone is running into same issue.)

  5. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.