mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
[plotly.js] add box and heatmap fields to PlotData
This commit is contained in:
8
types/plotly.js/index.d.ts
vendored
8
types/plotly.js/index.d.ts
vendored
@@ -479,7 +479,7 @@ export type DataTransform = Partial<Transform>;
|
||||
export type ScatterData = PlotData;
|
||||
// Bar Scatter
|
||||
export interface PlotData {
|
||||
type: 'bar' | 'histogram' | 'pointcloud' | 'scatter' | 'scattergl' | 'scatter3d' | 'surface';
|
||||
type: 'bar' | 'box' | 'heatmap' | 'histogram' | 'pointcloud' | 'scatter' | 'scattergl' | 'scatter3d' | 'surface';
|
||||
x: Datum[] | Datum[][] | TypedArray;
|
||||
y: Datum[] | Datum[][] | TypedArray;
|
||||
z: Datum[] | Datum[][] | Datum[][][] | TypedArray;
|
||||
@@ -530,6 +530,12 @@ export interface PlotData {
|
||||
visible: boolean | 'legendonly';
|
||||
transforms: DataTransform[];
|
||||
orientation: 'v' | 'h';
|
||||
boxmean: boolean | 'sd';
|
||||
colorscale: string | Array<[number, string]>;
|
||||
zsmooth: 'fast' | 'best' | false;
|
||||
ygap: number;
|
||||
xgap: number;
|
||||
transpose: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user