@vizzly/dashboard 0.15.0-dev-307a9830cb4e82f036693ccfe2634f74381a2b72 → 0.15.0-dev-927f480c64f078c9b01edc81be29e4e33f862c8d

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
+ }>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { PolygonProps } from './types';
3
- export declare const Polygons: ({ chart, radius, visibleYKeys }: PolygonProps) => JSX.Element;
3
+ export declare const Polygons: ({ chart, radius, visibleYKeys, tooltipData, hoveredDataPointIndex }: PolygonProps) => JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { DataItem, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
3
+ import { LinesItemStyleLine } from '../../../../../shared-logic/src/RadarChart/types';
4
+ export declare const RadarCrosshairCircle: FunctionComponent<{
5
+ tooltipData: {
6
+ [keyId: string]: DataItem;
7
+ };
8
+ yKeys: string[];
9
+ legendItems: ShapeDefinition<LinesItemStyleLine>[];
10
+ conditionalFormattingRules?: any;
11
+ visibleYKeys: string[];
12
+ radius: number;
13
+ yScale: {
14
+ max: number | null;
15
+ min: number | null;
16
+ };
17
+ dataPointIndex: number;
18
+ totalDataPoints: number;
19
+ }>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LINE_STYLES: React.CSSProperties;
@@ -17,6 +17,10 @@ export declare type PolygonProps = {
17
17
  chart: RadarChartRepresentation;
18
18
  radius: number;
19
19
  visibleYKeys: string[];
20
+ tooltipData?: {
21
+ [keyId: string]: import('../../../../../shared-logic/src/RadarChart/types').DataItem;
22
+ } | null;
23
+ hoveredDataPointIndex?: number;
20
24
  };
21
25
  export declare type RadarShapeProps = {
22
26
  chart: RadarChartRepresentation;
@@ -14,7 +14,7 @@ export declare const CrosshairCircle: FunctionComponent<{
14
14
  xKey: string | null;
15
15
  margin: Margin;
16
16
  legendItems: ShapeDefinition<AreaStyles | LineStyles | BubbleStyles>[];
17
- conditionalFormattingRules: any;
17
+ conditionalFormattingRules?: any;
18
18
  visibleYKeys: string[];
19
19
  yScale: (yKey: string) => number;
20
20
  xScale: (value: string | number | Date) => number | undefined;
@@ -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;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { DataItem } from '../../../../shared-logic/src/RadarChart/types';
3
+ declare type RadarTooltipData = {
4
+ [keyId: string]: DataItem;
5
+ };
6
+ interface GetRadarTooltipDataArgs {
7
+ data: Array<{
8
+ [keyId: string]: DataItem;
9
+ }>;
10
+ event: React.MouseEvent<SVGElement>;
11
+ totalDataPoints: number;
12
+ centerX: number;
13
+ centerY: number;
14
+ }
15
+ interface RadarTooltipDataReturn {
16
+ tooltipData: RadarTooltipData | null;
17
+ dataPointIndex: number;
18
+ angle: number;
19
+ }
20
+ export declare const getRadarTooltipData: ({ data, event, totalDataPoints, centerX, centerY, }: GetRadarTooltipDataArgs) => RadarTooltipDataReturn | undefined;
21
+ export {};