javascript - highcharts 系列类型“标志”不显示系列外的点
问题描述
我使用了 highcharts 系列类型“标志”并有一些数据点。当我的数据点列表来自例如 [-100;100] 但某些标志值超出此范围时,我遇到了这种情况。我找不到任何解决方案来显示这些超出范围的标志。
解决方案
该标志不在line
系列上,因为 x 值超出范围:
series: [{
id: "data",
data: [
[1569269259533, 100],
[1569269319534, 100]
]
}, {
type: 'flags',
useHTML: true,
y: -18,
id: 'flags',
onSeries: 'data'
}],
chart: {
events: {
load: function(e) {
var flagSerie = this.get('flags');
flagSerie.setData([{
x: 1569269299533,
count: 3
}]);
}
}
}
现场演示:http: //jsfiddle.net/BlackLabel/rmonx6Lz/
API 参考: https ://api.highcharts.com/highstock/series.flags.onSeries
推荐阅读
- c# - Microsoft Graph SDK C# Newtonsoft.Json:从 JsonReader 读取 JObject 时出错
- google-chrome - 如何禁用从 chrome 下载视频、音频选项
- c# - Web 应用程序中的 WinSCP - connect() 失败
- typescript - 'jestmatchers' 类型上不存在'array contains'
- android - 尝试从空对象引用上的字段“int com.android.server.wm.Task.mTaskId”读取
- asp.net-core - 此处地图 - 添加新图标并重定向到新屏幕(在右上角的地图上添加)
- html - 在 Vuejs Template 中使用时,Bootstrap 图标不会出现在前端
- xpath - 是否可以通过 Xpath 在 Robot Framework 中同时等待两个 Web 元素?
- c# - .Net Core MVC 站点未显示在 MS Teams Web 中
- serialization - 为什么我创建的动态序列化组不允许指定属性的突变?