/
plotly.ts
49 lines (47 loc) · 1005 Bytes
/
plotly.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { FormattedDataSet } from './formatted';
type Datum = string | number | Date | null;
type TypedArray =
| Int8Array
| Uint8Array
| Int16Array
| Uint16Array
| Int32Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array;
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';
/**
* Response type for RDS queries when the format parameter is one of the many `plotly_*`
* @link <https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/plotly.js/index.d.ts>
*/
export interface PlotlyDataSet extends FormattedDataSet {
type: PlotType;
x: Datum[] | Datum[][] | TypedArray;
y: Datum[] | Datum[][] | TypedArray;
}