Jquery bar counter strip width

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,
       //lineWidth: 15
    },
    xaxis: {
       mode: "time",  //"categories",
       timezone: "browser",
       tickLength: 0
    }                   
});
+4
source share
1

lineWidth barWidth. , ; ( ), .

, , , , . , , . , , barWidth 60 * 60 * 1000 = 3600000.

+13

Source: https://habr.com/ru/post/1531068/


All Articles