@lightdash/common 0.1376.0 → 0.1377.1
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.
@@ -296,7 +296,7 @@ class CartesianChartDataModel {
|
|
296
296
|
const shouldStack = display?.stack === true;
|
297
297
|
const xAxisReference = transformedData.indexColumn?.reference;
|
298
298
|
const series = transformedData.valuesColumns.map((seriesColumn, index) => {
|
299
|
-
const seriesFormat = Object.values(display?.series || {}).find((s) => s.yAxisIndex === index)?.format;
|
299
|
+
const seriesFormat = Object.values(display?.series || {}).find((s) => s.yAxisIndex === index)?.format ?? display?.yAxis?.[0]?.format; // TODO: don't always use the first y-axis format once there are multiple y-axes
|
300
300
|
const singleYAxisLabel =
|
301
301
|
// NOTE: When there's only one y-axis left, set the label on the series as well
|
302
302
|
transformedData.valuesColumns.length === 1 &&
|