@vizzly/dashboard 0.15.0-dev-d949562f7d69a747b6f32349c6a53a2dc3ed06f9 → 0.15.0-dev-93b3742a0242e8ad4ce4a7e1c46a6f72a42141e7

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.
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- import { ChartTheme } from '../../../types';
3
- import { LineChartRepresentation, LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
4
- import { DataType } from '../../../../../shared-logic/src/Field/types';
1
+ import React from 'react';
2
+ import { ScaleLinear, ScalePoint, ScaleTime } from '@visx/vendor/d3-scale';
5
3
  import { ChartDataDefinition, ConditionalFormattingRule, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
6
- import { ScaleLinear, ScaleTime, ScalePoint } from '@visx/vendor/d3-scale';
4
+ import { DataType } from '../../../../../shared-logic/src/Field/types';
5
+ import { LineChartRepresentation, LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
6
+ import { ChartTheme } from '../../../types';
7
7
  export declare type LineChartProps = {
8
8
  width: number;
9
9
  height: number;
@@ -22,7 +22,7 @@ export declare type LineChartProps = {
22
22
  };
23
23
  };
24
24
  export declare const LineChart: ({ chart, options, theme, width, height }: LineChartProps) => JSX.Element;
25
- export declare function Lines({ yKeys, visibleYKeys, data, xScaleKey, xScaleDataType, xScale, yScale, lines, curve, conditionalFormattingRules, showLabels, }: {
25
+ export declare const Lines: React.NamedExoticComponent<{
26
26
  yKeys: string[];
27
27
  lines: ShapeDefinition<LineStyles>[];
28
28
  conditionalFormattingRules: ConditionalFormattingRule[];
@@ -34,4 +34,7 @@ export declare function Lines({ yKeys, visibleYKeys, data, xScaleKey, xScaleData
34
34
  xScale: ScalePoint<string> | ScaleTime<number, number, never> | ScaleLinear<number, number, never>;
35
35
  yScale: ScaleLinear<number, number, never>;
36
36
  showLabels: boolean;
37
- }): JSX.Element;
37
+ labelDictionary?: {
38
+ [key: string]: string;
39
+ } | undefined;
40
+ }>;
@@ -21,5 +21,6 @@ export declare type BarGroupProps = {
21
21
  showDetailedSubGroupingLabels: boolean;
22
22
  labelStyle?: React.CSSProperties;
23
23
  showLabels?: boolean;
24
+ formattedData?: ChartDataDefinition[];
24
25
  };
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;
26
+ export declare function BarGroup({ data, keys, height, xKey, xScaleDataType, xScale, innerXScale, yScale, onClick, conditionalFormattingRules, bars, enableHover, yAxisLabels, yLabelPosition, showDetailedSubGroupingLabels, labelStyle, showLabels, formattedData, }: BarGroupProps): JSX.Element;