@lightdash/common 0.1378.3 → 0.1378.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,9 +90,9 @@ class CartesianChartDataModel {
90
90
  [field_1.DimensionType.DATE, field_1.DimensionType.TIMESTAMP].includes(column.dimensionType));
91
91
  const numericColumns = [...dimensions, ...metrics].filter((column) => 'dimensionType' in column &&
92
92
  column.dimensionType === field_1.DimensionType.NUMBER);
93
- const xColumn = categoricalColumns[0] ||
93
+ const xColumn = dateColumns[0] ||
94
+ categoricalColumns[0] ||
94
95
  booleanColumns[0] ||
95
- dateColumns[0] ||
96
96
  numericColumns[0] ||
97
97
  dimensions[0];
98
98
  if (xColumn === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1378.3",
3
+ "version": "0.1378.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [