Cla*_*nio 1 javascript charts bar-chart apexcharts
我有一个显示用户体重的图表,我想在用户想要达到的特定体重处添加一条水平线(目标线)。
ApexCharts 有这个选项吗?
解决了
您可以使用注释添加水平或垂直线。
https://apexcharts.com/docs/annotations/
annotations: {
yaxis: [
{
y: 20,
borderColor: '#00E396',
label: {
borderColor: '#00E396',
style: {
color: '#fff',
background: '#00E396'
},
text: 'Y-axis annotation on 8800'
}
}
]
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5685 次 |
| 最近记录: |