From d26b0357fccd129287c994128ddafcf820dc4ee3 Mon Sep 17 00:00:00 2001 From: kazuya wakui Date: Fri, 18 Jan 2019 14:47:35 +0900 Subject: [PATCH] [plotly.js] add missing plot data type (#31963) * [plotly.js] add missing plot data type * fixed indentation * [plotly.js] add hole to PlotData * [plotly.js] add missing plot data type for radar chart * [plotly.js] add colors to marker for Pie Chart * sort by alphabetical --- types/plotly.js/index.d.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index 072c82c76d..31a7bfac0e 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for plotly.js 1.42 +// Type definitions for plotly.js 1.43 // Project: https://plot.ly/javascript/ // Definitions by: Chris Gervang // Martin Duparc @@ -250,7 +250,7 @@ export interface Layout { ternary: {}; // TODO geo: {}; // TODO mapbox: {}; // TODO - radialaxis: {}; // TODO + radialaxis: Partial; angularaxis: {}; // TODO direction: 'clockwise' | 'counterclockwise'; dragmode: 'zoom' | 'pan' | 'select' | 'lasso' | 'orbit' | 'turntable'; @@ -480,8 +480,8 @@ export type ScatterData = PlotData; // Bar Scatter export interface PlotData { type: 'bar' | 'box' | 'candlestick' | 'choropleth' | 'contour' | 'heatmap' | 'histogram' | 'mesh3d' | - 'ohlc' | 'parcoords' | 'pointcloud' | 'scatter' | 'scatter3d' | 'scattergeo' | 'scattergl' | - 'scatterternary' | 'surface'; + 'ohlc' | 'parcoords' | 'pie' | 'pointcloud' | 'scatter' | 'scatter3d' | 'scattergeo' | 'scattergl' | + 'scatterpolar' | 'scatterternary' | 'surface'; x: Datum[] | Datum[][] | TypedArray; y: Datum[] | Datum[][] | TypedArray; z: Datum[] | Datum[][] | Datum[][][] | TypedArray; @@ -544,6 +544,11 @@ export interface PlotData { end: number | string; size: number | string; }; + values: Datum[]; + labels: Datum[]; + hole: number; + theta: Datum[]; + r: Datum[]; } /** @@ -632,6 +637,7 @@ export interface ColorBar { export interface PlotMarker { symbol: string | string[]; // Drawing.symbolList color: Color | Color[]; + colors: Color[]; colorscale: string | string[] | Array>; cauto: boolean; cmax: number;