@lightdash/common 0.1376.0 → 0.1377.1

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 &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1376.0",
3
+ "version": "0.1377.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [