@vizzly/dashboard 0.15.0-dev-45f4268b92d46ac8f53b9683a04bb9e8d2dac16a → 0.15.0-dev-7c9658e993e6c1d321c4d69f2e166bbb37cca3aa

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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { LineChartProps } from '../LineChart/types';
3
2
  import { FormatterProps } from '../types';
4
3
  import { ChartRef } from '../utils/chartRendering';
5
- export declare const ScatterChart: React.ForwardRefExoticComponent<Pick<LineChartProps, "approxXAxisLabelCount" | "approxYAxisLabelCount" | "legend" | "axisTitles" | "data" | "height" | "width" | "horizontal" | "x" | "lineCurve" | "trends" | "onClick" | "theme" | "colors" | "keys" | "goalLine" | "idPrefix" | "uniqueId" | "forceXAxisAsTime" | "annotate" | "formatSeriesName" | "sparkline" | "threshold" | "removeStroke" | "formatXAxisLabel" | "formatYAxisLabel" | "popOverMenuStyles" | "datumFormatter" | "lineStyle"> & FormatterProps & React.RefAttributes<ChartRef>>;
4
+ import { ScatterChartProps } from './types';
5
+ export declare const ScatterChart: React.ForwardRefExoticComponent<Pick<ScatterChartProps, "approxXAxisLabelCount" | "approxYAxisLabelCount" | "legend" | "axisTitles" | "data" | "height" | "width" | "horizontal" | "x" | "lineCurve" | "trends" | "quadrants" | "onClick" | "theme" | "colors" | "keys" | "goalLine" | "idPrefix" | "uniqueId" | "forceXAxisAsTime" | "annotate" | "formatSeriesName" | "sparkline" | "threshold" | "removeStroke" | "formatXAxisLabel" | "formatYAxisLabel" | "popOverMenuStyles" | "datumFormatter" | "lineStyle"> & FormatterProps & React.RefAttributes<ChartRef>>;
@@ -0,0 +1,32 @@
1
+ import { ChartData, ChartProps, ColorFormatterByDatum, ColorFormatterByKey } from '../types';
2
+ import { GenerateAnnotationType } from '../XYChart/logic/annotations';
3
+ import { AxisTitles, Datum, GoalLine, ThresholdType, Props as VizzlyXYChartProps } from '../XYChart';
4
+ export interface ScatterChartProps extends ChartProps {
5
+ uniqueId: string;
6
+ x: string;
7
+ keys: string[];
8
+ colors: string[];
9
+ data: Array<ChartData>;
10
+ sparkline?: boolean;
11
+ forceXAxisAsTime?: VizzlyXYChartProps['forceXAxisAsTime'];
12
+ annotate?: Array<GenerateAnnotationType>;
13
+ lineCurve?: VizzlyXYChartProps['lineCurve'];
14
+ formatSeriesName: VizzlyXYChartProps['formatSeriesName'];
15
+ formatter: ColorFormatterByKey;
16
+ datumFormatter?: ColorFormatterByDatum;
17
+ onClick?: (value: Datum | undefined) => void;
18
+ goalLine?: GoalLine[];
19
+ axisTitles?: AxisTitles;
20
+ threshold?: Array<ThresholdType>;
21
+ idPrefix: VizzlyXYChartProps['idPrefix'];
22
+ trends?: {
23
+ data: Array<ChartData>;
24
+ keys: string[];
25
+ colors?: string[];
26
+ opacity?: number[];
27
+ strokeWidth?: number[];
28
+ strokeDasharray?: string | number[];
29
+ };
30
+ lineStyle?: 'dotted';
31
+ quadrants?: VizzlyXYChartProps['quadrants'];
32
+ }
@@ -3,6 +3,7 @@ import { ChartData, ChartProps, ColorFormatterByDatum, ColorFormatterByKey, Form
3
3
  import { LINE_CURVE_MAPPING } from './logic';
4
4
  import { GenerateAnnotationType } from './logic/annotations';
5
5
  import { EventHandlerParams } from '@visx/xychart';
6
+ import { Component } from '../../../shared-logic/src/Component/types';
6
7
  export declare type ApproxAxisLabelCount = 'auto' | number;
7
8
  export declare type ChartIdPrefix = 'dashboard' | 'library' | 'editor';
8
9
  export declare type AxisType = 'auto' | 'end2end' | 'none';
@@ -66,6 +67,7 @@ export interface Props extends ChartProps, FormatterProps {
66
67
  axisTitles?: AxisTitles;
67
68
  idPrefix: ChartIdPrefix;
68
69
  labels?: boolean;
70
+ quadrants?: Component.Quadrant.Rule;
69
71
  }
70
72
  export declare type AxisTitles = {
71
73
  x?: string;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { ChartTheme } from '../../../types';
3
- import { BubbleChartRepresentation } from '../../../../../shared-logic/src/BubbleChart/types';
4
3
  import { DataType } from '../../../../../shared-logic/src/Field/types';
5
4
  import { ConditionalFormattingRule } from '../../../../../shared-logic/src/ChartsV2/types';
6
5
  import { ScaleLinear, ScalePoint, ScaleTime } from '@visx/vendor/d3-scale';
6
+ import { BubbleChartRepresentation } from '../../../../../shared-logic/src/BubbleChartV2/types';
7
7
  export declare type BubbleChartProps = {
8
8
  width: number;
9
9
  height: number;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare type QuadrantOverlayProps = {
3
+ innerWidth: number;
4
+ innerHeight: number;
5
+ topLeftText?: string;
6
+ topRightText?: string;
7
+ bottomLeftText?: string;
8
+ bottomRightText?: string;
9
+ };
10
+ export declare const QuadrantOverlay: ({ innerWidth, innerHeight, topLeftText, topRightText, bottomLeftText, bottomRightText, }: QuadrantOverlayProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { QuadrantOverlay } from './QuadrantOverlay';
2
+ export type { QuadrantOverlayProps } from './QuadrantOverlay';