FLOT: draw bar not starting from axis -


i trying draw bars not starting axis, mean, e.g., dataset [[1,2], [1,5]], want have bar between these 2 points, not [[1,0], [1,5]], starts xaxis.

is there plug-in can support this?

thanks!

for series of data bars can specify 3rd point bottom of bar. see api.txt details:

lines , points take 2 coordinates. filled lines , bars, can specify third coordinate bottom of filled area/bar (defaults 0).

here's example close want:

$.plot($("#placeholder"), [{     data: [[1,5,2]], //x=1, bottom of bar 2, top of bar 5     bars: { show: true, align:'center', barwidth:0.3 } }, { //your line series data , options here } ], options); 

Comments