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;