开发者

How to control spaces/margin between bars?

开发者 https://www.devze.com 2023-03-04 08:40 出处:网络
I can\'t seem to find how to control spaces/margin between bars. I am trying to add 10px space between every bar. I could do this with CSS, thou开发者_运维技巧gh, this does not sound like a valid appr

I can't seem to find how to control spaces/margin between bars. I am trying to add 10px space between every bar. I could do this with CSS, thou开发者_运维技巧gh, this does not sound like a valid approach.

API documentation: http://people.iola.dk/olau/flot/API.txt


Actually, you can have control over the bar width simply decreasing the number of hours in the day. This can be achieved using:

barWidth: [number of hours] * 60 * 60 * 1000

Making [number of hours] anything below 24 will create spaces between the tabs.

0

精彩评论

暂无评论...
验证码 换一张
取 消