如何在高图上添加虚线边框“区域”每个点的图表 [英] how to add dashed border on highcharts "area" graph for every point

查看:341
本文介绍了如何在高图上添加虚线边框“区域”每个点的图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个高度图区域图,对于该图上的每一点,我都想在彩色区域的底部添加一个虚线边框。 p>

解决方案

要向区域图中添加虚线边框,请提及 dashstyle ,其中每个系列都将以代表。



h2>

 系列:[{
名称:'USA',
data:[null,null,10421,10358 ,10295,10104],
dashStyle:'longdash'
}]



可能的值




  • 固体

  • ShortDash
  • ShortDot

  • ShortDashDot

  • ShortDashDotDot


  • Das h

  • LongDash

  • DashDot

  • LongDashDot

  • LongDashDotDot



Demo



Jsfiddle 在这里。

I have a highcharts "area" graph, and for every point on that graph i want to add a dashed border on the colored area all the way to the bottom.

解决方案

To add dashed borders to your area graph, mention the dashstyle in which each series will be represented in.

Sample Snippet

        Series:[{
            name: 'USA',
            data: [null, null, 10421, 10358, 10295, 10104 ],
            dashStyle: 'longdash'
        }]

Possible Values

  • Solid
  • ShortDash
  • ShortDot
  • ShortDashDot
  • ShortDashDotDot
  • Dot
  • Dash
  • LongDash
  • DashDot
  • LongDashDot
  • LongDashDotDot

Demo

Jsfiddle is here.

这篇关于如何在高图上添加虚线边框“区域”每个点的图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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