@oliasoft-open-source/charts-library 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -39706,8 +39706,8 @@ const useBarChartConfig = (chartRef, chart2) => {
|
|
|
39706
39706
|
const barDatasetsCopy = [...datasets, ...annotationsDatasets];
|
|
39707
39707
|
const generatedDatasets2 = barDatasetsCopy.map((barDataset, index2) => {
|
|
39708
39708
|
const colorSchema = COLORS;
|
|
39709
|
-
const colors2 = barDataset.data.map((_2
|
|
39710
|
-
const colorSelectionIndex = datasets.length > 1 ? index2 :
|
|
39709
|
+
const colors2 = barDataset.data.map((_2) => {
|
|
39710
|
+
const colorSelectionIndex = datasets.length > 1 ? index2 : 0;
|
|
39711
39711
|
return colorSchema[colorSelectionIndex] || generateRandomColor(COLORS);
|
|
39712
39712
|
});
|
|
39713
39713
|
const backgroundColors = barDataset.backgroundColor || colors2.map((color2) => color2 + ALPHA_CHANEL);
|