Commit 8628915f authored by Pithon Kabiro's avatar Pithon Kabiro
Browse files

Edit function: create series options line chart

Rename references
parent dacc1844
Showing with 4 additions and 4 deletions
+4 -4
......@@ -33,10 +33,10 @@ const createSeriesOptionsForLineChart = function (
buildingIdsPhenomenonNamesArr
) {
// An array of colors, in hexadecimal format, provided by the global Highcharts object
const seriesColors = Highcharts.getOptions().colors;
const seriesColorsArr = Highcharts.getOptions().colors;
// Create a copy of the colors array
const seriesColorsArr = [...seriesColors];
// Create a local copy of the colors array
const seriesColorsForLineChartArr = [...seriesColorsArr];
// Create an array of seriesOptions objects
// Assumes that the observation array of arrays and building IDs + phenomenon names array are of equal length
......@@ -53,7 +53,7 @@ const createSeriesOptionsForLineChart = function (
return {
name: `${buildingIdsPhenomenonNamesArr[i]}`,
data: formattedObsArray,
color: seriesColorsArr[i],
color: seriesColorsForLineChartArr[i],
turboThreshold: Number.MAX_VALUE, // #3404, remove after 4.0.5 release
};
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment