是否可以使用highcharts绘制类似于以下屏幕截图的聊天记录?

时间:2019-09-13 06:44:45

标签: angular highcharts

我必须绘制如下图。在图表中,列宽应填充网格线区域。高图有可能吗?请忽略折线图。 enter image description here

1 个答案:

答案 0 :(得分:1)

您需要设置pointPlacement: 'between'和零pointPaddinggroupPadding

series: [{
    ...,
    pointPlacement: 'between',
    pointPadding: 0,
    groupPadding: 0
}]

实时演示: http://jsfiddle.net/BlackLabel/p2q73rxy/

API参考:

https://api.highcharts.com/highcharts/series.column.pointPlacement

https://api.highcharts.com/highcharts/series.column.pointPadding

https://api.highcharts.com/highcharts/series.column.groupPadding