@lightdash/common 0.1375.0 → 0.1377.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -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 &&
|