【发布时间】:2022-12-11 03:23:31
【问题描述】:
当我缩小带有旗帜系列的 Highcharts Highstock 图表时,旗帜消失了。
【问题讨论】:
标签: typescript highcharts
当我缩小带有旗帜系列的 Highcharts Highstock 图表时,旗帜消失了。
【问题讨论】:
标签: typescript highcharts
解决方案是在系列配置中添加“allowOverlapX: true”。所以现在我对旗帜系列的配置是:
const series = {
type : 'flags',
id: seriesId,
data : flagDatas,
name: label,
onSeries : ticker, // Id of which series it should be placed on. If not defined
// the flag series will be put on the X axis
shape : 'flag', // Defines the shape of the flags.
grouping: false,
allowOverlapX: true
};
参考: https://api.highcharts.com/highstock/plotOptions.flags.allowOverlapX
【讨论】: