为了账号安全,请及时绑定邮箱和手机立即绑定

如何使用Amchart做虚线阈值?

如何使用Amchart做虚线阈值?

Go
偶然的你 2023-08-21 16:34:18
这是我正在使用的阈值:这是图表:const graphHighs = {  pk: series.pk,  lineColor: series.seriesMetaData.colorHex,  lineThickness: series.graph.thickness,  valueField: `${series.pk.uuid}${series.seriesMetaData.reportType}-highs`,  valueAxis: series.seriesMetaData.unitOfMeasurement,  lineAlpha: series.graph.opacity,  type: "line"};const graphLows = {  pk: series.pk,  lineColor: series.seriesMetaData.colorHex,  valueAxis: series.seriesMetaData.unitOfMeasurement,  lineThickness: series.graph.thickness,  valueField: `${series.pk.uuid}${series.seriesMetaData.reportType}-lows`,  lineAlpha: series.graph.opacity,  type: "line"}; 我需要将线更改为虚线(虚线),谢谢这是图像的链接:2
查看完整描述

1 回答

?
波斯汪

TA贡献1811条经验 获得超4个赞

需要添加 dashLength: 14。


const graphHighs = {

    pk: series.pk,

    lineColor: series.seriesMetaData.colorHex,

    lineThickness: series.graph.thickness,

    valueField: `${series.pk.uuid}${series.seriesMetaData.reportType}-highs`,

    valueAxis: series.seriesMetaData.unitOfMeasurement,

    lineAlpha: series.graph.opacity,

    **dashLength: 14,**

    type: 'line',

   }

const graphLows = {

     pk: series.pk,

     lineColor: series.seriesMetaData.colorHex,

     valueAxis: series.seriesMetaData.unitOfMeasurement,

     lineThickness: series.graph.thickness,

     valueField: `${series.pk.uuid}${series.seriesMetaData.reportType}-lows`,

     lineAlpha: series.graph.opacity,

     **dashLength: 14,**

     type: "line"

    }; 


查看完整回答
反对 回复 2023-08-21
  • 1 回答
  • 0 关注
  • 158 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信