@deephaven/chart 0.67.1-beta.0 → 0.67.1-beta.2
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/ChartModel.d.ts +2 -2
- package/dist/ChartModel.d.ts.map +1 -1
- package/dist/ChartModel.js.map +1 -1
- package/dist/ChartModelFactory.d.ts +4 -4
- package/dist/ChartModelFactory.d.ts.map +1 -1
- package/dist/ChartModelFactory.js.map +1 -1
- package/dist/ChartTestUtils.d.ts +19 -19
- package/dist/ChartTestUtils.d.ts.map +1 -1
- package/dist/ChartTestUtils.js +1 -1
- package/dist/ChartTestUtils.js.map +1 -1
- package/dist/ChartUtils.d.ts +41 -41
- package/dist/ChartUtils.d.ts.map +1 -1
- package/dist/ChartUtils.js +3 -3
- package/dist/ChartUtils.js.map +1 -1
- package/dist/FigureChartModel.d.ts +13 -13
- package/dist/FigureChartModel.d.ts.map +1 -1
- package/dist/FigureChartModel.js.map +1 -1
- package/dist/MockChartModel.d.ts +2 -2
- package/dist/MockChartModel.d.ts.map +1 -1
- package/dist/MockChartModel.js.map +1 -1
- package/package.json +11 -11
package/dist/ChartModel.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ declare class ChartModel {
|
|
|
18
18
|
static EVENT_DOWNSAMPLENEEDED: string;
|
|
19
19
|
static EVENT_LOADFINISHED: string;
|
|
20
20
|
static EVENT_ERROR: string;
|
|
21
|
-
constructor(dh: DhType);
|
|
22
|
-
dh: DhType;
|
|
21
|
+
constructor(dh: typeof DhType);
|
|
22
|
+
dh: typeof DhType;
|
|
23
23
|
listeners: ((event: ChartEvent) => void)[];
|
|
24
24
|
formatter?: Formatter;
|
|
25
25
|
rect?: DOMRect;
|
package/dist/ChartModel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartModel.d.ts","sourceRoot":"","sources":["../src/ChartModel.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,IAAI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AAE,OAAO,GAAG,IAAI;IAM1C,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAM3C,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAMzC,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAM3C,gBAAgB,IAAI,IAAI;IAIxB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI;CAGlC;AAED,eAAe,UAAU,CAAC"}
|
package/dist/ChartModel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartModel.js","names":["ChartModel","constructor","dh","_defineProperty","listeners","isDownsamplingDisabled","getData","getDefaultTitle","getLayout","getFilterColumnMap","Map","isFilterRequired","setFilter","filter","close","setFormatter","formatter","setDownsamplingDisabled","setDimensions","rect","setTitle","title","subscribe","callback","push","unsubscribe","listener","fireEvent","event","i","length","fireUpdate","data","CustomEvent","EVENT_UPDATED","detail","fireDisconnect","EVENT_DISCONNECT","fireReconnect","EVENT_RECONNECT","fireDownsampleStart","EVENT_DOWNSAMPLESTARTED","fireDownsampleFinish","EVENT_DOWNSAMPLEFINISHED","fireDownsampleFail","EVENT_DOWNSAMPLEFAILED","fireDownsampleNeeded","EVENT_DOWNSAMPLENEEDED","fireLoadFinished","EVENT_LOADFINISHED","fireError","EVENT_ERROR"],"sources":["../src/ChartModel.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/* eslint no-unused-vars: \"off\" */\n\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport { Formatter } from '@deephaven/jsapi-utils';\nimport type { Layout, Data } from 'plotly.js';\nimport { FilterColumnMap, FilterMap } from './ChartUtils';\n\nexport type ChartEvent = CustomEvent;\n/**\n * Model for a Chart\n * All of these methods should return very quickly.\n * If data needs to be loaded asynchronously, return something immediately, then trigger an event for the chart to refresh.\n */\nclass ChartModel {\n static EVENT_UPDATED = 'ChartModel.EVENT_UPDATED';\n\n static EVENT_DISCONNECT = 'ChartModel.EVENT_DISCONNECT';\n\n static EVENT_RECONNECT = 'ChartModel.EVENT_RECONNECT';\n\n static EVENT_DOWNSAMPLESTARTED = 'ChartModel.EVENT_DOWNSAMPLESTARTED';\n\n static EVENT_DOWNSAMPLEFINISHED = 'ChartModel.EVENT_DOWNSAMPLEFINISHED';\n\n static EVENT_DOWNSAMPLEFAILED = 'ChartModel.EVENT_DOWNSAMPLEFAILED';\n\n static EVENT_DOWNSAMPLENEEDED = 'ChartModel.EVENT_DOWNSAMPLENEEDED';\n\n static EVENT_LOADFINISHED = 'ChartModel.EVENT_LOADFINISHED';\n\n static EVENT_ERROR = 'ChartModel.EVENT_ERROR';\n\n constructor(dh: DhType) {\n this.dh = dh;\n this.listeners = [];\n this.isDownsamplingDisabled = false;\n }\n\n dh: DhType;\n\n listeners: ((event: ChartEvent) => void)[];\n\n formatter?: Formatter;\n\n rect?: DOMRect;\n\n isDownsamplingDisabled: boolean;\n\n title?: string;\n\n getData(): Partial<Data>[] {\n return [];\n }\n\n getDefaultTitle(): string {\n return '';\n }\n\n getLayout(): Partial<Layout> {\n return {};\n }\n\n getFilterColumnMap(): FilterColumnMap {\n return new Map();\n }\n\n isFilterRequired(): boolean {\n return false;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n setFilter(filter: FilterMap): void {}\n\n /**\n * Close this model, clean up any underlying subscriptions\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n close(): void {}\n\n /**\n * Set the formatter to use when charting the data.\n * @param formatter The formatter to use to format the charting data\n */\n setFormatter(formatter: Formatter): void {\n this.formatter = formatter;\n }\n\n /**\n * Disable downsampling\n * @param isDownsamplingDisabled True if downsampling should be disabled\n */\n setDownsamplingDisabled(isDownsamplingDisabled: boolean): void {\n this.isDownsamplingDisabled = isDownsamplingDisabled;\n }\n\n /**\n * Set the dimensions of the plot. May be needed to evaluate some of the percents\n * @param rect The bounding rectangle of the plot\n */\n setDimensions(rect: DOMRect): void {\n this.rect = rect;\n }\n\n setTitle(title: string): void {\n this.title = title;\n }\n\n /**\n * Subscribe to this ChartModel and start listening for all events.\n * @param callback Callback when an event occurs\n */\n subscribe(callback: (event: ChartEvent) => void): void {\n this.listeners.push(callback);\n }\n\n unsubscribe(callback: (event: ChartEvent) => void): void {\n this.listeners = this.listeners.filter(listener => listener !== callback);\n }\n\n fireEvent(event: ChartEvent): void {\n for (let i = 0; i < this.listeners.length; i += 1) {\n this.listeners[i](event);\n }\n }\n\n fireUpdate(data: unknown): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_UPDATED, { detail: data }));\n }\n\n fireDisconnect(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_DISCONNECT));\n }\n\n fireReconnect(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_RECONNECT));\n }\n\n fireDownsampleStart(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLESTARTED, { detail })\n );\n }\n\n fireDownsampleFinish(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFINISHED, { detail })\n );\n }\n\n fireDownsampleFail(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFAILED, { detail })\n );\n }\n\n fireDownsampleNeeded(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLENEEDED, { detail })\n );\n }\n\n fireLoadFinished(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_LOADFINISHED));\n }\n\n fireError(detail: string[]): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_ERROR, { detail }));\n }\n}\n\nexport default ChartModel;\n"],"mappings":";;;AAAA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA,MAAMA,UAAU,CAAC;EAmBfC,WAAWA,CAACC,
|
|
1
|
+
{"version":3,"file":"ChartModel.js","names":["ChartModel","constructor","dh","_defineProperty","listeners","isDownsamplingDisabled","getData","getDefaultTitle","getLayout","getFilterColumnMap","Map","isFilterRequired","setFilter","filter","close","setFormatter","formatter","setDownsamplingDisabled","setDimensions","rect","setTitle","title","subscribe","callback","push","unsubscribe","listener","fireEvent","event","i","length","fireUpdate","data","CustomEvent","EVENT_UPDATED","detail","fireDisconnect","EVENT_DISCONNECT","fireReconnect","EVENT_RECONNECT","fireDownsampleStart","EVENT_DOWNSAMPLESTARTED","fireDownsampleFinish","EVENT_DOWNSAMPLEFINISHED","fireDownsampleFail","EVENT_DOWNSAMPLEFAILED","fireDownsampleNeeded","EVENT_DOWNSAMPLENEEDED","fireLoadFinished","EVENT_LOADFINISHED","fireError","EVENT_ERROR"],"sources":["../src/ChartModel.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/* eslint no-unused-vars: \"off\" */\n\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport { Formatter } from '@deephaven/jsapi-utils';\nimport type { Layout, Data } from 'plotly.js';\nimport { FilterColumnMap, FilterMap } from './ChartUtils';\n\nexport type ChartEvent = CustomEvent;\n/**\n * Model for a Chart\n * All of these methods should return very quickly.\n * If data needs to be loaded asynchronously, return something immediately, then trigger an event for the chart to refresh.\n */\nclass ChartModel {\n static EVENT_UPDATED = 'ChartModel.EVENT_UPDATED';\n\n static EVENT_DISCONNECT = 'ChartModel.EVENT_DISCONNECT';\n\n static EVENT_RECONNECT = 'ChartModel.EVENT_RECONNECT';\n\n static EVENT_DOWNSAMPLESTARTED = 'ChartModel.EVENT_DOWNSAMPLESTARTED';\n\n static EVENT_DOWNSAMPLEFINISHED = 'ChartModel.EVENT_DOWNSAMPLEFINISHED';\n\n static EVENT_DOWNSAMPLEFAILED = 'ChartModel.EVENT_DOWNSAMPLEFAILED';\n\n static EVENT_DOWNSAMPLENEEDED = 'ChartModel.EVENT_DOWNSAMPLENEEDED';\n\n static EVENT_LOADFINISHED = 'ChartModel.EVENT_LOADFINISHED';\n\n static EVENT_ERROR = 'ChartModel.EVENT_ERROR';\n\n constructor(dh: typeof DhType) {\n this.dh = dh;\n this.listeners = [];\n this.isDownsamplingDisabled = false;\n }\n\n dh: typeof DhType;\n\n listeners: ((event: ChartEvent) => void)[];\n\n formatter?: Formatter;\n\n rect?: DOMRect;\n\n isDownsamplingDisabled: boolean;\n\n title?: string;\n\n getData(): Partial<Data>[] {\n return [];\n }\n\n getDefaultTitle(): string {\n return '';\n }\n\n getLayout(): Partial<Layout> {\n return {};\n }\n\n getFilterColumnMap(): FilterColumnMap {\n return new Map();\n }\n\n isFilterRequired(): boolean {\n return false;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n setFilter(filter: FilterMap): void {}\n\n /**\n * Close this model, clean up any underlying subscriptions\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n close(): void {}\n\n /**\n * Set the formatter to use when charting the data.\n * @param formatter The formatter to use to format the charting data\n */\n setFormatter(formatter: Formatter): void {\n this.formatter = formatter;\n }\n\n /**\n * Disable downsampling\n * @param isDownsamplingDisabled True if downsampling should be disabled\n */\n setDownsamplingDisabled(isDownsamplingDisabled: boolean): void {\n this.isDownsamplingDisabled = isDownsamplingDisabled;\n }\n\n /**\n * Set the dimensions of the plot. May be needed to evaluate some of the percents\n * @param rect The bounding rectangle of the plot\n */\n setDimensions(rect: DOMRect): void {\n this.rect = rect;\n }\n\n setTitle(title: string): void {\n this.title = title;\n }\n\n /**\n * Subscribe to this ChartModel and start listening for all events.\n * @param callback Callback when an event occurs\n */\n subscribe(callback: (event: ChartEvent) => void): void {\n this.listeners.push(callback);\n }\n\n unsubscribe(callback: (event: ChartEvent) => void): void {\n this.listeners = this.listeners.filter(listener => listener !== callback);\n }\n\n fireEvent(event: ChartEvent): void {\n for (let i = 0; i < this.listeners.length; i += 1) {\n this.listeners[i](event);\n }\n }\n\n fireUpdate(data: unknown): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_UPDATED, { detail: data }));\n }\n\n fireDisconnect(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_DISCONNECT));\n }\n\n fireReconnect(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_RECONNECT));\n }\n\n fireDownsampleStart(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLESTARTED, { detail })\n );\n }\n\n fireDownsampleFinish(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFINISHED, { detail })\n );\n }\n\n fireDownsampleFail(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLEFAILED, { detail })\n );\n }\n\n fireDownsampleNeeded(detail: unknown): void {\n this.fireEvent(\n new CustomEvent(ChartModel.EVENT_DOWNSAMPLENEEDED, { detail })\n );\n }\n\n fireLoadFinished(): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_LOADFINISHED));\n }\n\n fireError(detail: string[]): void {\n this.fireEvent(new CustomEvent(ChartModel.EVENT_ERROR, { detail }));\n }\n}\n\nexport default ChartModel;\n"],"mappings":";;;AAAA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA,MAAMA,UAAU,CAAC;EAmBfC,WAAWA,CAACC,EAAiB,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAC7B,IAAI,CAACD,EAAE,GAAGA,EAAE;IACZ,IAAI,CAACE,SAAS,GAAG,EAAE;IACnB,IAAI,CAACC,sBAAsB,GAAG,KAAK;EACrC;EAcAC,OAAOA,CAAA,EAAoB;IACzB,OAAO,EAAE;EACX;EAEAC,eAAeA,CAAA,EAAW;IACxB,OAAO,EAAE;EACX;EAEAC,SAASA,CAAA,EAAoB;IAC3B,OAAO,CAAC,CAAC;EACX;EAEAC,kBAAkBA,CAAA,EAAoB;IACpC,OAAO,IAAIC,GAAG,CAAC,CAAC;EAClB;EAEAC,gBAAgBA,CAAA,EAAY;IAC1B,OAAO,KAAK;EACd;;EAEA;EACAC,SAASA,CAAC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AAA,CATnEH,UAAU,4BAWkB,mCAAmC;AAAAG,eAAA,CAX/DH,UAAU,4BAakB,mCAAmC;AAAAG,eAAA,CAb/DH,UAAU,wBAec,+BAA+B;AAAAG,eAAA,CAfvDH,UAAU,iBAiBO,wBAAwB;AA4I/C,eAAeA,UAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { dh as DhType
|
|
1
|
+
import type { dh as DhType } from '@deephaven/jsapi-types';
|
|
2
2
|
import { ChartModelSettings } from './ChartUtils';
|
|
3
3
|
import ChartModel from './ChartModel';
|
|
4
4
|
declare class ChartModelFactory {
|
|
@@ -17,7 +17,7 @@ declare class ChartModelFactory {
|
|
|
17
17
|
* CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel
|
|
18
18
|
* This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel
|
|
19
19
|
*/
|
|
20
|
-
static makeModelFromSettings(dh: DhType, settings: ChartModelSettings, table: Table): Promise<ChartModel>;
|
|
20
|
+
static makeModelFromSettings(dh: typeof DhType, settings: ChartModelSettings, table: DhType.Table): Promise<ChartModel>;
|
|
21
21
|
/**
|
|
22
22
|
* Creates a model from the settings provided.
|
|
23
23
|
* Tries to create a Figure in the API with it.
|
|
@@ -31,7 +31,7 @@ declare class ChartModelFactory {
|
|
|
31
31
|
* @param table The table to build the model for
|
|
32
32
|
* @returns The Figure created with the settings provided
|
|
33
33
|
*/
|
|
34
|
-
static makeFigureFromSettings(dh: DhType, settings: ChartModelSettings, table: Table): Promise<Figure>;
|
|
34
|
+
static makeFigureFromSettings(dh: typeof DhType, settings: ChartModelSettings, table: DhType.Table): Promise<DhType.plot.Figure>;
|
|
35
35
|
/**
|
|
36
36
|
* Creates a model from the settings provided.
|
|
37
37
|
* Tries to create a Figure in the API with it.
|
|
@@ -47,7 +47,7 @@ declare class ChartModelFactory {
|
|
|
47
47
|
* CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel
|
|
48
48
|
* This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel
|
|
49
49
|
*/
|
|
50
|
-
static makeModel(dh: DhType, settings: ChartModelSettings | undefined, figure: Figure): Promise<ChartModel>;
|
|
50
|
+
static makeModel(dh: typeof DhType, settings: ChartModelSettings | undefined, figure: DhType.plot.Figure): Promise<ChartModel>;
|
|
51
51
|
}
|
|
52
52
|
export default ChartModelFactory;
|
|
53
53
|
//# sourceMappingURL=ChartModelFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartModelFactory.d.ts","sourceRoot":"","sources":["../src/ChartModelFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ChartModelFactory.d.ts","sourceRoot":"","sources":["../src/ChartModelFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAmB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,cAAM,iBAAiB;IACrB;;;;;;;;;;;;;;OAcG;WACU,qBAAqB,CAChC,EAAE,EAAE,OAAO,MAAM,EACjB,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,MAAM,CAAC,KAAK,GAClB,OAAO,CAAC,UAAU,CAAC;IAStB;;;;;;;;;;;;OAYG;WACU,sBAAsB,CACjC,EAAE,EAAE,OAAO,MAAM,EACjB,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,MAAM,CAAC,KAAK,GAClB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;IAe9B;;;;;;;;;;;;;;OAcG;WACU,SAAS,CACpB,EAAE,EAAE,OAAO,MAAM,EACjB,QAAQ,EAAE,kBAAkB,GAAG,SAAS,EACxC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,GACzB,OAAO,CAAC,UAAU,CAAC;CAGvB;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartModelFactory.js","names":["ChartUtils","FigureChartModel","ChartModelFactory","makeModelFromSettings","dh","settings","table","_asyncToGenerator","figure","makeFigureFromSettings","tableCopy","copy","applyCustomColumns","customColumns","applyFilter","filter","applySort","sort","plot","Figure","create","makeFigureSettings","makeModel"],"sources":["../src/ChartModelFactory.ts"],"sourcesContent":["import type { dh as DhType
|
|
1
|
+
{"version":3,"file":"ChartModelFactory.js","names":["ChartUtils","FigureChartModel","ChartModelFactory","makeModelFromSettings","dh","settings","table","_asyncToGenerator","figure","makeFigureFromSettings","tableCopy","copy","applyCustomColumns","customColumns","applyFilter","filter","applySort","sort","plot","Figure","create","makeFigureSettings","makeModel"],"sources":["../src/ChartModelFactory.ts"],"sourcesContent":["import type { dh as DhType } from '@deephaven/jsapi-types';\nimport ChartUtils, { ChartModelSettings } from './ChartUtils';\nimport FigureChartModel from './FigureChartModel';\nimport ChartModel from './ChartModel';\n\nclass ChartModelFactory {\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param dh JSAPI instance\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param table The table to build the model for\n * @returns The ChartModel Promise representing the figure\n * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel\n * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel\n */\n static async makeModelFromSettings(\n dh: typeof DhType,\n settings: ChartModelSettings,\n table: DhType.Table\n ): Promise<ChartModel> {\n const figure = await ChartModelFactory.makeFigureFromSettings(\n dh,\n settings,\n table\n );\n return new FigureChartModel(dh, figure, settings);\n }\n\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param dh DH JSAPI instance\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param table The table to build the model for\n * @returns The Figure created with the settings provided\n */\n static async makeFigureFromSettings(\n dh: typeof DhType,\n settings: ChartModelSettings,\n table: DhType.Table\n ): Promise<DhType.plot.Figure> {\n // Copy the table first and then re-apply the filters from the original table\n // When we add table linking we'll want to listen to the original table and update\n // the copied table with any changes that occur.\n // The table gets owned by the Figure that gets created, which closes the table\n const tableCopy = await table.copy();\n tableCopy.applyCustomColumns(table.customColumns);\n tableCopy.applyFilter(table.filter);\n tableCopy.applySort(table.sort);\n\n return dh.plot.Figure.create(\n new ChartUtils(dh).makeFigureSettings(settings, tableCopy)\n );\n }\n\n /**\n * Creates a model from the settings provided.\n * Tries to create a Figure in the API with it.\n * @param dh DH JSAPI instance\n * @param settings The chart builder settings\n * @param settings.isLinked Whether the newly created chart should stay linked with the original table, update when filters are updated\n * @param settings.series The column names to use for creating the series of this chart\n * @param settings.type Chart builder type, from ChartBuilder.types\n * @param settings.xAxis The column name to use for the x-axis\n * @param [settings.hiddenSeries] Array of hidden series names\n * @param figure The figure to build the model for\n * @returns The FigureChartModel representing the figure\n * CRA sets tsconfig to type check JS based on jsdoc comments. It isn't able to figure out FigureChartModel extends ChartModel\n * This causes TS issues in 1 or 2 spots. Once this is TS it can be returned to just FigureChartModel\n */\n static async makeModel(\n dh: typeof DhType,\n settings: ChartModelSettings | undefined,\n figure: DhType.plot.Figure\n ): Promise<ChartModel> {\n return new FigureChartModel(dh, figure, settings);\n }\n}\n\nexport default ChartModelFactory;\n"],"mappings":";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AeH,iBAAiB"}
|
package/dist/ChartTestUtils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { dh as DhType } from '@deephaven/jsapi-types';
|
|
2
2
|
declare class ChartTestUtils {
|
|
3
3
|
static DEFAULT_FIGURE_TITLE: string;
|
|
4
4
|
static DEFAULT_CHART_TITLE: string;
|
|
@@ -6,44 +6,44 @@ declare class ChartTestUtils {
|
|
|
6
6
|
static DEFAULT_Y_TITLE: string;
|
|
7
7
|
static DEFAULT_SERIES_NAME: string;
|
|
8
8
|
private dh;
|
|
9
|
-
constructor(dh: DhType);
|
|
9
|
+
constructor(dh: typeof DhType);
|
|
10
10
|
makeAxis({ label, type, position, formatType, formatPattern, log, }?: {
|
|
11
11
|
label?: string;
|
|
12
|
-
type?: AxisType;
|
|
13
|
-
position?: AxisPosition;
|
|
14
|
-
formatType?: AxisFormatType;
|
|
12
|
+
type?: DhType.plot.AxisType;
|
|
13
|
+
position?: DhType.plot.AxisPosition;
|
|
14
|
+
formatType?: DhType.plot.AxisFormatType;
|
|
15
15
|
formatPattern?: string;
|
|
16
16
|
log?: boolean;
|
|
17
|
-
}): Axis;
|
|
18
|
-
makeDefaultAxes(): Axis[];
|
|
19
|
-
makeSource({ axis }: {
|
|
20
|
-
axis: Axis;
|
|
21
|
-
}): SeriesDataSource;
|
|
22
|
-
makeDefaultSources(): SeriesDataSource[];
|
|
17
|
+
}): DhType.plot.Axis;
|
|
18
|
+
makeDefaultAxes(): DhType.plot.Axis[];
|
|
19
|
+
makeSource({ axis, }: {
|
|
20
|
+
axis: DhType.plot.Axis;
|
|
21
|
+
}): DhType.plot.SeriesDataSource;
|
|
22
|
+
makeDefaultSources(): DhType.plot.SeriesDataSource[];
|
|
23
23
|
makeSeries({ name, plotStyle, sources, lineColor, shapeColor, }?: {
|
|
24
24
|
name?: string | null;
|
|
25
25
|
lineColor?: string | null;
|
|
26
|
-
plotStyle?:
|
|
26
|
+
plotStyle?: DhType.plot.SeriesPlotStyleType | null;
|
|
27
27
|
shapeColor?: string | null;
|
|
28
|
-
sources?: SeriesDataSource[];
|
|
29
|
-
}): Series;
|
|
28
|
+
sources?: DhType.plot.SeriesDataSource[];
|
|
29
|
+
}): DhType.plot.Series;
|
|
30
30
|
makeChart({ title, series, axes, showLegend, rowspan, colspan, row, column, }?: {
|
|
31
31
|
title?: string;
|
|
32
|
-
series?: Series[];
|
|
33
|
-
axes?: Axis[];
|
|
32
|
+
series?: DhType.plot.Series[];
|
|
33
|
+
axes?: DhType.plot.Axis[];
|
|
34
34
|
showLegend?: boolean | null;
|
|
35
35
|
rowspan?: number;
|
|
36
36
|
colspan?: number;
|
|
37
37
|
row?: number;
|
|
38
38
|
column?: number;
|
|
39
|
-
}): Chart;
|
|
39
|
+
}): DhType.plot.Chart;
|
|
40
40
|
makeFigure({ title, charts, rows, cols, errors, }?: {
|
|
41
41
|
title?: string | undefined;
|
|
42
|
-
charts?: Chart[] | undefined;
|
|
42
|
+
charts?: DhType.plot.Chart[] | undefined;
|
|
43
43
|
rows?: number | undefined;
|
|
44
44
|
cols?: number | undefined;
|
|
45
45
|
errors?: never[] | undefined;
|
|
46
|
-
}): Figure;
|
|
46
|
+
}): DhType.plot.Figure;
|
|
47
47
|
}
|
|
48
48
|
export default ChartTestUtils;
|
|
49
49
|
//# sourceMappingURL=ChartTestUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTestUtils.d.ts","sourceRoot":"","sources":["../src/ChartTestUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ChartTestUtils.d.ts","sourceRoot":"","sources":["../src/ChartTestUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAE3D,cAAM,cAAc;IAClB,MAAM,CAAC,oBAAoB,SAAkB;IAE7C,MAAM,CAAC,mBAAmB,SAAiB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AAC;KACrC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM;IAY3B,SAAS,CAAC,EACR,KAA0C,EAC1C,MAA4B,EAC5B,IAA6B,EAC7B,UAAiB,EACjB,OAAW,EACX,OAAW,EACX,GAAO,EACP,MAAU,GACX,GAAE;QACD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAC9B,IAAI,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC1B,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;KACZ,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK;IAc1B,UAAU,CAAC,EACT,KAA2C,EAC3C,MAA2B,EAC3B,IAAQ,EACR,IAAQ,EACR,MAAW,GACZ;;;;;;KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM;CAU5B;AAED,eAAe,cAAc,CAAC"}
|
package/dist/ChartTestUtils.js
CHANGED
|
@@ -23,7 +23,7 @@ class ChartTestUtils {
|
|
|
23
23
|
label,
|
|
24
24
|
type: type !== null && type !== void 0 ? type : dh.plot.AxisType.X,
|
|
25
25
|
position: position !== null && position !== void 0 ? position : dh.plot.AxisPosition.BOTTOM,
|
|
26
|
-
formatType: formatType !== null && formatType !== void 0 ? formatType : dh.
|
|
26
|
+
formatType: formatType !== null && formatType !== void 0 ? formatType : dh.plot.AxisFormatType.NUMBER,
|
|
27
27
|
formatPattern,
|
|
28
28
|
log
|
|
29
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTestUtils.js","names":["ChartTestUtils","constructor","dh","_defineProperty","makeAxis","label","type","undefined","position","formatType","formatPattern","log","arguments","length","Axis","plot","AxisType","X","AxisPosition","BOTTOM","
|
|
1
|
+
{"version":3,"file":"ChartTestUtils.js","names":["ChartTestUtils","constructor","dh","_defineProperty","makeAxis","label","type","undefined","position","formatType","formatPattern","log","arguments","length","Axis","plot","AxisType","X","AxisPosition","BOTTOM","AxisFormatType","NUMBER","makeDefaultAxes","DEFAULT_X_TITLE","DEFAULT_Y_TITLE","Y","makeSource","_ref","axis","SeriesDataSource","makeDefaultSources","axes","map","makeSeries","name","DEFAULT_SERIES_NAME","plotStyle","sources","lineColor","shapeColor","Series","SeriesPlotStyle","SCATTER","makeChart","title","DEFAULT_CHART_TITLE","series","showLegend","rowspan","colspan","row","column","Chart","makeFigure","DEFAULT_FIGURE_TITLE","charts","rows","cols","errors","Figure"],"sources":["../src/ChartTestUtils.ts"],"sourcesContent":["import type { dh as DhType } from '@deephaven/jsapi-types';\n\nclass ChartTestUtils {\n static DEFAULT_FIGURE_TITLE = 'Figure Title';\n\n static DEFAULT_CHART_TITLE = 'Chart Title';\n\n static DEFAULT_X_TITLE = 'X Axis';\n\n static DEFAULT_Y_TITLE = 'Y Axis';\n\n static DEFAULT_SERIES_NAME = 'MySeries';\n\n private dh: typeof DhType;\n\n constructor(dh: typeof DhType) {\n this.dh = dh;\n }\n\n makeAxis({\n label = 'Axis',\n type = undefined,\n position = undefined,\n formatType = undefined,\n formatPattern = '###,###0.00',\n log = false,\n }: {\n label?: string;\n type?: DhType.plot.AxisType;\n position?: DhType.plot.AxisPosition;\n formatType?: DhType.plot.AxisFormatType;\n formatPattern?: string;\n log?: boolean;\n } = {}): DhType.plot.Axis {\n const { dh } = this;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).Axis({\n label,\n type: type ?? dh.plot.AxisType.X,\n position: position ?? dh.plot.AxisPosition.BOTTOM,\n formatType: formatType ?? dh.plot.AxisFormatType.NUMBER,\n formatPattern,\n log,\n });\n }\n\n makeDefaultAxes(): DhType.plot.Axis[] {\n const { dh } = this;\n return [\n this.makeAxis({\n label: ChartTestUtils.DEFAULT_X_TITLE,\n type: dh.plot.AxisType.X,\n }),\n this.makeAxis({\n label: ChartTestUtils.DEFAULT_Y_TITLE,\n type: dh.plot.AxisType.Y,\n }),\n ];\n }\n\n makeSource({\n axis = this.makeAxis(),\n }: {\n axis: DhType.plot.Axis;\n }): DhType.plot.SeriesDataSource {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (this.dh as any).SeriesDataSource({ axis, type: axis.type });\n }\n\n makeDefaultSources(): DhType.plot.SeriesDataSource[] {\n const axes = this.makeDefaultAxes();\n return axes.map(axis => this.makeSource({ axis }));\n }\n\n makeSeries({\n name = ChartTestUtils.DEFAULT_SERIES_NAME,\n plotStyle = null,\n sources = this.makeDefaultSources(),\n lineColor = null,\n shapeColor = null,\n }: {\n name?: string | null;\n lineColor?: string | null;\n plotStyle?: DhType.plot.SeriesPlotStyleType | null;\n shapeColor?: string | null;\n sources?: DhType.plot.SeriesDataSource[];\n } = {}): DhType.plot.Series {\n const { dh } = this;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (dh as any).Series(\n name,\n plotStyle ?? dh.plot.SeriesPlotStyle.SCATTER,\n sources,\n lineColor,\n shapeColor\n );\n }\n\n makeChart({\n title = ChartTestUtils.DEFAULT_CHART_TITLE,\n series = [this.makeSeries()],\n axes = this.makeDefaultAxes(),\n showLegend = null,\n rowspan = 1,\n colspan = 1,\n row = 0,\n column = 0,\n }: {\n title?: string;\n series?: DhType.plot.Series[];\n axes?: DhType.plot.Axis[];\n showLegend?: boolean | null;\n rowspan?: number;\n colspan?: number;\n row?: number;\n column?: number;\n } = {}): DhType.plot.Chart {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (this.dh as any).Chart({\n title,\n series,\n axes,\n showLegend,\n row,\n column,\n rowspan,\n colspan,\n });\n }\n\n makeFigure({\n title = ChartTestUtils.DEFAULT_FIGURE_TITLE,\n charts = [this.makeChart()],\n rows = 1,\n cols = 1,\n errors = [],\n } = {}): DhType.plot.Figure {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new (this.dh as any).plot.Figure({\n title,\n charts,\n rows,\n cols,\n errors,\n });\n }\n}\n\nexport default ChartTestUtils;\n"],"mappings":";;;AAEA,MAAMA,cAAc,CAAC;EAanBC,WAAWA,CAACC,EAAiB,EAAE;IAAAC,eAAA;IAC7B,IAAI,CAACD,EAAE,GAAGA,EAAE;EACd;EAEAE,QAAQA,CAAA,EAckB;IAAA,IAdjB;MACPC,KAAK,GAAG,MAAM;MACdC,IAAI,GAAGC,SAAS;MAChBC,QAAQ,GAAGD,SAAS;MACpBE,UAAU,GAAGF,SAAS;MACtBG,aAAa,GAAG,aAAa;MAC7BC,GAAG,GAAG;IAQR,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAL,SAAA,GAAAK,SAAA,MAAG,CAAC,CAAC;IACJ,IAAM;MAAEV;IAAG,CAAC,GAAG,IAAI;IACnB;IACA,OAAO,IAAKA,EAAE,CAASY,IAAI,CAAC;MAC1BT,KAAK;MACLC,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAIJ,EAAE,CAACa,IAAI,CAACC,QAAQ,CAACC,CAAC;MAChCT,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAIN,EAAE,CAACa,IAAI,CAACG,YAAY,CAACC,MAAM;MACjDV,UAAU,EAAEA,UAAU,aAAVA,UAAU,cAAVA,UAAU,GAAIP,EAAE,CAACa,IAAI,CAACK,cAAc,CAACC,MAAM;MACvDX,aAAa;MACbC;IACF,CAAC,CAAC;EACJ;EAEAW,eAAeA,CAAA,EAAuB;IACpC,IAAM;MAAEpB;IAAG,CAAC,GAAG,IAAI;IACnB,OAAO,CACL,IAAI,CAACE,QAAQ,CAAC;MACZC,KAAK,EAAEL,cAAc,CAACuB,eAAe;MACrCjB,IAAI,EAAEJ,EAAE,CAACa,IAAI,CAACC,QAAQ,CA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dist/ChartUtils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Formatter } from '@deephaven/jsapi-utils';
|
|
2
|
-
import type {
|
|
2
|
+
import type { dh as DhType } from '@deephaven/jsapi-types';
|
|
3
3
|
import type { Layout, PlotData, PlotType, Axis as PlotlyAxis, ErrorBar, LayoutAxis, MarkerSymbol, Template } from 'plotly.js';
|
|
4
4
|
import { Range } from '@deephaven/utils';
|
|
5
5
|
import { ChartTheme } from './ChartTheme';
|
|
@@ -10,7 +10,7 @@ export type FilterColumnMap = Map<string, {
|
|
|
10
10
|
export type FilterMap = Map<string, unknown>;
|
|
11
11
|
export interface ChartModelSettings {
|
|
12
12
|
hiddenSeries?: string[];
|
|
13
|
-
type?: keyof SeriesPlotStyle;
|
|
13
|
+
type?: keyof DhType.plot.SeriesPlotStyle;
|
|
14
14
|
series?: string[];
|
|
15
15
|
xAxis?: string;
|
|
16
16
|
title?: string;
|
|
@@ -26,8 +26,8 @@ export interface SeriesData {
|
|
|
26
26
|
xHigh?: number;
|
|
27
27
|
}
|
|
28
28
|
export type RangeParser = (range: Range) => unknown[];
|
|
29
|
-
export type AxisRangeParser = (axis: Axis) => RangeParser;
|
|
30
|
-
export type ChartAxisRangeParser = (chart: Chart) => AxisRangeParser;
|
|
29
|
+
export type AxisRangeParser = (axis: DhType.plot.Axis) => RangeParser;
|
|
30
|
+
export type ChartAxisRangeParser = (chart: DhType.plot.Chart) => AxisRangeParser;
|
|
31
31
|
type LayoutAxisKey = 'xaxis' | 'xaxis2' | 'xaxis3' | 'xaxis4' | 'xaxis5' | 'xaxis6' | 'xaxis7' | 'xaxis8' | 'xaxis9' | 'yaxis' | 'yaxis2' | 'yaxis3' | 'yaxis4' | 'yaxis5' | 'yaxis6' | 'yaxis7' | 'yaxis8' | 'yaxis9';
|
|
32
32
|
export interface TreeMapData extends PlotData {
|
|
33
33
|
tiling: {
|
|
@@ -49,8 +49,8 @@ export type ChartBounds = {
|
|
|
49
49
|
top: number;
|
|
50
50
|
bottom: number;
|
|
51
51
|
};
|
|
52
|
-
export type AxisTypeMap = Map<AxisType, Axis[]>;
|
|
53
|
-
type AxisPositionMap = Map<AxisPosition, Axis[]>;
|
|
52
|
+
export type AxisTypeMap = Map<DhType.plot.AxisType, DhType.plot.Axis[]>;
|
|
53
|
+
type AxisPositionMap = Map<DhType.plot.AxisPosition, DhType.plot.Axis[]>;
|
|
54
54
|
declare class ChartUtils {
|
|
55
55
|
static DEFAULT_AXIS_SIZE: number;
|
|
56
56
|
static MIN_AXIS_SIZE: number;
|
|
@@ -88,7 +88,7 @@ declare class ChartUtils {
|
|
|
88
88
|
*/
|
|
89
89
|
static getPlotlyErrorBars(x: number[], xLow: number[], xHigh: number[]): ErrorBar;
|
|
90
90
|
static convertNumberPrefix(prefix: string): string;
|
|
91
|
-
static getPlotlyNumberFormat(formatter: Formatter | null, columnType: string, formatPattern: string): Partial<LayoutAxis> | null;
|
|
91
|
+
static getPlotlyNumberFormat(formatter: Formatter | null, columnType: string, formatPattern: string | null | undefined): Partial<LayoutAxis> | null;
|
|
92
92
|
/**
|
|
93
93
|
* Adds tick spacing for an axis that has gapBetweenMajorTicks defined.
|
|
94
94
|
*
|
|
@@ -96,14 +96,14 @@ declare class ChartUtils {
|
|
|
96
96
|
* @param axis the current axis
|
|
97
97
|
* @param isDateType indicates if the columns is a date type
|
|
98
98
|
*/
|
|
99
|
-
static addTickSpacing(axisFormat: Partial<LayoutAxis> | null, axis: Axis, isDateType: boolean): Partial<PlotlyAxis> | null;
|
|
99
|
+
static addTickSpacing(axisFormat: Partial<LayoutAxis> | null, axis: DhType.plot.Axis, isDateType: boolean): Partial<PlotlyAxis> | null;
|
|
100
100
|
/**
|
|
101
101
|
* Retrieve the data source for a given axis in a chart
|
|
102
102
|
* @param chart The chart to get the source for
|
|
103
103
|
* @param axis The axis to find the source for
|
|
104
104
|
* @returns The first source matching this axis
|
|
105
105
|
*/
|
|
106
|
-
static getSourceForAxis(chart: Chart, axis: Axis): SeriesDataSource | null;
|
|
106
|
+
static getSourceForAxis(chart: DhType.plot.Chart, axis: DhType.plot.Axis): DhType.plot.SeriesDataSource | null;
|
|
107
107
|
/**
|
|
108
108
|
* Get visibility setting for the series object
|
|
109
109
|
* @param name The series name to get the visibility for
|
|
@@ -134,19 +134,19 @@ declare class ChartUtils {
|
|
|
134
134
|
* Get all axes for a given `Figure`. Iterates through all charts axes and concatenates them.
|
|
135
135
|
* @param figure Figure to get all axes for
|
|
136
136
|
*/
|
|
137
|
-
static getAllAxes(figure: Figure): Axis[];
|
|
137
|
+
static getAllAxes(figure: DhType.plot.Figure): DhType.plot.Axis[];
|
|
138
138
|
/**
|
|
139
139
|
* Get the axis type map for the figure provided
|
|
140
140
|
* @param figure Figure to get the type map for
|
|
141
141
|
* @returns Axis type map for the figure provided
|
|
142
142
|
*/
|
|
143
|
-
static getAxisTypeMap(figure: Figure): AxisTypeMap;
|
|
143
|
+
static getAxisTypeMap(figure: DhType.plot.Figure): AxisTypeMap;
|
|
144
144
|
/**
|
|
145
145
|
* Retrieve the chart that contains the passed in series from the figure
|
|
146
146
|
* @param figure The figure to retrieve the chart from
|
|
147
147
|
* @param series The series to get the chart for
|
|
148
148
|
*/
|
|
149
|
-
static getChartForSeries(figure: Figure, series: Series): Chart | null;
|
|
149
|
+
static getChartForSeries(figure: DhType.plot.Figure, series: DhType.plot.Series): DhType.plot.Chart | null;
|
|
150
150
|
/**
|
|
151
151
|
* Get an object mapping axis to their ranges
|
|
152
152
|
* @param layout The plotly layout object to get the ranges from
|
|
@@ -178,7 +178,7 @@ declare class ChartUtils {
|
|
|
178
178
|
static titleFromSettings(settings: ChartModelSettings): string;
|
|
179
179
|
private dh;
|
|
180
180
|
private daysOfWeek;
|
|
181
|
-
constructor(dh: DhType);
|
|
181
|
+
constructor(dh: typeof DhType);
|
|
182
182
|
/**
|
|
183
183
|
* Retrieve the axis formats from the provided figure.
|
|
184
184
|
* Currently defaults to just the x/y axes.
|
|
@@ -186,27 +186,27 @@ declare class ChartUtils {
|
|
|
186
186
|
* @param formatter The formatter to use when getting the axis format
|
|
187
187
|
* @returns A map of axis layout property names to axis formats
|
|
188
188
|
*/
|
|
189
|
-
getAxisFormats(figure: Figure, formatter: Formatter): Map<LayoutAxisKey, Partial<PlotlyAxis>>;
|
|
189
|
+
getAxisFormats(figure: DhType.plot.Figure, formatter: Formatter): Map<LayoutAxisKey, Partial<PlotlyAxis>>;
|
|
190
190
|
/**
|
|
191
191
|
* Converts the Iris plot style into a plotly chart type
|
|
192
192
|
* @param plotStyle The plotStyle to use, see dh.plot.SeriesPlotStyle
|
|
193
193
|
* @param isBusinessTime If the plot is using business time for an axis
|
|
194
194
|
*/
|
|
195
|
-
getPlotlyChartType(plotStyle: SeriesPlotStyle, isBusinessTime: boolean): PlotType | undefined;
|
|
195
|
+
getPlotlyChartType(plotStyle: DhType.plot.SeriesPlotStyle, isBusinessTime: boolean): PlotType | undefined;
|
|
196
196
|
/**
|
|
197
197
|
* Converts the Iris plot style into a plotly chart mode
|
|
198
198
|
* @param plotStyle The plotStyle to use, see dh.plot.SeriesPlotStyle.*
|
|
199
199
|
* @param areLinesVisible Whether lines are visible or not
|
|
200
200
|
* @param areShapesVisible Whether shapes are visible or not
|
|
201
201
|
*/
|
|
202
|
-
getPlotlyChartMode(plotStyle: SeriesPlotStyle, areLinesVisible?: boolean | null, areShapesVisible?: boolean | null): PlotData['mode'] | undefined;
|
|
202
|
+
getPlotlyChartMode(plotStyle: DhType.plot.SeriesPlotStyle, areLinesVisible?: boolean | null, areShapesVisible?: boolean | null): PlotData['mode'] | undefined;
|
|
203
203
|
/**
|
|
204
204
|
* Get the property to set on the series data for plotly
|
|
205
205
|
* @param plotStyle The plot style of the series
|
|
206
206
|
* @param sourceType The source type for the series
|
|
207
207
|
*/
|
|
208
|
-
getPlotlyProperty(plotStyle: SeriesPlotStyle, sourceType: SourceType): string;
|
|
209
|
-
getPlotlySeriesOrientation(series: Series): 'h' | 'v' | undefined;
|
|
208
|
+
getPlotlyProperty(plotStyle: DhType.plot.SeriesPlotStyle, sourceType: DhType.plot.SourceType): string;
|
|
209
|
+
getPlotlySeriesOrientation(series: DhType.plot.Series): 'h' | 'v' | undefined;
|
|
210
210
|
/**
|
|
211
211
|
* Create a data series (trace) for use with plotly
|
|
212
212
|
* @param series The series to create the series data with
|
|
@@ -214,20 +214,20 @@ declare class ChartUtils {
|
|
|
214
214
|
* @param seriesVisibility Visibility setting for the series
|
|
215
215
|
* @returns The series data (trace) object for use with plotly.
|
|
216
216
|
*/
|
|
217
|
-
makeSeriesDataFromSeries(series: Series, axisTypeMap: AxisTypeMap, seriesVisibility: boolean | 'legendonly', showLegend?: boolean | null): Partial<PlotData>;
|
|
218
|
-
addSourcesToSeriesData(seriesDataParam: Partial<PlotData>, plotStyle: SeriesPlotStyle, sources: SeriesDataSource[], axisTypeMap: AxisTypeMap): void;
|
|
219
|
-
addStylingToSeriesData(seriesDataParam: Partial<PlotData>, plotStyle: SeriesPlotStyle, lineColor?: string | null, shapeColor?: string | null, shape?: string | null, shapeSize?: number | null, seriesVisibility?: 'legendonly' | boolean | null): void;
|
|
220
|
-
getChartType(plotStyle: SeriesPlotStyle, isBusinessTime: boolean): PlotType | undefined;
|
|
217
|
+
makeSeriesDataFromSeries(series: DhType.plot.Series, axisTypeMap: AxisTypeMap, seriesVisibility: boolean | 'legendonly', showLegend?: boolean | null): Partial<PlotData>;
|
|
218
|
+
addSourcesToSeriesData(seriesDataParam: Partial<PlotData>, plotStyle: DhType.plot.SeriesPlotStyle, sources: DhType.plot.SeriesDataSource[], axisTypeMap: AxisTypeMap): void;
|
|
219
|
+
addStylingToSeriesData(seriesDataParam: Partial<PlotData>, plotStyle: DhType.plot.SeriesPlotStyle, lineColor?: string | null, shapeColor?: string | null, shape?: string | null, shapeSize?: number | null, seriesVisibility?: 'legendonly' | boolean | null): void;
|
|
220
|
+
getChartType(plotStyle: DhType.plot.SeriesPlotStyle, isBusinessTime: boolean): PlotType | undefined;
|
|
221
221
|
/**
|
|
222
222
|
* Return the plotly axis property name
|
|
223
223
|
* @param axisType The axis type to get the property name for
|
|
224
224
|
*/
|
|
225
|
-
getAxisPropertyName(axisType: AxisType): 'x' | 'y' | null;
|
|
225
|
+
getAxisPropertyName(axisType: DhType.plot.AxisType): 'x' | 'y' | null;
|
|
226
226
|
/**
|
|
227
227
|
* Returns the plotly "side" value for the provided axis position
|
|
228
228
|
* @param axisPosition The Iris AxisPosition of the axis
|
|
229
229
|
*/
|
|
230
|
-
getAxisSide(axisPosition: AxisPosition): LayoutAxis['side'] | undefined;
|
|
230
|
+
getAxisSide(axisPosition: DhType.plot.AxisPosition): LayoutAxis['side'] | undefined;
|
|
231
231
|
/**
|
|
232
232
|
* Update the layout with all the axes information for the provided figure
|
|
233
233
|
* @param figure Figure to update the axes for
|
|
@@ -236,15 +236,15 @@ declare class ChartUtils {
|
|
|
236
236
|
* @param plotWidth Width of the plot in pixels
|
|
237
237
|
* @param plotHeight Height of the plot in pixels
|
|
238
238
|
*/
|
|
239
|
-
updateFigureAxes(layoutParam: Partial<Layout>, figure: Figure, chartAxisRangeParser?: ChartAxisRangeParser, plotWidth?: number, plotHeight?: number): void;
|
|
240
|
-
getChartBounds(figure: Figure, chart: Chart, plotWidth: number, plotHeight: number): ChartBounds;
|
|
241
|
-
getPlotlyDateFormat(formatter: Formatter | null, columnType: string, formatPattern: string): Partial<LayoutAxis>;
|
|
239
|
+
updateFigureAxes(layoutParam: Partial<Layout>, figure: DhType.plot.Figure, chartAxisRangeParser?: ChartAxisRangeParser, plotWidth?: number, plotHeight?: number): void;
|
|
240
|
+
getChartBounds(figure: DhType.plot.Figure, chart: DhType.plot.Chart, plotWidth: number, plotHeight: number): ChartBounds;
|
|
241
|
+
getPlotlyDateFormat(formatter: Formatter | null, columnType: string, formatPattern: string | undefined | null): Partial<LayoutAxis>;
|
|
242
242
|
/**
|
|
243
243
|
* Gets the plotly axis formatting information from the source passed in
|
|
244
244
|
* @param source The Source to get the formatter information from
|
|
245
245
|
* @param formatter The current formatter for formatting data
|
|
246
246
|
*/
|
|
247
|
-
getPlotlyAxisFormat(source: SeriesDataSource, formatter?: Formatter | null): Partial<PlotlyAxis> | null;
|
|
247
|
+
getPlotlyAxisFormat(source: DhType.plot.SeriesDataSource, formatter?: Formatter | null): Partial<PlotlyAxis> | null;
|
|
248
248
|
/**
|
|
249
249
|
* Updates the axes positions and sizes in the layout object provided.
|
|
250
250
|
* If the axis did not exist in the layout previously, it is created and added.
|
|
@@ -258,13 +258,13 @@ declare class ChartUtils {
|
|
|
258
258
|
* @param bounds The bounds for this set of axes
|
|
259
259
|
* @param axisRangeParser A function to retrieve the range parser for a given axis
|
|
260
260
|
*/
|
|
261
|
-
updateLayoutAxes(layoutParam: Partial<Layout>, chartAxes: Axis[], figureAxes: Axis[], plotWidth?: number, plotHeight?: number, bounds?: ChartBounds, axisRangeParser?: AxisRangeParser): void;
|
|
261
|
+
updateLayoutAxes(layoutParam: Partial<Layout>, chartAxes: DhType.plot.Axis[], figureAxes: DhType.plot.Axis[], plotWidth?: number, plotHeight?: number, bounds?: ChartBounds, axisRangeParser?: AxisRangeParser): void;
|
|
262
262
|
/**
|
|
263
263
|
* Remove any axes from the layout param that no longer belong to any series
|
|
264
264
|
* @param layoutParam Layout object to remove stale axes from
|
|
265
265
|
* @param axes All axes in the figure
|
|
266
266
|
*/
|
|
267
|
-
removeStaleAxes(layoutParam: Partial<Layout>, axes: Axis[]): void;
|
|
267
|
+
removeStaleAxes(layoutParam: Partial<Layout>, axes: DhType.plot.Axis[]): void;
|
|
268
268
|
/**
|
|
269
269
|
* Updates the layout axis object in place
|
|
270
270
|
* @param layoutAxisParam The plotly layout axis param
|
|
@@ -274,7 +274,7 @@ declare class ChartUtils {
|
|
|
274
274
|
* @param axisSize The size of each axis in percent
|
|
275
275
|
* @param bounds The bounds of the axes domains
|
|
276
276
|
*/
|
|
277
|
-
updateLayoutAxis(layoutAxisParam: Partial<LayoutAxis>, axis: Axis, axisIndex: number, axisPositionMap: AxisPositionMap, xAxisSize: number, yAxisSize: number, bounds: {
|
|
277
|
+
updateLayoutAxis(layoutAxisParam: Partial<LayoutAxis>, axis: DhType.plot.Axis, axisIndex: number, axisPositionMap: AxisPositionMap, xAxisSize: number, yAxisSize: number, bounds: {
|
|
278
278
|
left: number;
|
|
279
279
|
bottom: number;
|
|
280
280
|
top: number;
|
|
@@ -296,7 +296,7 @@ declare class ChartUtils {
|
|
|
296
296
|
* @param calendarTimeZone the time zone for the business calendar
|
|
297
297
|
* @param formatterTimeZone the time zone for the formatter
|
|
298
298
|
*/
|
|
299
|
-
createRangeBreakValuesFromHolidays(holidays: Holiday[], calendarTimeZone: TimeZone, formatterTimeZone?: TimeZone): Rangebreaks[];
|
|
299
|
+
createRangeBreakValuesFromHolidays(holidays: DhType.calendar.Holiday[], calendarTimeZone: DhType.i18n.TimeZone, formatterTimeZone?: DhType.i18n.TimeZone): Rangebreaks[];
|
|
300
300
|
/**
|
|
301
301
|
* Creates the range break value for a full holiday. A full holiday is day that has no business periods.
|
|
302
302
|
*
|
|
@@ -304,7 +304,7 @@ declare class ChartUtils {
|
|
|
304
304
|
* @param calendarTimeZone the time zone for the business calendar
|
|
305
305
|
* @param formatterTimeZone the time zone for the formatter
|
|
306
306
|
*/
|
|
307
|
-
createFullHoliday(holiday: Holiday, calendarTimeZone: TimeZone, formatterTimeZone?: TimeZone): string;
|
|
307
|
+
createFullHoliday(holiday: DhType.calendar.Holiday, calendarTimeZone: DhType.i18n.TimeZone, formatterTimeZone?: DhType.i18n.TimeZone): string;
|
|
308
308
|
/**
|
|
309
309
|
* Creates the range break for a partial holiday. A partial holiday is holiday with business periods
|
|
310
310
|
* that are different than the default business periods.
|
|
@@ -313,7 +313,7 @@ declare class ChartUtils {
|
|
|
313
313
|
* @param calendarTimeZone the time zone for the business calendar
|
|
314
314
|
* @param formatterTimeZone the time zone for the formatter
|
|
315
315
|
*/
|
|
316
|
-
createPartialHoliday(holiday: Holiday, calendarTimeZone: TimeZone, formatterTimeZone?: TimeZone): {
|
|
316
|
+
createPartialHoliday(holiday: DhType.calendar.Holiday, calendarTimeZone: DhType.i18n.TimeZone, formatterTimeZone?: DhType.i18n.TimeZone): {
|
|
317
317
|
values: string[];
|
|
318
318
|
dvalue: number;
|
|
319
319
|
}[];
|
|
@@ -324,7 +324,7 @@ declare class ChartUtils {
|
|
|
324
324
|
* @param calendarTimeZone the time zone for the business calendar
|
|
325
325
|
* @param formatterTimeZone the time zone for the formatter
|
|
326
326
|
*/
|
|
327
|
-
adjustDateForTimeZone(dateString: string, calendarTimeZone: TimeZone, formatterTimeZone?: TimeZone): string;
|
|
327
|
+
adjustDateForTimeZone(dateString: string, calendarTimeZone: DhType.i18n.TimeZone, formatterTimeZone?: DhType.i18n.TimeZone): string;
|
|
328
328
|
/**
|
|
329
329
|
* Creates the Figure settings from the Chart Builder settings
|
|
330
330
|
* This should be deprecated at some point, and have Chart Builder create the figure settings directly.
|
|
@@ -337,7 +337,7 @@ declare class ChartUtils {
|
|
|
337
337
|
* @param settings.series The name of the columns to use for the series of this figure
|
|
338
338
|
* @param settings.type The plot style for this figure
|
|
339
339
|
*/
|
|
340
|
-
makeFigureSettings(settings: ChartModelSettings, table:
|
|
340
|
+
makeFigureSettings(settings: ChartModelSettings, table: DhType.Table): {
|
|
341
341
|
charts: {
|
|
342
342
|
chartType: string;
|
|
343
343
|
axes: {
|
|
@@ -356,7 +356,7 @@ declare class ChartUtils {
|
|
|
356
356
|
type: string;
|
|
357
357
|
position: string;
|
|
358
358
|
};
|
|
359
|
-
table:
|
|
359
|
+
table: DhType.Table;
|
|
360
360
|
}[];
|
|
361
361
|
}[];
|
|
362
362
|
}[];
|
|
@@ -366,15 +366,15 @@ declare class ChartUtils {
|
|
|
366
366
|
* Unwraps a value provided from API to a value plotly can understand
|
|
367
367
|
* Eg. Unwraps DateWrapper, LongWrapper objects.
|
|
368
368
|
*/
|
|
369
|
-
unwrapValue(value: unknown, timeZone?: TimeZone): unknown;
|
|
369
|
+
unwrapValue(value: unknown, timeZone?: DhType.i18n.TimeZone): unknown;
|
|
370
370
|
/**
|
|
371
371
|
*
|
|
372
372
|
* @param value The value to wrap up
|
|
373
373
|
* @param columnType The type of column this value is from
|
|
374
374
|
* @param timeZone The time zone if applicable
|
|
375
375
|
*/
|
|
376
|
-
wrapValue(value: unknown, columnType: string, timeZone?: TimeZone | null): unknown;
|
|
377
|
-
makeLayoutAxis(type: AxisType, theme: Partial<ChartTheme>): Partial<LayoutAxis>;
|
|
376
|
+
wrapValue(value: unknown, columnType: string, timeZone?: DhType.i18n.TimeZone | null): unknown;
|
|
377
|
+
makeLayoutAxis(type: DhType.plot.AxisType | null, theme: Partial<ChartTheme>): Partial<LayoutAxis>;
|
|
378
378
|
/**
|
|
379
379
|
* Creates a plotly layout template object based on a given theme.
|
|
380
380
|
* See https://plotly.com/javascript/reference/layout/#layout-template
|
|
@@ -393,7 +393,7 @@ declare class ChartUtils {
|
|
|
393
393
|
* @param settings Dehydrated settings
|
|
394
394
|
*/
|
|
395
395
|
hydrateSettings(settings: ChartModelSettings): Omit<ChartModelSettings, 'type'> & {
|
|
396
|
-
type?: SeriesPlotStyle;
|
|
396
|
+
type?: DhType.plot.SeriesPlotStyle;
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
export default ChartUtils;
|
package/dist/ChartUtils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartUtils.d.ts","sourceRoot":"","sources":["../src/ChartUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,EAGV,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ChartUtils.d.ts","sourceRoot":"","sources":["../src/ChartUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,EAGV,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAA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