[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
This commit is contained in:
kazuya wakui 2019-01-18 14:47:35 +09:00 committed by Ron Buckton
parent c34bc44eea
commit d26b0357fc

View File

@ -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 <https://github.com/chrisgervang>
// Martin Duparc <https://github.com/martinduparc>
@ -250,7 +250,7 @@ export interface Layout {
ternary: {}; // TODO
geo: {}; // TODO
mapbox: {}; // TODO
radialaxis: {}; // TODO
radialaxis: Partial<Axis>;
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<Array<(string | number)>>;
cauto: boolean;
cmax: number;