From bc7793f079d777870e4a975516ea14641d2cd539 Mon Sep 17 00:00:00 2001 From: Mitchell Stanford <51683677+Mitchell-TallyIT@users.noreply.github.com> Date: Wed, 15 Apr 2020 13:34:45 +1000 Subject: [PATCH] Plotly.js: Add new/missing Plot Data type "Sunburst" (#43883) * Add new/missing Plotly Plot Data type "Sunburst" * Add and export PlotType --- types/plotly.js/index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index 32b52cde56..101d3678a0 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -622,17 +622,19 @@ export type ErrorBar = Partial & ({ }); export type Dash = 'solid' | 'dot' | 'dash' | 'longdash' | 'dashdot' | 'longdashdot'; +export type PlotType = 'bar' | 'box' | 'candlestick' | 'choropleth' | 'contour' | 'heatmap' | 'histogram' | 'indicator' | 'mesh3d' | + 'ohlc' | 'parcoords' | 'pie' | 'pointcloud' | 'scatter' | 'scatter3d' | 'scattergeo' | 'scattergl' | + 'scatterpolar' | 'scatterternary' | 'sunburst' | 'surface' | 'treemap' | 'waterfall' | 'funnel' | 'funnelarea'; export type Data = Partial; export type Color = string | number | Array | Array>; export type ColorScale = string | string[] | Array<[number, string]>; export type DataTransform = Partial; export type ScatterData = PlotData; + // Bar Scatter export interface PlotData { - type: 'bar' | 'box' | 'candlestick' | 'choropleth' | 'contour' | 'heatmap' | 'histogram' | 'indicator' | 'mesh3d' | - 'ohlc' | 'parcoords' | 'pie' | 'pointcloud' | 'scatter' | 'scatter3d' | 'scattergeo' | 'scattergl' | - 'scatterpolar' | 'scatterternary' | 'surface' | 'treemap' | 'waterfall' | 'funnel' | 'funnelarea'; + type: PlotType; x: Datum[] | Datum[][] | TypedArray; y: Datum[] | Datum[][] | TypedArray; z: Datum[] | Datum[][] | Datum[][][] | TypedArray;