Start/End Value from a bar on x axle, but we have also a value on y axle

28 views
Skip to first unread message

pleinx

unread,
Jan 14, 2016, 10:50:32 AM1/14/16
to Flot graphs
Hey together,

can someone help me with a start/end point for each bar?
i have create a quick scribble to show you what i mean.





my js code is currently like the example code:


data1 = [ [20,89.1], [89.1, 282] ];  // this is not working, sure

        // i like a format like this:
        data_test = [ [20, 89.1, 95.093] ];

        // or so
        data_test = [ [[20, 89.1], 95.093] ];

data = [ data1 ];
options = {
series: {
bars: {
show: true,
barWidth: 50
}
}
};


pleinx

unread,
Jan 15, 2016, 4:55:01 AM1/15/16
to Flot graphs
maybe this will someone help: https://github.com/flot/flot/pull/1261/files

i use the changes of this commit and it works fine by now.

will this features merge with the master as soon?

Pappas Xristos

unread,
Jan 16, 2016, 12:21:44 PM1/16/16
to flot-...@googlegroups.com
Hello and Happy new year,
$(function() {

var data = [ ["20", 95.093], ["89.1", 107.451];

$.plot("#placeholder", [ data ], {
series: {
bars: {
show: true,
barWidth: 0.6,
align: "center"
}
},
xaxis: {
mode: "categories",
tickLength: 0
}
});

// Add the Flot version string to the footer

$("#footer").prepend("Flot " + $.plot.version + " – ");
});

--

---
You received this message because you are subscribed to the Google Groups "Flot graphs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flot-graphs...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages