在高图上绘制自定义线条 [英] drawing custom lines on highchart graph
问题描述
我最近一直在使用highchart api来绘制网站上的一些数据,我需要添加一个自定义的垂直线来象征发生的事情,例如新闻稿。
我曾经想过在图表中添加一个列元素作为一个单独的系列,但这并不理想。
如果有人有任何想法都会令人敬畏
感谢
您可以使用渲染器
来画线?
这里是渲染器的API文档。查看路径
函数。
另请检查 for jsfiddle for path
函数。
I have recently been working with the highchart api to plot some data on a website, and I have need to be able to add a custom vertical "line" to symbolise something happening for example a press release.
I have thought about adding a column element to the chart as a seperate series but this is less than ideal.
if anyone has any ideas that would be awesome
thanks
Can you use the the renderer
to draw the line?
Here is the API doc for renderer. Look at the path
function.
Also check the Try it for jsfiddle for path
function.
这篇关于在高图上绘制自定义线条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!