I am using the jquery flot library to plot a histogram. The bars in my chart are too thin, about 2 pixels wide. But when I set lineWidth: 15 bars become the width I want, but the first and last columns spill along the border of the graph. I found a simple test bar with a limited number of points that looks great when used locally. My conclusion is that maybe I have too much data, and therefore the bars are thin, unlike the number of points. But I hope that there is a way to make the bars be wider in another way so that they do not spill the border of the graph. Any suggestions are greatly appreciated. Here is what I have:
$.plot(this.get('datasets'), {
bars: {
show: true,
align: "center",
fill: true,
},
xaxis: {
mode: "time",
timezone: "browser",
tickLength: 0
}
});
source
share