mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
Plotly.js: Add new/missing Plot Data type "Sunburst" (#43883)
* Add new/missing Plotly Plot Data type "Sunburst" * Add and export PlotType
This commit is contained in:
Vendored
+5
-3
@@ -622,17 +622,19 @@ export type ErrorBar = Partial<ErrorOptions> & ({
|
||||
});
|
||||
|
||||
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<PlotData>;
|
||||
export type Color = string | number | Array<string | number | undefined | null> | Array<Array<string | number | undefined | null>>;
|
||||
export type ColorScale = string | string[] | Array<[number, string]>;
|
||||
export type DataTransform = Partial<Transform>;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user