猿问

如何使用Amchart做虚线阈值?

这是我正在使用的阈值:

这是图表:


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


偶然的你
浏览 159回答 1
1回答

波斯汪

需要添加 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"    }; 
随时随地看视频慕课网APP

相关分类

Go
我要回答