Flexmonster Software License Agreement (“Agreement”) has been revised and is effective as of January 8, 2025.
The following modifications were made:
The modified version of Agreement is available here.
Downloading, installing, and/or continuing to use Flexmonster Software after January 8, 2025, constitutes Licensee’s acceptance of the terms and conditions of the modified version of Agreement. If Licensee does not agree to any of these terms and conditions, they must cease using Flexmonster Software and must not download, install, use, access, or continue to access Flexmonster Software. By continuing to use Flexmonster Software or renewing the license or maintenance after the effective date of these modifications to Agreement, Licensee accepts and agrees to be bound by the terms and conditions of the modified Agreement.
amcharts.getMeasureNameByIndex(rawData: Object, index: Number): String
Returns the name of a measure by its index from the data for the chart. Use amcharts.getMeasureNameByIndex()
to set numeric values for the chart.
Parameter/Type | Description |
---|---|
rawData Object | Raw data that contains the measure name. Check out the structure of rawData. The measures in rawData have the same order as in the slice. |
index Number | The index of the necessary measure. |
A string with the name of a measure at the specified index.
1) Setting the valueField
for the pie series:
am5percent.PieSeries.new(root, {
valueField: pivot.amcharts.getMeasureNameByIndex(rawData, 0),
// ...
})
2) Setting the valueYField
for line series:
let series = chart.series.push(am5xy.LineSeries.new(root, {
name: pivot.amcharts.getMeasureNameByIndex(rawData, 0),
xAxis: xAxis,
yAxis: yAxis,
valueYField: pivot.amcharts.getMeasureNameByIndex(rawData, 0),
valueXField: pivot.amcharts.getCategoryName(rawData),
}));
Specifying the amCharts 4 value axis:
let series = chart.series.push(new am4charts.ColumnSeries());
series.dataFields.valueY = pivot.amcharts.getMeasureNameByIndex(rawData, 0);