在高图上绘制自定义线条 [英] drawing custom lines on highchart graph

查看:107
本文介绍了在高图上绘制自定义线条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆