@deephaven/chart 0.4.1-dashboards.0 → 0.4.1-markdownnotebooks.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js.map +1 -1
- package/package.json +13 -15
- package/dist/Chart.d.ts +0 -127
- package/dist/Chart.d.ts.map +0 -1
- package/dist/ChartModel.d.ts +0 -63
- package/dist/ChartModel.d.ts.map +0 -1
- package/dist/ChartModelFactory.d.ts +0 -47
- package/dist/ChartModelFactory.d.ts.map +0 -1
- package/dist/ChartTestUtils.d.ts +0 -37
- package/dist/ChartTestUtils.d.ts.map +0 -1
- package/dist/ChartTheme.d.ts +0 -20
- package/dist/ChartTheme.d.ts.map +0 -1
- package/dist/ChartUtils.d.ts +0 -402
- package/dist/ChartUtils.d.ts.map +0 -1
- package/dist/FigureChartModel.d.ts +0 -163
- package/dist/FigureChartModel.d.ts.map +0 -1
- package/dist/MockChartModel.d.ts +0 -366
- package/dist/MockChartModel.d.ts.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/plotly/Plot.d.ts +0 -3
- package/dist/plotly/Plot.d.ts.map +0 -1
- package/dist/plotly/Plotly.d.ts +0 -2
- package/dist/plotly/Plotly.d.ts.map +0 -1
- package/dist/plotly/__mocks__/Plot.d.ts +0 -10
- package/dist/plotly/__mocks__/Plot.d.ts.map +0 -1
- package/dist/plotly/__mocks__/Plotly.d.ts +0 -5
- package/dist/plotly/__mocks__/Plotly.d.ts.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/ChartUtils.d.ts
DELETED
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
export default ChartUtils;
|
|
2
|
-
declare class ChartUtils {
|
|
3
|
-
static DEFAULT_AXIS_SIZE: number;
|
|
4
|
-
static MIN_AXIS_SIZE: number;
|
|
5
|
-
static MAX_AXIS_SIZE: number;
|
|
6
|
-
static AXIS_SIZE_PX: number;
|
|
7
|
-
static LEGEND_WIDTH_PX: number;
|
|
8
|
-
static MAX_LEGEND_SIZE: number;
|
|
9
|
-
static ORIENTATION: Readonly<{
|
|
10
|
-
HORIZONTAL: string;
|
|
11
|
-
VERTICAL: string;
|
|
12
|
-
}>;
|
|
13
|
-
static DATE_FORMAT: string;
|
|
14
|
-
static DEFAULT_MARGIN: Readonly<{
|
|
15
|
-
l: number;
|
|
16
|
-
r: number;
|
|
17
|
-
t: number;
|
|
18
|
-
b: number;
|
|
19
|
-
pad: number;
|
|
20
|
-
}>;
|
|
21
|
-
static DEFAULT_TITLE_PADDING: Readonly<{
|
|
22
|
-
t: number;
|
|
23
|
-
}>;
|
|
24
|
-
static SUBTITLE_LINE_HEIGHT: number;
|
|
25
|
-
/**
|
|
26
|
-
* Converts the Iris plot style into a plotly chart type
|
|
27
|
-
* @param {String} plotStyle The plotStyle to use, see dh.plot.SeriesPlotStyle
|
|
28
|
-
* @param {boolean} isBusinessTime If the plot is using business time for an axis
|
|
29
|
-
*/
|
|
30
|
-
static getPlotlyChartType(plotStyle: string, isBusinessTime: boolean): "scattergl" | "scatter" | "bar" | "pie" | "histogram" | "ohlc" | null;
|
|
31
|
-
/**
|
|
32
|
-
* Converts the Iris plot style into a plotly chart mode
|
|
33
|
-
* @param {String} plotStyle The plotStyle to use, see dh.plot.SeriesPlotStyle.*
|
|
34
|
-
*/
|
|
35
|
-
static getPlotlyChartMode(plotStyle: string): "markers" | "lines" | null;
|
|
36
|
-
/**
|
|
37
|
-
* Get the property to set on the series data for plotly
|
|
38
|
-
* @param {dh.plot.SeriesPlotStyle} plotStyle The plot style of the series
|
|
39
|
-
* @param {dh.plot.SourceType} sourceType The source type for the series
|
|
40
|
-
*/
|
|
41
|
-
static getPlotlyProperty(plotStyle: any, sourceType: any): "labels" | "values" | "x" | "y" | "z" | "xLow" | "xHigh" | "yLow" | "yHigh" | "time" | "open" | "high" | "low" | "shape" | "size" | "label" | "color";
|
|
42
|
-
static getPlotlySeriesOrientation(series: any): string;
|
|
43
|
-
/**
|
|
44
|
-
* Generate the plotly error bar data from the passed in data.
|
|
45
|
-
* Iris passes in the values as absolute, plotly needs them as relative.
|
|
46
|
-
* @param {Array[Number]} x The main data array
|
|
47
|
-
* @param {Array[Number]} xLow The absolute low values
|
|
48
|
-
* @param {Array[Number]} xHigh
|
|
49
|
-
*
|
|
50
|
-
* @returns {Object} The error_x object required by plotly, or null if none is required
|
|
51
|
-
*/
|
|
52
|
-
static getPlotlyErrorBars(x: any[][number], xLow: any[][number], xHigh: any[][number]): Object;
|
|
53
|
-
static getPlotlyDateFormat(formatter: any, columnType: any, formatPattern: any): {
|
|
54
|
-
tickformat: any;
|
|
55
|
-
ticksuffix: any;
|
|
56
|
-
automargin: boolean;
|
|
57
|
-
};
|
|
58
|
-
static convertNumberPrefix(prefix: any): any;
|
|
59
|
-
static getPlotlyNumberFormat(formatter: any, columnType: any, formatPattern: any): {
|
|
60
|
-
tickformat: string;
|
|
61
|
-
tickprefix: any;
|
|
62
|
-
ticksuffix: any;
|
|
63
|
-
automargin: boolean;
|
|
64
|
-
} | null;
|
|
65
|
-
/**
|
|
66
|
-
* Gets the plotly axis formatting information from the source passed in
|
|
67
|
-
* @param {dh.plot.Source} source The Source to get the formatter information from
|
|
68
|
-
* @param {Formatter} formatter The current formatter for formatting data
|
|
69
|
-
*/
|
|
70
|
-
static getPlotlyAxisFormat(source: any, formatter?: any): object | null;
|
|
71
|
-
/**
|
|
72
|
-
* Adds tick spacing for an axis that has gapBetweenMajorTicks defined.
|
|
73
|
-
*
|
|
74
|
-
* @param {object} axisFormat the current axis format, may be null
|
|
75
|
-
* @param {object} axis the current axis
|
|
76
|
-
* @param {boolean} isDateType indicates if the columns is a date type
|
|
77
|
-
*/
|
|
78
|
-
static addTickSpacing(axisFormat: object, axis: object, isDateType: boolean): object;
|
|
79
|
-
/**
|
|
80
|
-
* Retrieve the data source for a given axis in a chart
|
|
81
|
-
* @param {dh.plot.Chart} chart The chart to get the source for
|
|
82
|
-
* @param {dh.plot.Axis} axis The axis to find the source for
|
|
83
|
-
* @returns {dh.plot.Source} The first source matching this axis
|
|
84
|
-
*/
|
|
85
|
-
static getSourceForAxis(chart: any, axis: any): any;
|
|
86
|
-
/**
|
|
87
|
-
* Get visibility setting for the series object
|
|
88
|
-
* @param {string} name The series name to get the visibility for
|
|
89
|
-
* @param {object} settings Chart settings
|
|
90
|
-
* @returns {boolean|string} True for visible series and 'legendonly' for hidden
|
|
91
|
-
*/
|
|
92
|
-
static getSeriesVisibility(name: string, settings: object): boolean | string;
|
|
93
|
-
/**
|
|
94
|
-
* Get hidden labels array from chart settings
|
|
95
|
-
* @param {object} settings Chart settings
|
|
96
|
-
* @returns {string[]} Array of hidden series names
|
|
97
|
-
*/
|
|
98
|
-
static getHiddenLabels(settings: object): string[];
|
|
99
|
-
/**
|
|
100
|
-
* Create a default series data object. Apply styling to the object afterward.
|
|
101
|
-
* @returns {Object} A simple series data object with no styling
|
|
102
|
-
*/
|
|
103
|
-
static makeSeriesData(type: any, mode: any, name: any, orientation?: string): Object;
|
|
104
|
-
/**
|
|
105
|
-
* Create a data series (trace) for use with plotly
|
|
106
|
-
* @param {dh.plot.Series} series The series to create the series data with
|
|
107
|
-
* @param {Map<dh.plot.AxisType, dh.plot.Axis[]>} axisTypeMap The map of axes grouped by type
|
|
108
|
-
* @param {boolean|string} seriesVisibility Visibility setting for the series
|
|
109
|
-
* @returns {Object} The series data (trace) object for use with plotly.
|
|
110
|
-
*/
|
|
111
|
-
static makeSeriesDataFromSeries(series: any, axisTypeMap: Map<any, any[]>, seriesVisibility: boolean | string): Object;
|
|
112
|
-
static addSourcesToSeriesData(seriesDataParam: any, plotStyle: any, sources: any, axisTypeMap: any): void;
|
|
113
|
-
static addStylingToSeriesData(seriesDataParam: any, plotStyle: any, lineColor?: any, shapeColor?: any, seriesVisibility?: any): void;
|
|
114
|
-
/**
|
|
115
|
-
* Retrieve the axis formats from the provided figure.
|
|
116
|
-
* Currently defaults to just the x/y axes.
|
|
117
|
-
* @param {dh.plot.Figure} figure The figure to get the axis formats for
|
|
118
|
-
* @param {Formatter} formatter The formatter to use when getting the axis format
|
|
119
|
-
* @returns {Map<string, object>} A map of axis layout property names to axis formats
|
|
120
|
-
*/
|
|
121
|
-
static getAxisFormats(figure: any, formatter: any): Map<string, object>;
|
|
122
|
-
static getChartType(plotStyle: any, isBusinessTime: any): "scattergl" | "scatter" | "bar" | "pie" | "histogram" | "ohlc" | null;
|
|
123
|
-
/**
|
|
124
|
-
* Return the plotly axis property name
|
|
125
|
-
* @param {dh.plot.AxisType} axisType The axis type to get the property name for
|
|
126
|
-
*/
|
|
127
|
-
static getAxisPropertyName(axisType: any): "x" | "y" | null;
|
|
128
|
-
/**
|
|
129
|
-
* Returns the plotly "side" value for the provided axis position
|
|
130
|
-
* @param {dh.plot.AxisPosition} axisPosition The Iris AxisPosition of the axis
|
|
131
|
-
*/
|
|
132
|
-
static getAxisSide(axisPosition: any): "bottom" | "top" | "left" | "right" | null;
|
|
133
|
-
/**
|
|
134
|
-
* Retrieve the chart that contains the passed in series from the figure
|
|
135
|
-
* @param {dh.plot.Figure} figure The figure to retrieve the chart from
|
|
136
|
-
* @param {dh.plot.Series} series The series to get the chart for
|
|
137
|
-
*/
|
|
138
|
-
static getChartForSeries(figure: any, series: any): any;
|
|
139
|
-
/**
|
|
140
|
-
* Get an object mapping axis to their ranges
|
|
141
|
-
* @param {object} layout The plotly layout object to get the ranges from
|
|
142
|
-
* @returns {object} An object mapping the axis name to it's range
|
|
143
|
-
*/
|
|
144
|
-
static getLayoutRanges(layout: object): object;
|
|
145
|
-
/**
|
|
146
|
-
* Updates the axes positions and sizes in the layout object provided.
|
|
147
|
-
* If the axis did not exist in the layout previously, it is created and added.
|
|
148
|
-
* Any axis that no longer exists in axes is removed.
|
|
149
|
-
* With Downsampling enabled, will also update the range on the axis itself as appropriate
|
|
150
|
-
* @param {object} layoutParam The layout object to update
|
|
151
|
-
* @param {dh.plot.Axis[]} axes The axes to update the layout with
|
|
152
|
-
* @param {number} plotWidth The width of the plot to calculate the axis sizes for
|
|
153
|
-
* @param {number} plotHeight The height of the plot to calculate the axis sizes for
|
|
154
|
-
* @param {func} getRangeParser A function to retrieve the range parser for a given axis
|
|
155
|
-
*/
|
|
156
|
-
static updateLayoutAxes(layoutParam: object, axes: any[], plotWidth?: number, plotHeight?: number, getRangeParser?: any): void;
|
|
157
|
-
static getAxisLayoutProperty(axisProperty: any, axisIndex: any): string;
|
|
158
|
-
/**
|
|
159
|
-
* Updates the layout axis object in place
|
|
160
|
-
* @param {object} layoutAxisParam The plotly layout axis param
|
|
161
|
-
* @param {dh.plot.Axis} axis The Iris Axis to update the plotly layout with
|
|
162
|
-
* @param {number} axisIndex The type index for this axis
|
|
163
|
-
* @param {Map<dh.plot.AxisPosition, dh.plot.Axis>} axisPositionMap All the axes mapped by position
|
|
164
|
-
* @param {number} axisSize The size of each axis in percent
|
|
165
|
-
* @param {object} bounds The bounds of the axes domains
|
|
166
|
-
*/
|
|
167
|
-
static updateLayoutAxis(layoutAxisParam: object, axis: any, axisIndex: number, axisPositionMap: Map<any, any>, xAxisSize: any, yAxisSize: any, bounds: object): void;
|
|
168
|
-
/**
|
|
169
|
-
* Converts an open or close period to a declimal. e.g '09:30" to 9.5
|
|
170
|
-
*
|
|
171
|
-
* @param {String} period the open or close value of the period
|
|
172
|
-
*/
|
|
173
|
-
static periodToDecimal(period: string): number;
|
|
174
|
-
/**
|
|
175
|
-
* Creates range break bounds for plotly from business days.
|
|
176
|
-
* For example a standard business week of ['MONDAY','TUESDAY','WEDNESDAY','THURSDAY','FRIDAY']
|
|
177
|
-
* will result in [[6,1]] meaning close on Saturday and open on Monday.
|
|
178
|
-
* If you remove Wednesday from the array, then you get two closures [[6, 1], [3, 4]]
|
|
179
|
-
*
|
|
180
|
-
* @param {Array} businessDays the days to display on the x-axis
|
|
181
|
-
*/
|
|
182
|
-
static createBoundsFromDays(businessDays: any[]): any[];
|
|
183
|
-
/**
|
|
184
|
-
* Creates an array of range breaks for all holidays.
|
|
185
|
-
*
|
|
186
|
-
* @param {Array} holidays an array of holidays
|
|
187
|
-
* @param {TimeZone} calendarTimeZone the time zone for the business calendar
|
|
188
|
-
* @param {TimeZone} formatterTimeZone the time zone for the formatter
|
|
189
|
-
*/
|
|
190
|
-
static createRangeBreakValuesFromHolidays(holidays: any[], calendarTimeZone: any, formatterTimeZone: any): any[];
|
|
191
|
-
/**
|
|
192
|
-
* Creates the range break value for a full holiday. A full holiday is day that has no business periods.
|
|
193
|
-
*
|
|
194
|
-
* @param {Holiday} holiday the full holiday
|
|
195
|
-
* @param {TimeZone} calendarTimeZone the time zone for the business calendar
|
|
196
|
-
* @param {TimeZone} formatterTimeZone the time zone for the formatter
|
|
197
|
-
*/
|
|
198
|
-
static createFullHoliday(holiday: any, calendarTimeZone: any, formatterTimeZone: any): any;
|
|
199
|
-
/**
|
|
200
|
-
* Creates the range break for a partial holiday. A partial holiday is holiday with business periods
|
|
201
|
-
* that are different than the default business periods.
|
|
202
|
-
*
|
|
203
|
-
* @param {Holiday} holiday the partial holiday
|
|
204
|
-
* @param {TimeZone} calendarTimeZone the time zone for the business calendar
|
|
205
|
-
* @param {TimeZone} formatterTimeZone the time zone for the formatter
|
|
206
|
-
*/
|
|
207
|
-
static createPartialHoliday(holiday: any, calendarTimeZone: any, formatterTimeZone: any): {
|
|
208
|
-
values: any[];
|
|
209
|
-
dvalue: number;
|
|
210
|
-
}[];
|
|
211
|
-
/**
|
|
212
|
-
* Adjusts a date string from the calendar time zone to the formatter time zone.
|
|
213
|
-
*
|
|
214
|
-
* @param {string} dateString the date string
|
|
215
|
-
* @param {TimeZone} calendarTimeZone the time zone for the business calendar
|
|
216
|
-
* @param {TimeZone} formatterTimeZone the time zone for the formatter
|
|
217
|
-
*/
|
|
218
|
-
static adjustDateForTimeZone(dateString: string, calendarTimeZone: any, formatterTimeZone: any): any;
|
|
219
|
-
/**
|
|
220
|
-
* Groups an array and returns a map
|
|
221
|
-
* @param {object[]} array The object to group
|
|
222
|
-
* @param {string} property The property name to group by
|
|
223
|
-
* @returns {Map<object, object>} A map containing the items grouped by their values for the property
|
|
224
|
-
*/
|
|
225
|
-
static groupArray(array: object[], property: string): Map<object, object>;
|
|
226
|
-
/**
|
|
227
|
-
* Update
|
|
228
|
-
*/
|
|
229
|
-
static updateRanges(): void;
|
|
230
|
-
/**
|
|
231
|
-
* Unwraps a value provided from API to a value plotly can understand
|
|
232
|
-
* Eg. Unwraps DateWrapper, LongWrapper objects.
|
|
233
|
-
*/
|
|
234
|
-
static unwrapValue(value: any, timeZone?: any): any;
|
|
235
|
-
/**
|
|
236
|
-
*
|
|
237
|
-
* @param {any} value The value to wrap up
|
|
238
|
-
* @param {string} columnType The type of column this value is from
|
|
239
|
-
* @param {dh.i18n.TimeZone} timeZone The time zone if applicable
|
|
240
|
-
*/
|
|
241
|
-
static wrapValue(value: any, columnType: string, timeZone?: any): any;
|
|
242
|
-
static makeLayoutAxis(type: any): {
|
|
243
|
-
automargin: boolean;
|
|
244
|
-
gridcolor: any;
|
|
245
|
-
linecolor: any;
|
|
246
|
-
rangeslider: {
|
|
247
|
-
visible: boolean;
|
|
248
|
-
};
|
|
249
|
-
showline: boolean;
|
|
250
|
-
ticklen: number;
|
|
251
|
-
tickcolor: any;
|
|
252
|
-
tickfont: {
|
|
253
|
-
color: any;
|
|
254
|
-
};
|
|
255
|
-
title: {
|
|
256
|
-
font: {
|
|
257
|
-
color: any;
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
static makeDefaultLayout(): {
|
|
262
|
-
autosize: boolean;
|
|
263
|
-
colorway: any;
|
|
264
|
-
font: {
|
|
265
|
-
family: string;
|
|
266
|
-
};
|
|
267
|
-
title: {
|
|
268
|
-
font: {
|
|
269
|
-
color: any;
|
|
270
|
-
};
|
|
271
|
-
yanchor: string;
|
|
272
|
-
pad: {
|
|
273
|
-
t: number;
|
|
274
|
-
};
|
|
275
|
-
y: number;
|
|
276
|
-
text: string;
|
|
277
|
-
};
|
|
278
|
-
legend: {
|
|
279
|
-
font: {
|
|
280
|
-
color: any;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
margin: {
|
|
284
|
-
l: number;
|
|
285
|
-
r: number;
|
|
286
|
-
t: number;
|
|
287
|
-
b: number;
|
|
288
|
-
pad: number;
|
|
289
|
-
};
|
|
290
|
-
xaxis: {
|
|
291
|
-
automargin: boolean;
|
|
292
|
-
gridcolor: any;
|
|
293
|
-
linecolor: any;
|
|
294
|
-
rangeslider: {
|
|
295
|
-
visible: boolean;
|
|
296
|
-
};
|
|
297
|
-
showline: boolean;
|
|
298
|
-
ticklen: number;
|
|
299
|
-
tickcolor: any;
|
|
300
|
-
tickfont: {
|
|
301
|
-
color: any;
|
|
302
|
-
};
|
|
303
|
-
title: {
|
|
304
|
-
font: {
|
|
305
|
-
color: any;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
yaxis: {
|
|
310
|
-
automargin: boolean;
|
|
311
|
-
gridcolor: any;
|
|
312
|
-
linecolor: any;
|
|
313
|
-
rangeslider: {
|
|
314
|
-
visible: boolean;
|
|
315
|
-
};
|
|
316
|
-
showline: boolean;
|
|
317
|
-
ticklen: number;
|
|
318
|
-
tickcolor: any;
|
|
319
|
-
tickfont: {
|
|
320
|
-
color: any;
|
|
321
|
-
};
|
|
322
|
-
title: {
|
|
323
|
-
font: {
|
|
324
|
-
color: any;
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
paper_bgcolor: any;
|
|
329
|
-
plot_bgcolor: any;
|
|
330
|
-
title_color: any;
|
|
331
|
-
gridcolor: any;
|
|
332
|
-
linecolor: any;
|
|
333
|
-
zerolinecolor: any;
|
|
334
|
-
activecolor: any;
|
|
335
|
-
rangebgcolor: any;
|
|
336
|
-
area_color: any;
|
|
337
|
-
trend_color: any;
|
|
338
|
-
line_color: any;
|
|
339
|
-
error_band_line_color: any;
|
|
340
|
-
error_band_fill_color: any;
|
|
341
|
-
ohlc_increasing: any;
|
|
342
|
-
ohlc_decreasing: any;
|
|
343
|
-
};
|
|
344
|
-
/**
|
|
345
|
-
* Dehydrate settings so they can be JSONified
|
|
346
|
-
* @param {object} settings Chart builder settings
|
|
347
|
-
*/
|
|
348
|
-
static dehydrateSettings(settings: object): {
|
|
349
|
-
type: string;
|
|
350
|
-
};
|
|
351
|
-
/**
|
|
352
|
-
* Hydrate settings from a JSONable object
|
|
353
|
-
* @param {object} settings Dehydrated settings
|
|
354
|
-
*/
|
|
355
|
-
static hydrateSettings(settings: object): {
|
|
356
|
-
type: any;
|
|
357
|
-
};
|
|
358
|
-
static titleFromSettings(settings: any): any;
|
|
359
|
-
/**
|
|
360
|
-
* Creates the Figure settings from the Chart Builder settings
|
|
361
|
-
* This should be deprecated at some point, and have Chart Builder create the figure settings directly.
|
|
362
|
-
* This logic will still need to exist to translate existing charts, but could be part of a migration script
|
|
363
|
-
* to translate the data.
|
|
364
|
-
* Change when we decide to add more functionality to the Chart Builder.
|
|
365
|
-
* @param {object} settings The chart builder settings
|
|
366
|
-
* @param {string} settings.title The title for this figure
|
|
367
|
-
* @param {string} settings.xAxis The name of the column to use for the x-axis
|
|
368
|
-
* @param {string[]} settings.series The name of the columns to use for the series of this figure
|
|
369
|
-
* @param {dh.plot.SeriesPlotStyle} settings.type The plot style for this figure
|
|
370
|
-
*/
|
|
371
|
-
static makeFigureSettings(settings: {
|
|
372
|
-
title: string;
|
|
373
|
-
xAxis: string;
|
|
374
|
-
series: string[];
|
|
375
|
-
type: any;
|
|
376
|
-
}, table: any): {
|
|
377
|
-
charts: {
|
|
378
|
-
chartType: string;
|
|
379
|
-
axes: {
|
|
380
|
-
formatType: string;
|
|
381
|
-
type: string;
|
|
382
|
-
position: string;
|
|
383
|
-
}[];
|
|
384
|
-
series: {
|
|
385
|
-
plotStyle: string;
|
|
386
|
-
name: string;
|
|
387
|
-
dataSources: {
|
|
388
|
-
type: string;
|
|
389
|
-
columnName: string;
|
|
390
|
-
axis: {
|
|
391
|
-
formatType: string;
|
|
392
|
-
type: string;
|
|
393
|
-
position: string;
|
|
394
|
-
};
|
|
395
|
-
table: any;
|
|
396
|
-
}[];
|
|
397
|
-
}[];
|
|
398
|
-
}[];
|
|
399
|
-
title: any;
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
//# sourceMappingURL=ChartUtils.d.ts.map
|
package/dist/ChartUtils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartUtils.d.ts","sourceRoot":"","sources":["../src/ChartUtils.js"],"names":[],"mappings":";AAeA;IACE,iCAAgC;IAEhC,6BAA6B;IAE7B,6BAA2B;IAE3B,4BAAyB;IAEzB,+BAA4B;IAE5B,+BAA8B;IAE9B;;;OAGG;IAEH,2BAAkD;IAElD;;;;;;OAA8E;IAE9E;;OAAuD;IAEvD,oCAAiC;IAEjC;;;;OAIG;IACH,6DAFW,OAAO,yEA4BjB;IAED;;;OAGG;IACH,yEASC;IAED;;;;OAIG;IACH,iNA0DC;IAED,uDAOC;IAED;;;;;;;;OAQG;IACH,6BANW,aAAa,QACb,aAAa,SACb,aAAa,GAEX,MAAM,CAWlB;IAED;;;;MA4CC;IAED,6CAEC;IAED;;;;;aA2CC;IAED;;;;OAIG;IACH,wEA8BC;IAED;;;;;;OAMG;IACH,kCAJW,MAAM,QACN,MAAM,cACN,OAAO,UAqBjB;IAED;;;;;OAKG;IACH,oDAYC;IAED;;;;;OAKG;IACH,iCAJW,MAAM,YACN,MAAM,GACJ,OAAO,GAAC,MAAM,CAO1B;IAED;;;;OAIG;IACH,iCAHW,MAAM,GACJ,MAAM,EAAE,CAOpB;IAED;;;OAGG;IACH,8EAFa,MAAM,CASlB;IAED;;;;;;OAMG;IACH,0DAJW,SAAsB,KAAc,CAAC,oBACrC,OAAO,GAAC,MAAM,GACZ,MAAM,CA4BlB;IAED,0GAyBC;IAED,qIAyDC;IAED;;;;;;OAMG;IACH,oDAFa,IAAI,MAAM,EAAE,MAAM,CAAC,CAkG/B;IAED,gIASC;IAED;;;OAGG;IACH,4DASC;IAED;;;OAGG;IACH,kFAaC;IAED;;;;OAIG;IACH,wDAaC;IAED;;;;OAIG;IACH,+BAHW,MAAM,GACJ,MAAM,CAclB;IAED;;;;;;;;;;OAUG;IACH,qCANW,MAAM,QACN,KAAc,cACd,MAAM,eACN,MAAM,8BAyHhB;IAED,wEAGC;IAED;;;;;;;;OAQG;IACH,yCAPW,MAAM,wBAEN,MAAM,mBACN,aAAuC,0CAEvC,MAAM,QAkEhB;IAED;;;;OAIG;IACH,+CAGC;IAED;;;;;;;OAOG;IACH,wDA6BC;IAED;;;;;;OAMG;IACH,iHA2BC;IAED;;;;;;OAMG;IACH,2FAMC;IAED;;;;;;;OAOG;IACH;;;QAoCC;IAED;;;;;;OAMG;IACH,yCAJW,MAAM,sDAuBhB;IAED;;;;;OAKG;IACH,yBAJW,MAAM,EAAE,YACR,MAAM,GACJ,IAAI,MAAM,EAAE,MAAM,CAAC,CAU/B;IAED;;OAEG;IACH,4BAAwB;IAExB;;;OAGG;IACH,oDAgBC;IAED;;;;;OAKG;IACH,wBAJW,GAAG,cACH,MAAM,uBAqChB;IAED;;;;;;;;;;;;;;;;;;MA+BC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BC;IAED;;;OAGG;IACH,mCAFW,MAAM;;MAOhB;IAED;;;OAGG;IACH,iCAFW,MAAM;;MAOhB;IAED,6CAQC;IAED;;;;;;;;;;;OAWG;IACH;QAL4B,KAAK,EAAtB,MAAM;QACW,KAAK,EAAtB,MAAM;QACa,MAAM,EAAzB,MAAM,EAAE;QAC0B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;MA2ChD;CACF"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
export default FigureChartModel;
|
|
2
|
-
/**
|
|
3
|
-
* Takes a Figure object from a widget to make a model for a chart
|
|
4
|
-
*/
|
|
5
|
-
declare class FigureChartModel extends ChartModel {
|
|
6
|
-
static ADD_SERIES_DEBOUNCE: number;
|
|
7
|
-
/**
|
|
8
|
-
* @param {dh.plot.Figure} figure The figure object created by the API
|
|
9
|
-
* @param {Object} settings Chart settings
|
|
10
|
-
*/
|
|
11
|
-
constructor(figure: any, settings?: Object);
|
|
12
|
-
handleFigureUpdated(event: any): void;
|
|
13
|
-
handleFigureDisconnected(event: any): void;
|
|
14
|
-
handleFigureReconnected(event: any): void;
|
|
15
|
-
handleFigureSeriesAdded(event: any): void;
|
|
16
|
-
handleDownsampleStart(event: any): void;
|
|
17
|
-
handleDownsampleFinish(event: any): void;
|
|
18
|
-
handleDownsampleFail(event: any): void;
|
|
19
|
-
handleDownsampleNeeded(event: any): void;
|
|
20
|
-
handleRequestFailed(event: any): void;
|
|
21
|
-
addPendingSeries(): void;
|
|
22
|
-
figure: any;
|
|
23
|
-
settings: Object;
|
|
24
|
-
data: any[];
|
|
25
|
-
layout: {
|
|
26
|
-
autosize: boolean;
|
|
27
|
-
colorway: any;
|
|
28
|
-
font: {
|
|
29
|
-
family: string;
|
|
30
|
-
};
|
|
31
|
-
title: {
|
|
32
|
-
font: {
|
|
33
|
-
color: any;
|
|
34
|
-
};
|
|
35
|
-
yanchor: string;
|
|
36
|
-
pad: {
|
|
37
|
-
t: number;
|
|
38
|
-
};
|
|
39
|
-
y: number;
|
|
40
|
-
text: string;
|
|
41
|
-
};
|
|
42
|
-
legend: {
|
|
43
|
-
font: {
|
|
44
|
-
color: any;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
margin: {
|
|
48
|
-
l: number;
|
|
49
|
-
r: number;
|
|
50
|
-
t: number;
|
|
51
|
-
b: number;
|
|
52
|
-
pad: number;
|
|
53
|
-
};
|
|
54
|
-
xaxis: {
|
|
55
|
-
automargin: boolean;
|
|
56
|
-
gridcolor: any;
|
|
57
|
-
linecolor: any;
|
|
58
|
-
rangeslider: {
|
|
59
|
-
visible: boolean;
|
|
60
|
-
};
|
|
61
|
-
showline: boolean;
|
|
62
|
-
ticklen: number;
|
|
63
|
-
tickcolor: any;
|
|
64
|
-
tickfont: {
|
|
65
|
-
color: any;
|
|
66
|
-
};
|
|
67
|
-
title: {
|
|
68
|
-
font: {
|
|
69
|
-
color: any;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
yaxis: {
|
|
74
|
-
automargin: boolean;
|
|
75
|
-
gridcolor: any;
|
|
76
|
-
linecolor: any;
|
|
77
|
-
rangeslider: {
|
|
78
|
-
visible: boolean;
|
|
79
|
-
};
|
|
80
|
-
showline: boolean;
|
|
81
|
-
ticklen: number;
|
|
82
|
-
tickcolor: any;
|
|
83
|
-
tickfont: {
|
|
84
|
-
color: any;
|
|
85
|
-
};
|
|
86
|
-
title: {
|
|
87
|
-
font: {
|
|
88
|
-
color: any;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
paper_bgcolor: any;
|
|
93
|
-
plot_bgcolor: any;
|
|
94
|
-
title_color: any;
|
|
95
|
-
gridcolor: any;
|
|
96
|
-
linecolor: any;
|
|
97
|
-
zerolinecolor: any;
|
|
98
|
-
activecolor: any;
|
|
99
|
-
rangebgcolor: any;
|
|
100
|
-
area_color: any;
|
|
101
|
-
trend_color: any;
|
|
102
|
-
line_color: any;
|
|
103
|
-
error_band_line_color: any;
|
|
104
|
-
error_band_fill_color: any;
|
|
105
|
-
ohlc_increasing: any;
|
|
106
|
-
ohlc_decreasing: any;
|
|
107
|
-
};
|
|
108
|
-
seriesDataMap: Map<any, any>;
|
|
109
|
-
pendingSeries: any[];
|
|
110
|
-
oneClicks: any[];
|
|
111
|
-
filterColumnMap: Map<any, any>;
|
|
112
|
-
lastFilter: Map<any, any>;
|
|
113
|
-
isConnected: boolean;
|
|
114
|
-
seriesToProcess: Set<any>;
|
|
115
|
-
initAllSeries(): void;
|
|
116
|
-
addSeries(series: any): void;
|
|
117
|
-
subscribeFigure(): void;
|
|
118
|
-
unsubscribeFigure(): void;
|
|
119
|
-
startListeningFigure(): void;
|
|
120
|
-
stopListeningFigure(): void;
|
|
121
|
-
getTimeZone: ((columnType: any, formatter: any) => any) & memoize.Memoized<(columnType: any, formatter: any) => any>;
|
|
122
|
-
getValueTranslator: ((columnType: any, formatter: any) => (value: any) => any) & memoize.Memoized<(columnType: any, formatter: any) => (value: any) => any>;
|
|
123
|
-
/** Gets the parser for a value with the provided column type */
|
|
124
|
-
getValueParser: ((columnType: any, formatter: any) => (value: any) => any) & memoize.Memoized<(columnType: any, formatter: any) => (value: any) => any>;
|
|
125
|
-
/**
|
|
126
|
-
* Gets the range parser for a particular column type
|
|
127
|
-
*/
|
|
128
|
-
getRangeParser: ((columnType: any, formatter: any) => (range: any) => any[]) & memoize.Memoized<(columnType: any, formatter: any) => (range: any) => any[]>;
|
|
129
|
-
/**
|
|
130
|
-
* Gets the parser for parsing the range from an axis within the given chart
|
|
131
|
-
*/
|
|
132
|
-
getAxisRangeParser: ((chart: any, formatter: any) => (axis: any) => (range: any) => any) & memoize.Memoized<(chart: any, formatter: any) => (axis: any) => (range: any) => any>;
|
|
133
|
-
/**
|
|
134
|
-
* Resubscribe to the figure, should be done if settings change
|
|
135
|
-
*/
|
|
136
|
-
resubscribe(): void;
|
|
137
|
-
getPlotWidth(): number;
|
|
138
|
-
getPlotHeight(): number;
|
|
139
|
-
updateAxisPositions(): void;
|
|
140
|
-
/**
|
|
141
|
-
* Updates the format patterns used
|
|
142
|
-
*/
|
|
143
|
-
updateLayoutFormats(): void;
|
|
144
|
-
/**
|
|
145
|
-
* Set a specific array for the array of series properties specified.
|
|
146
|
-
* @param {dh.Series} series The series to set the data array for.
|
|
147
|
-
* @param {dh.plot.SourceType} sourceType The source type within that series to set the data for.
|
|
148
|
-
* @param {Any[]} dataArray The array to use for the data for this series source.
|
|
149
|
-
*/
|
|
150
|
-
setDataArrayForSeries(series: any, sourceType: any, dataArray: any[]): void;
|
|
151
|
-
/**
|
|
152
|
-
* After setting all the data in the series data, we may need to adjust some other properties
|
|
153
|
-
* Eg. Calculating the width from the xLow/xHigh values; Plot.ly uses `width` instead of a low/high
|
|
154
|
-
* value for x.
|
|
155
|
-
* @param {dh.Series} series The series to clean the data for
|
|
156
|
-
*/
|
|
157
|
-
cleanSeries(series: any): void;
|
|
158
|
-
setFigure(figure: any): void;
|
|
159
|
-
updateSettings(settings: any): void;
|
|
160
|
-
}
|
|
161
|
-
import ChartModel from "./ChartModel";
|
|
162
|
-
import memoize from "memoizee";
|
|
163
|
-
//# sourceMappingURL=FigureChartModel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FigureChartModel.d.ts","sourceRoot":"","sources":["../src/FigureChartModel.js"],"names":[],"mappings":";AAUA;;GAEG;AACH;IACE,mCAAgC;IAEhC;;;OAGG;IACH,oCAFW,MAAM,EAsChB;IAwRD,sCAqCC;IAgCD,2CAUC;IAED,0CAaC;IAED,0CAOC;IA/HD,wCAIC;IAED,yCAIC;IAED,uCAIC;IAED,yCAIC;IAyCD,sCAEC;IA3OD,yBAWC;IAjHC,YAAoB;IACpB,iBAAwB;IACxB,YAAc;IACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA4C;IAC5C,6BAA8B;IAC9B,qBAAuB;IACvB,iBAAmB;IACnB,+BAAgC;IAChC,0BAA2B;IAC3B,qBAAuB;IACvB,0BAAgC;IAuBlC,sBA0BC;IAED,6BAuCC;IAiCD,wBAWC;IAED,0BAEC;IAED,6BAqCC;IAED,4BAqCC;IAED,qHAQG;IAEH,4JAGG;IAEH,gEAAgE;IAChE,wJAGG;IAEH;;OAEG;IACH,4JAMG;IAEH;;OAEG;IACH,gLAOG;IAqEH;;OAEG;IACH,oBAKC;IA2ED,uBASC;IAED,wBASC;IAED,4BAeC;IAED;;OAEG;IACH,4BAkBC;IAED;;;;;OAKG;IACH,+DAFW,KAAK,QAQf;IAED;;;;;OAKG;IACH,+BAqBC;IAoDD,6BAYC;IAED,oCAEC;CACF"}
|