如何使用 Amcharts 3 隐藏 Legend 的阈值?

how to hide the Threshold from Legend using Amcharts 3?

嘿,我正在使用 Amcharts 3,我需要隐藏图例中的阈值, 这是我使用图形高点和图形低点的阈值我需要添加以将其隐藏在图例中

1

                   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',
                        hiddenInLegend: true,
                    }

                    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',
                        hiddenInLegend: true,
                    }

您需要像这样添加 visibleInLegend = false:

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',
                        visibleInLegend: false,
                    }

                    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',
                        visibleInLegend: false,
                    }