一、labels属性说明
Labels属性允许在HighCharts图表的任意位置添加任意的html代码。可以实现许多自定义内容。
二、labels属性详解
参数 | 子参数 | 说明 | 默认值 |
---|---|---|---|
items | —- | 一个html标签 | —- |
—- | html | html代码 | “” |
—- | style | 标签位置(只能是位置,其他css不行) | style: { left: ’100px’, top: ’100px’ } |
style | —- | 标签的颜色(这里的style和items中的style不同) | style: { color: ‘#3E576F’ } |
三、实例说明
http-equiv="content-type" content="text/html; charset=UTF-8"> id="container" style="min-width: 400px; height: 400px; margin: 0 auto">