关于时间堆积条形图的图表插件有什么建议吗?

我一直在寻找用于时间跟踪的图表插件,即.发动机时间跟踪图表如下图:

I've been spending quite some time looking for a charting plugin for time tracking, ie. Engine Time Tracking chart as following image:

一点解释:

绿色/红色/灰色表示引擎开启/引擎关闭/不可用横轴是每一天的时间线纵轴是每一天

我只是展示一个例子,希望这里有人对这种图表插件有任何想法.我不确定 HighCharts 堆叠条形图 是否可以做到这一点,因为我想要一个状态切换条形图,不是累积的.

I am just showing an example and expecting someone here has any idea about this kind of charting plugins. I am not sure whether HighCharts stacked bar chart can do that, since I want a status switching bar chart, not an accumulative one.

提前致谢.

推荐答案

你可以尝试使用柱状范围图或者用datetime类型的轴堆叠.

You can try to use column range chart or stacked with datetime type of axis.

http://www.highcharts.com/demo/columnrange

http://api.highcharts.com/highcharts#xAxis.type

相关文章