@vizzly/dashboard 0.15.0-dev-e5dc13ee284e1ad11cf74da28f72ac8c1d4f2dd7 → 0.15.0-dev-2e66368eafbf32ff149bef026779b1852b7b757f

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.
@@ -21,6 +21,7 @@ export interface FunnelChartProps extends ChartProps {
21
21
  styles?: BarStyleOverrides;
22
22
  idPrefix: ChartIdPrefix;
23
23
  enableHover?: boolean;
24
+ labels: boolean;
24
25
  }
25
26
  export declare const addChangeFromPreviousValuesToData: (data: ChartData[]) => {
26
27
  data: {
@@ -65,6 +65,7 @@ export interface Props extends ChartProps, FormatterProps {
65
65
  goalLine?: Array<GoalLine>;
66
66
  axisTitles?: AxisTitles;
67
67
  idPrefix: ChartIdPrefix;
68
+ labels?: boolean;
68
69
  }
69
70
  export declare type AxisTitles = {
70
71
  x?: string;
@@ -12,6 +12,7 @@ export declare type AreaChartProps = {
12
12
  curve: CurveTypes;
13
13
  showRoundedTotal: boolean;
14
14
  showLegend: boolean;
15
+ showLabels: boolean;
15
16
  removeStroke: boolean;
16
17
  axis: {
17
18
  showXAxisLabels: boolean;
@@ -11,6 +11,7 @@ export declare type BarChartProps = {
11
11
  stacked: boolean;
12
12
  showRoundedTotal: boolean;
13
13
  showLegend: boolean;
14
+ showLabels: boolean;
14
15
  removeStroke: boolean;
15
16
  axis: {
16
17
  showXAxisLabels: boolean;
@@ -10,6 +10,7 @@ export declare type ComboChartProps = {
10
10
  stacked: boolean;
11
11
  showRoundedTotal: boolean;
12
12
  showLegend: boolean;
13
+ showLabels: boolean;
13
14
  removeStroke: boolean;
14
15
  axis: {
15
16
  showXAxisLabels: boolean;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export declare type DataLabelProps = {
3
+ x: number;
4
+ y: number;
5
+ title: string;
6
+ dx?: number;
7
+ dy?: number;
8
+ color?: string;
9
+ backgroundColor?: string;
10
+ };
11
+ export declare const DataLabel: React.FC<DataLabelProps>;
@@ -0,0 +1 @@
1
+ export { DataLabel } from './DataLabel';
@@ -13,6 +13,7 @@ export declare type LineChartProps = {
13
13
  lineCurve: 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
14
14
  showRoundedTotal: boolean;
15
15
  showLegend: boolean;
16
+ showLabels: boolean;
16
17
  removeStroke: boolean;
17
18
  axis: {
18
19
  showXAxisLabels: boolean;
@@ -21,7 +22,7 @@ export declare type LineChartProps = {
21
22
  };
22
23
  };
23
24
  export declare const LineChart: ({ chart, options, theme, width, height }: LineChartProps) => JSX.Element;
24
- export declare function Lines({ yKeys, visibleYKeys, data, xScaleKey, xScaleDataType, xScale, yScale, lines, curve, conditionalFormattingRules, }: {
25
+ export declare function Lines({ yKeys, visibleYKeys, data, xScaleKey, xScaleDataType, xScale, yScale, lines, curve, conditionalFormattingRules, showLabels, }: {
25
26
  yKeys: string[];
26
27
  lines: ShapeDefinition<LineStyles>[];
27
28
  conditionalFormattingRules: ConditionalFormattingRule[];
@@ -32,4 +33,5 @@ export declare function Lines({ yKeys, visibleYKeys, data, xScaleKey, xScaleData
32
33
  xScaleDataType: DataType;
33
34
  xScale: ScalePoint<string> | ScaleTime<number, number, never> | ScaleLinear<number, number, never>;
34
35
  yScale: ScaleLinear<number, number, never>;
36
+ showLabels: boolean;
35
37
  }): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { Step } from '../../../../../shared-logic/src/WaterfallChart/types';
2
+ export declare const getStepYPosition: (step: Step, height: number, y: number) => number;
@@ -3,3 +3,4 @@ export { BarChart as BarChartV2 } from './components/BarChart';
3
3
  export { AreaChart as AreaChartV2 } from './components/AreaChart';
4
4
  export { BubbleChart as BubbleChartV2 } from './components/BubbleChart';
5
5
  export { RadarChart } from './components/RadarChart';
6
+ export { DataLabel } from './components/DataLabel';
@@ -20,5 +20,6 @@ export declare type BarGroupProps = {
20
20
  yLabelPosition?: number;
21
21
  showDetailedSubGroupingLabels: boolean;
22
22
  labelStyle?: React.CSSProperties;
23
+ showLabels?: boolean;
23
24
  };
24
- export declare function BarGroup({ data, keys, height, xKey, xScaleDataType, xScale, innerXScale, yScale, onClick, conditionalFormattingRules, bars, enableHover, yAxisLabels, yLabelPosition, showDetailedSubGroupingLabels, labelStyle, }: BarGroupProps): JSX.Element;
25
+ export declare function BarGroup({ data, keys, height, xKey, xScaleDataType, xScale, innerXScale, yScale, onClick, conditionalFormattingRules, bars, enableHover, yAxisLabels, yLabelPosition, showDetailedSubGroupingLabels, labelStyle, showLabels, }: BarGroupProps): JSX.Element;