@lightdash/common 0.1420.3 → 0.1421.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,6 +65,8 @@ export declare const PieChartLegendPositions: {
65
65
  };
66
66
  export type PieChartLegendPosition = keyof typeof PieChartLegendPositions;
67
67
  export declare const PieChartLegendPositionDefault: "horizontal" | "vertical";
68
+ export declare const PieChartLegendLabelMaxLengthDefault = 30;
69
+ export declare const PieChartTooltipLabelMaxLength = 40;
68
70
  export type SeriesMetadata = {
69
71
  color: string;
70
72
  };
@@ -81,6 +83,7 @@ export type PieChart = {
81
83
  groupSortOverrides?: string[];
82
84
  showLegend?: boolean;
83
85
  legendPosition?: PieChartLegendPosition;
86
+ legendMaxItemLength?: number;
84
87
  metadata?: Record<string, SeriesMetadata>;
85
88
  };
86
89
  export declare enum FunnelChartDataInput {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getHiddenTableFields = exports.getEChartsChartTypeFromChartKind = exports.getChartKind = exports.getChartType = exports.isSeriesWithMixedChartTypes = exports.getDefaultSeriesColor = exports.ECHARTS_DEFAULT_COLORS = exports.getSeriesId = exports.hashFieldReference = exports.getCustomLabelsFromTableConfig = exports.getCustomLabelsFromColumnProperties = exports.isPieChartConfig = exports.isTableChartConfig = exports.isBigNumberConfig = exports.isCartesianChartConfig = exports.isCompleteEchartsConfig = exports.isCompleteLayout = exports.isPivotReferenceWithValues = exports.CartesianSeriesType = exports.FunnelChartLegendPosition = exports.FunnelChartLabelPosition = exports.FunnelChartDataInput = exports.PieChartLegendPositionDefault = exports.PieChartLegendPositions = exports.PieChartValueLabels = exports.ComparisonDiffTypes = exports.ComparisonFormatTypes = exports.ChartType = exports.ChartKind = void 0;
3
+ exports.getHiddenTableFields = exports.getEChartsChartTypeFromChartKind = exports.getChartKind = exports.getChartType = exports.isSeriesWithMixedChartTypes = exports.getDefaultSeriesColor = exports.ECHARTS_DEFAULT_COLORS = exports.getSeriesId = exports.hashFieldReference = exports.getCustomLabelsFromTableConfig = exports.getCustomLabelsFromColumnProperties = exports.isPieChartConfig = exports.isTableChartConfig = exports.isBigNumberConfig = exports.isCartesianChartConfig = exports.isCompleteEchartsConfig = exports.isCompleteLayout = exports.isPivotReferenceWithValues = exports.CartesianSeriesType = exports.FunnelChartLegendPosition = exports.FunnelChartLabelPosition = exports.FunnelChartDataInput = exports.PieChartTooltipLabelMaxLength = exports.PieChartLegendLabelMaxLengthDefault = exports.PieChartLegendPositionDefault = exports.PieChartLegendPositions = exports.PieChartValueLabels = exports.ComparisonDiffTypes = exports.ComparisonFormatTypes = exports.ChartType = exports.ChartKind = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const assertUnreachable_1 = tslib_1.__importDefault(require("../utils/assertUnreachable"));
6
6
  var ChartKind;
@@ -49,6 +49,8 @@ exports.PieChartLegendPositions = {
49
49
  vertical: 'Vertical',
50
50
  };
51
51
  exports.PieChartLegendPositionDefault = Object.keys(exports.PieChartLegendPositions)[0];
52
+ exports.PieChartLegendLabelMaxLengthDefault = 30;
53
+ exports.PieChartTooltipLabelMaxLength = 40;
52
54
  var FunnelChartDataInput;
53
55
  (function (FunnelChartDataInput) {
54
56
  FunnelChartDataInput["ROW"] = "row";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1420.3",
3
+ "version": "0.1421.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [