@aquera/nile-visualization 2.9.30 → 2.9.31
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/README.md +11 -0
- package/dist/src/index.d.ts +7 -8
- package/dist/src/index.js +2 -3
- package/dist/src/internal/base/forecastable-chart.d.ts +59 -0
- package/dist/src/internal/base/forecastable-chart.js +149 -0
- package/dist/src/internal/{nile-chart-base.d.ts → base/nile-chart-base.d.ts} +1 -1
- package/dist/src/internal/{nile-chart-base.js → base/nile-chart-base.js} +1 -1
- package/dist/src/internal/types/chart-area-config.type.d.ts +4 -2
- package/dist/src/internal/types/chart-area-spline-config.type.d.ts +4 -2
- package/dist/src/internal/types/chart-column-config.type.d.ts +3 -2
- package/dist/src/internal/types/chart-line-config.type.d.ts +3 -2
- package/dist/src/internal/types/chart-spline-config.type.d.ts +3 -2
- package/dist/src/internal/types/index.d.ts +0 -1
- package/dist/src/internal/types/primitive-chart-config.type.d.ts +1 -2
- package/dist/src/internal/{chart-adapters.d.ts → utils/chart-adapters.d.ts} +1 -1
- package/dist/src/internal/{chart-adapters.js → utils/chart-adapters.js} +15 -3
- package/dist/src/internal/utils/chart-forecast.d.ts +126 -0
- package/dist/src/internal/utils/chart-forecast.js +297 -0
- package/dist/src/internal/{dashboard-adapters.d.ts → utils/dashboard-adapters.d.ts} +1 -1
- package/dist/src/internal/{utils.js → utils/deep-merge.js} +1 -1
- package/dist/src/internal/{resolve-widget-kind.d.ts → utils/resolve-widget-kind.d.ts} +1 -1
- package/dist/src/internal/utils/separated-chart-config.d.ts +13 -0
- package/dist/src/internal/utils/separated-chart-config.js +30 -0
- package/dist/src/nile-ai-panel/nile-ai-panel.d.ts +1 -1
- package/dist/src/nile-ai-panel/nile-ai-panel.js +1 -1
- package/dist/src/nile-ai-sender/nile-ai-sender.d.ts +1 -1
- package/dist/src/nile-ai-sender/nile-ai-sender.js +1 -1
- package/dist/src/nile-anomaly-chart/nile-anomaly-chart.d.ts +1 -1
- package/dist/src/nile-anomaly-chart/nile-anomaly-chart.js +4 -4
- package/dist/src/nile-area-chart/nile-area-chart.d.ts +7 -6
- package/dist/src/nile-area-chart/nile-area-chart.js +37 -24
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.d.ts +1 -1
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.js +5 -5
- package/dist/src/nile-area-range-chart/nile-area-range-chart.d.ts +1 -1
- package/dist/src/nile-area-range-chart/nile-area-range-chart.js +5 -5
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.d.ts +10 -4
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.js +38 -27
- package/dist/src/nile-bar-chart/nile-bar-chart.d.ts +3 -3
- package/dist/src/nile-bar-chart/nile-bar-chart.js +4 -4
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.d.ts +3 -2
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.js +5 -5
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.d.ts +3 -2
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.js +5 -5
- package/dist/src/nile-bubble-chart/nile-bubble-chart.d.ts +3 -3
- package/dist/src/nile-bubble-chart/nile-bubble-chart.js +4 -4
- package/dist/src/nile-chart/index.d.ts +2 -2
- package/dist/src/nile-chart/index.js +1 -1
- package/dist/src/nile-chart/nile-chart-config.d.ts +21 -32
- package/dist/src/nile-chart/nile-chart.css.js +0 -1
- package/dist/src/nile-chart/nile-chart.d.ts +2 -8
- package/dist/src/nile-chart/nile-chart.js +54 -61
- package/dist/src/nile-chart-list/nile-chart-list.d.ts +1 -1
- package/dist/src/nile-chart-list/nile-chart-list.js +1 -1
- package/dist/src/nile-chart-message/nile-chart-message.d.ts +1 -1
- package/dist/src/nile-chart-message/nile-chart-message.js +1 -1
- package/dist/src/nile-cluster-chart/nile-cluster-chart.d.ts +3 -2
- package/dist/src/nile-cluster-chart/nile-cluster-chart.js +5 -5
- package/dist/src/nile-column-chart/nile-column-chart.d.ts +13 -6
- package/dist/src/nile-column-chart/nile-column-chart.js +43 -24
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.d.ts +1 -1
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.js +5 -5
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.d.ts +1 -1
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.js +5 -5
- package/dist/src/nile-column-range-chart/nile-column-range-chart.d.ts +1 -1
- package/dist/src/nile-column-range-chart/nile-column-range-chart.js +5 -5
- package/dist/src/nile-dashboard-builder/nile-dashboard-builder.d.ts +1 -1
- package/dist/src/nile-dashboard-builder/nile-dashboard-builder.js +2 -2
- package/dist/src/nile-dashboard-viewer/nile-dashboard-viewer.d.ts +1 -1
- package/dist/src/nile-dashboard-viewer/nile-dashboard-viewer.js +1 -1
- package/dist/src/nile-donut-chart/nile-donut-chart.d.ts +3 -3
- package/dist/src/nile-donut-chart/nile-donut-chart.js +4 -4
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.d.ts +1 -1
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.js +5 -5
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.d.ts +1 -1
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.js +5 -5
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.d.ts +1 -1
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.js +5 -5
- package/dist/src/nile-euler-chart/nile-euler-chart.d.ts +1 -1
- package/dist/src/nile-euler-chart/nile-euler-chart.js +5 -5
- package/dist/src/nile-executive-summary/nile-executive-summary.d.ts +1 -1
- package/dist/src/nile-executive-summary/nile-executive-summary.js +1 -1
- package/dist/src/nile-fan-chart/nile-fan-chart.d.ts +1 -1
- package/dist/src/nile-fan-chart/nile-fan-chart.js +5 -5
- package/dist/src/nile-filter-chart/nile-filter-chart.d.ts +1 -1
- package/dist/src/nile-filter-chart/nile-filter-chart.js +1 -1
- package/dist/src/nile-flame-chart/nile-flame-chart.d.ts +1 -1
- package/dist/src/nile-flame-chart/nile-flame-chart.js +5 -5
- package/dist/src/nile-funnel-chart/nile-funnel-chart.d.ts +1 -1
- package/dist/src/nile-funnel-chart/nile-funnel-chart.js +5 -5
- package/dist/src/nile-gauge-chart/nile-gauge-chart.d.ts +1 -1
- package/dist/src/nile-gauge-chart/nile-gauge-chart.js +4 -4
- package/dist/src/nile-heatmap-chart/nile-heatmap-chart.d.ts +3 -2
- package/dist/src/nile-heatmap-chart/nile-heatmap-chart.js +5 -5
- package/dist/src/nile-histogram-chart/nile-histogram-chart.d.ts +3 -2
- package/dist/src/nile-histogram-chart/nile-histogram-chart.js +5 -5
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.d.ts +1 -1
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.js +5 -5
- package/dist/src/nile-kpi-chart/nile-kpi-chart.css.js +41 -0
- package/dist/src/nile-kpi-chart/nile-kpi-chart.d.ts +31 -1
- package/dist/src/nile-kpi-chart/nile-kpi-chart.js +73 -3
- package/dist/src/nile-line-chart/nile-line-chart.d.ts +12 -6
- package/dist/src/nile-line-chart/nile-line-chart.js +44 -24
- package/dist/src/nile-line-column-chart/nile-line-column-chart.d.ts +1 -1
- package/dist/src/nile-line-column-chart/nile-line-column-chart.js +5 -5
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.d.ts +1 -1
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.js +5 -5
- package/dist/src/nile-map-chart/nile-map-chart.d.ts +2 -2
- package/dist/src/nile-map-chart/nile-map-chart.js +4 -4
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.d.ts +1 -1
- package/dist/src/nile-master-detail-chart/nile-master-detail-chart.js +5 -5
- package/dist/src/nile-organization-chart/nile-organization-chart.d.ts +1 -1
- package/dist/src/nile-organization-chart/nile-organization-chart.js +5 -5
- package/dist/src/nile-pie-chart/nile-pie-chart.d.ts +1 -1
- package/dist/src/nile-pie-chart/nile-pie-chart.js +4 -4
- package/dist/src/nile-polygon-chart/nile-polygon-chart.d.ts +1 -1
- package/dist/src/nile-polygon-chart/nile-polygon-chart.js +5 -5
- package/dist/src/nile-radar-chart/nile-radar-chart.d.ts +3 -3
- package/dist/src/nile-radar-chart/nile-radar-chart.js +4 -4
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.d.ts +3 -2
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.js +5 -5
- package/dist/src/nile-scatter-chart/nile-scatter-chart.d.ts +3 -3
- package/dist/src/nile-scatter-chart/nile-scatter-chart.js +4 -4
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.d.ts +3 -2
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.js +5 -5
- package/dist/src/nile-spline-chart/nile-spline-chart.d.ts +8 -6
- package/dist/src/nile-spline-chart/nile-spline-chart.js +36 -24
- package/dist/src/nile-stacked-chart/nile-stacked-chart.d.ts +3 -2
- package/dist/src/nile-stacked-chart/nile-stacked-chart.js +5 -5
- package/dist/src/nile-timeline-chart/nile-timeline-chart.d.ts +1 -1
- package/dist/src/nile-timeline-chart/nile-timeline-chart.js +5 -5
- package/dist/src/nile-trendline-chart/nile-trendline-chart.d.ts +1 -1
- package/dist/src/nile-trendline-chart/nile-trendline-chart.js +4 -4
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.d.ts +3 -2
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.js +5 -5
- package/dist/src/nile-vector-chart/nile-vector-chart.d.ts +1 -1
- package/dist/src/nile-vector-chart/nile-vector-chart.js +5 -5
- package/dist/src/nile-waterfall-chart/nile-waterfall-chart.d.ts +3 -3
- package/dist/src/nile-waterfall-chart/nile-waterfall-chart.js +4 -4
- package/dist/src/nile-widget-viewer/nile-widget-viewer.css.js +6 -2
- package/dist/src/nile-widget-viewer/nile-widget-viewer.d.ts +1 -1
- package/dist/src/nile-widget-viewer/nile-widget-viewer.js +2 -2
- package/dist/src/nile-xrange-chart/nile-xrange-chart.d.ts +3 -2
- package/dist/src/nile-xrange-chart/nile-xrange-chart.js +5 -5
- package/package.json +1 -2
- package/dist/src/internal/separated-chart-config.d.ts +0 -5
- package/dist/src/internal/separated-chart-config.js +0 -16
- package/dist/src/internal/types/chart-forecast-config.type.d.ts +0 -35
- package/dist/src/internal/types/chart-forecast-config.type.js +0 -2
- package/dist/src/nile-forecast-chart/index.d.ts +0 -2
- package/dist/src/nile-forecast-chart/index.js +0 -2
- package/dist/src/nile-forecast-chart/nile-forecast-chart.css.d.ts +0 -1
- package/dist/src/nile-forecast-chart/nile-forecast-chart.css.js +0 -46
- package/dist/src/nile-forecast-chart/nile-forecast-chart.d.ts +0 -90
- package/dist/src/nile-forecast-chart/nile-forecast-chart.js +0 -551
- /package/dist/src/internal/{nile-element.d.ts → base/nile-element.d.ts} +0 -0
- /package/dist/src/internal/{nile-element.js → base/nile-element.js} +0 -0
- /package/dist/src/internal/{chart-events.d.ts → utils/chart-events.d.ts} +0 -0
- /package/dist/src/internal/{chart-events.js → utils/chart-events.js} +0 -0
- /package/dist/src/internal/{chart-runtime.d.ts → utils/chart-runtime.d.ts} +0 -0
- /package/dist/src/internal/{chart-runtime.js → utils/chart-runtime.js} +0 -0
- /package/dist/src/internal/{dashboard-adapters.js → utils/dashboard-adapters.js} +0 -0
- /package/dist/src/internal/{utils.d.ts → utils/deep-merge.d.ts} +0 -0
- /package/dist/src/internal/{highcharts-provider.d.ts → utils/highcharts-provider.d.ts} +0 -0
- /package/dist/src/internal/{highcharts-provider.js → utils/highcharts-provider.js} +0 -0
- /package/dist/src/internal/{resolve-widget-kind.js → utils/resolve-widget-kind.js} +0 -0
- /package/dist/src/internal/{responsive-defaults.d.ts → utils/responsive-defaults.d.ts} +0 -0
- /package/dist/src/internal/{responsive-defaults.js → utils/responsive-defaults.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import NileElement from '../internal/nile-element.js';
|
|
5
|
-
import { applySeparatedChartConfig } from '../internal/separated-chart-config.js';
|
|
6
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
7
|
-
import { deepMerge } from '../internal/utils.js';
|
|
8
|
-
import { withResponsiveDefaults } from '../internal/responsive-defaults.js';
|
|
4
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
5
|
+
import { applySeparatedChartConfig } from '../internal/utils/separated-chart-config.js';
|
|
6
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
7
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
8
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
9
9
|
import { styles } from './nile-spiderweb-chart.css.js';
|
|
10
10
|
/**
|
|
11
11
|
* Polar “spider web” chart (polygon grid). Same data shape as {@link NileRadarChart};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
|
-
import
|
|
4
|
-
import type {
|
|
3
|
+
import NileForecastableChart from '../internal/base/forecastable-chart.js';
|
|
4
|
+
import type { ForecastSeriesInput } from '../internal/utils/chart-forecast.js';
|
|
5
|
+
import type { LegendConfig, NileChartConfigInputType } from '../internal/types/index.js';
|
|
5
6
|
export interface SplineChartSeriesData {
|
|
6
7
|
name: string;
|
|
7
8
|
data: number[];
|
|
8
9
|
color?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare class NileSplineChart extends
|
|
11
|
+
export declare class NileSplineChart extends NileForecastableChart {
|
|
12
|
+
/** The series type every entry in `data` defaults to. */
|
|
13
|
+
protected chartSeriesType: "spline";
|
|
11
14
|
static styles: CSSResultGroup;
|
|
12
15
|
private _hc;
|
|
13
|
-
private chart;
|
|
14
16
|
private resizeObserver;
|
|
15
17
|
private chartContainer;
|
|
16
18
|
/** Full chart configuration. Accepts separated { chart, aq } input. */
|
|
17
19
|
config: NileChartConfigInputType | null;
|
|
18
20
|
chartTitle: string;
|
|
19
21
|
chartSubtitle: string;
|
|
20
|
-
data: SplineChartSeriesData
|
|
22
|
+
data: Array<SplineChartSeriesData | ForecastSeriesInput>;
|
|
21
23
|
categories: string[];
|
|
22
24
|
options: Highcharts.Options;
|
|
23
25
|
noResponsive: boolean;
|
|
@@ -26,7 +28,7 @@ export declare class NileSplineChart extends NileElement {
|
|
|
26
28
|
yAxisTitle: string;
|
|
27
29
|
showLegend: boolean;
|
|
28
30
|
/** Full legend configuration — all Highcharts legend options in one object. */
|
|
29
|
-
legend:
|
|
31
|
+
legend: LegendConfig | null;
|
|
30
32
|
chartBg: string;
|
|
31
33
|
chartBorderRadius: string | number;
|
|
32
34
|
chartBorder: string;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
5
|
-
import
|
|
6
|
-
import { deepMerge } from '../internal/utils.js';
|
|
7
|
-
import {
|
|
4
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
5
|
+
import NileForecastableChart from '../internal/base/forecastable-chart.js';
|
|
6
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
7
|
+
import { normalizeChartConfig } from '../internal/utils/separated-chart-config.js';
|
|
8
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
8
9
|
import { styles } from './nile-spline-chart.css.js';
|
|
9
|
-
let NileSplineChart = class NileSplineChart extends
|
|
10
|
+
let NileSplineChart = class NileSplineChart extends NileForecastableChart {
|
|
10
11
|
constructor() {
|
|
11
12
|
super(...arguments);
|
|
13
|
+
/** The series type every entry in `data` defaults to. */
|
|
14
|
+
this.chartSeriesType = 'spline';
|
|
12
15
|
this._hc = null;
|
|
13
|
-
this.chart = null;
|
|
14
16
|
this.resizeObserver = null;
|
|
15
17
|
/** Full chart configuration. Accepts separated { chart, aq } input. */
|
|
16
18
|
this.config = null;
|
|
@@ -63,7 +65,7 @@ let NileSplineChart = class NileSplineChart extends NileElement {
|
|
|
63
65
|
}
|
|
64
66
|
/** Apply { chart, aq } config to individual properties. */
|
|
65
67
|
applyConfig(cfg) {
|
|
66
|
-
const { chart: c, aq } = cfg;
|
|
68
|
+
const { chart: c, aq } = normalizeChartConfig(cfg);
|
|
67
69
|
if (c) {
|
|
68
70
|
const spline = c;
|
|
69
71
|
if (spline.data)
|
|
@@ -72,6 +74,7 @@ let NileSplineChart = class NileSplineChart extends NileElement {
|
|
|
72
74
|
this.categories = spline.categories;
|
|
73
75
|
if (spline.yAxisTitle)
|
|
74
76
|
this.yAxisTitle = spline.yAxisTitle;
|
|
77
|
+
this.applyForecastableConfig(spline);
|
|
75
78
|
if (spline.height)
|
|
76
79
|
this.height = spline.height;
|
|
77
80
|
if (spline.loading !== undefined)
|
|
@@ -127,7 +130,7 @@ let NileSplineChart = class NileSplineChart extends NileElement {
|
|
|
127
130
|
this.applyConfig(this.config);
|
|
128
131
|
return;
|
|
129
132
|
}
|
|
130
|
-
const props = ['data', 'categories', 'chartTitle', 'chartSubtitle', 'options', 'height', 'yAxisTitle', 'loading', 'showLegend'];
|
|
133
|
+
const props = ['data', 'categories', 'chartTitle', 'chartSubtitle', 'options', 'height', 'yAxisTitle', 'loading', 'showLegend', ...NileForecastableChart.FORECASTABLE_PROPS];
|
|
131
134
|
const cssVarProps = ['chartBg', 'chartBorderRadius', 'chartBorder', 'chartShadow', 'chartPadding', 'chartMinHeight',
|
|
132
135
|
'loadingText', 'loadingColor', 'loadingFontSize', 'loadingFontFamily', 'loadingBg'];
|
|
133
136
|
if (cssVarProps.some(p => changedProperties.has(p)))
|
|
@@ -138,12 +141,11 @@ let NileSplineChart = class NileSplineChart extends NileElement {
|
|
|
138
141
|
this.destroyChart();
|
|
139
142
|
return;
|
|
140
143
|
}
|
|
141
|
-
if (this.chart) {
|
|
142
|
-
this.chart.update(this.buildOptions(), true, true);
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
144
|
+
if (!this.chart) {
|
|
145
145
|
this.initChart();
|
|
146
|
+
return;
|
|
146
147
|
}
|
|
148
|
+
this.updateChart(this.chart, changedProperties, r => this.buildOptions(r));
|
|
147
149
|
}
|
|
148
150
|
setupResizeObserver() {
|
|
149
151
|
if (!this.chartContainer)
|
|
@@ -151,20 +153,29 @@ let NileSplineChart = class NileSplineChart extends NileElement {
|
|
|
151
153
|
this.resizeObserver = new ResizeObserver(() => { this.chart?.reflow(); });
|
|
152
154
|
this.resizeObserver.observe(this.chartContainer);
|
|
153
155
|
}
|
|
154
|
-
buildOptions() {
|
|
156
|
+
buildOptions(retract = false) {
|
|
155
157
|
const self = this;
|
|
158
|
+
const overlay = this.forecastOverlay(retract);
|
|
156
159
|
const merged = deepMerge({
|
|
157
|
-
chart: {
|
|
160
|
+
chart: {
|
|
161
|
+
type: this.chartSeriesType,
|
|
162
|
+
...(this.height ? { height: this.height } : {}),
|
|
163
|
+
},
|
|
158
164
|
title: { text: this.chartTitle || undefined },
|
|
159
165
|
subtitle: { text: this.chartSubtitle || undefined },
|
|
160
|
-
xAxis: {
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
xAxis: {
|
|
167
|
+
categories: this.categories,
|
|
168
|
+
title: { text: this.xAxisTitle || undefined },
|
|
169
|
+
plotLines: overlay.plotLines,
|
|
170
|
+
plotBands: overlay.plotBands,
|
|
171
|
+
},
|
|
172
|
+
yAxis: this.forecastYAxis({ title: { text: this.yAxisTitle || undefined } }, overlay.hasSecondaryAxis),
|
|
173
|
+
tooltip: { shared: true, ...overlay.tooltip },
|
|
163
174
|
plotOptions: {
|
|
164
175
|
spline: { marker: { enabled: true, radius: 4 } },
|
|
165
|
-
series: { cursor: 'pointer', point: { events: { click() { self.emit('nile-chart-click', { point: this, category: this.category, value: this.y, seriesName: this.series.name }); } } } },
|
|
176
|
+
series: { cursor: 'pointer', point: { events: { click() { self.emit('nile-chart-click', { point: this, category: this.category, value: this.y, seriesName: this.series.name, forecast: self.isForecastPoint(this.x, overlay.boundary) }); } } } },
|
|
166
177
|
},
|
|
167
|
-
series: this.
|
|
178
|
+
series: this.forecastSeries(overlay),
|
|
168
179
|
legend: (() => { const { show, ...rest } = this.legend ?? {}; return { enabled: show ?? this.showLegend, ...rest }; })(),
|
|
169
180
|
credits: { enabled: false },
|
|
170
181
|
}, this.options);
|
|
@@ -175,12 +186,13 @@ let NileSplineChart = class NileSplineChart extends NileElement {
|
|
|
175
186
|
return;
|
|
176
187
|
if (!this._hc)
|
|
177
188
|
this._hc = await getHighcharts();
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
189
|
+
this._chart = this._hc.chart(this.chartContainer, this.buildOptions());
|
|
190
|
+
this._notifyChartReady();
|
|
191
|
+
this.emit('nile-chart-ready', { chart: this._chart });
|
|
180
192
|
}
|
|
181
|
-
destroyChart() { if (this.
|
|
182
|
-
this.
|
|
183
|
-
this.
|
|
193
|
+
destroyChart() { if (this._chart) {
|
|
194
|
+
this._chart.destroy();
|
|
195
|
+
this._clearChart();
|
|
184
196
|
} }
|
|
185
197
|
render() {
|
|
186
198
|
if (this.loading)
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
|
-
import NileElement from '../internal/nile-element.js';
|
|
3
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
4
4
|
import type { SeparatedChartConfigInputType } from '../internal/types/separated-chart-config-input.type.js';
|
|
5
|
+
import type { LegendConfig } from '../internal/types/index.js';
|
|
5
6
|
export interface StackedChartSeriesData {
|
|
6
7
|
name: string;
|
|
7
8
|
data: number[];
|
|
@@ -26,7 +27,7 @@ export declare class NileStackedChart extends NileElement {
|
|
|
26
27
|
yAxisTitle: string;
|
|
27
28
|
showLegend: boolean;
|
|
28
29
|
/** Full legend configuration — all Highcharts legend options in one object. */
|
|
29
|
-
legend:
|
|
30
|
+
legend: LegendConfig | null;
|
|
30
31
|
/** `normal` = stacked values; `percent` = 100% proportional stacks. */
|
|
31
32
|
stackMode: 'normal' | 'percent';
|
|
32
33
|
pointPadding: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
5
|
-
import NileElement from '../internal/nile-element.js';
|
|
6
|
-
import { applySeparatedChartConfig } from '../internal/separated-chart-config.js';
|
|
7
|
-
import { deepMerge } from '../internal/utils.js';
|
|
8
|
-
import { withResponsiveDefaults } from '../internal/responsive-defaults.js';
|
|
4
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
5
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
6
|
+
import { applySeparatedChartConfig } from '../internal/utils/separated-chart-config.js';
|
|
7
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
8
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
9
9
|
import { styles } from './nile-stacked-chart.css.js';
|
|
10
10
|
let NileStackedChart = class NileStackedChart extends NileElement {
|
|
11
11
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
|
-
import NileElement from '../internal/nile-element.js';
|
|
3
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
4
4
|
import type { SeparatedChartConfigInputType } from '../internal/types/separated-chart-config-input.type.js';
|
|
5
5
|
import type { LegendConfig } from '../internal/types/index.js';
|
|
6
6
|
export interface TimelineEvent {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
5
|
-
import NileElement from '../internal/nile-element.js';
|
|
6
|
-
import { applySeparatedChartConfig } from '../internal/separated-chart-config.js';
|
|
7
|
-
import { deepMerge } from '../internal/utils.js';
|
|
8
|
-
import { withResponsiveDefaults } from '../internal/responsive-defaults.js';
|
|
4
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
5
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
6
|
+
import { applySeparatedChartConfig } from '../internal/utils/separated-chart-config.js';
|
|
7
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
8
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
9
9
|
import { styles } from './nile-timeline-chart.css.js';
|
|
10
10
|
let NileTimelineChart = class NileTimelineChart extends NileElement {
|
|
11
11
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
|
-
import NileElement from '../internal/nile-element.js';
|
|
3
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
4
4
|
import type { NileChartConfigInputType } from '../internal/types/index.js';
|
|
5
5
|
import type { LegendConfig } from '../internal/types/index.js';
|
|
6
6
|
export interface TrendlineSeriesData {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
5
|
-
import NileElement from '../internal/nile-element.js';
|
|
6
|
-
import { deepMerge } from '../internal/utils.js';
|
|
7
|
-
import { withResponsiveDefaults } from '../internal/responsive-defaults.js';
|
|
4
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
5
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
6
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
7
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
8
8
|
import { styles } from './nile-trendline-chart.css.js';
|
|
9
9
|
let NileTrendlineChart = class NileTrendlineChart extends NileElement {
|
|
10
10
|
constructor() {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
|
-
import NileElement from '../internal/nile-element.js';
|
|
3
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
4
4
|
import type { SeparatedChartConfigInputType } from '../internal/types/separated-chart-config-input.type.js';
|
|
5
|
+
import type { LegendConfig } from '../internal/types/index.js';
|
|
5
6
|
export interface VariablePieDataPoint {
|
|
6
7
|
name: string;
|
|
7
8
|
y: number;
|
|
@@ -22,7 +23,7 @@ export declare class NileVariablePieChart extends NileElement {
|
|
|
22
23
|
showDataLabels: boolean;
|
|
23
24
|
showLegend: boolean;
|
|
24
25
|
/** Full legend configuration — all Highcharts legend options in one object. */
|
|
25
|
-
legend:
|
|
26
|
+
legend: LegendConfig | null;
|
|
26
27
|
options: Highcharts.Options;
|
|
27
28
|
noResponsive: boolean;
|
|
28
29
|
loading: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import NileElement from '../internal/nile-element.js';
|
|
5
|
-
import { applySeparatedChartConfig } from '../internal/separated-chart-config.js';
|
|
6
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
7
|
-
import { deepMerge } from '../internal/utils.js';
|
|
8
|
-
import { withResponsiveDefaults } from '../internal/responsive-defaults.js';
|
|
4
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
5
|
+
import { applySeparatedChartConfig } from '../internal/utils/separated-chart-config.js';
|
|
6
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
7
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
8
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
9
9
|
import { styles } from './nile-variable-pie-chart.css.js';
|
|
10
10
|
let NileVariablePieChart = class NileVariablePieChart extends NileElement {
|
|
11
11
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
|
-
import NileElement from '../internal/nile-element.js';
|
|
3
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
4
4
|
import type { SeparatedChartConfigInputType } from '../internal/types/separated-chart-config-input.type.js';
|
|
5
5
|
import type { LegendConfig } from '../internal/types/index.js';
|
|
6
6
|
export interface VectorDataPoint {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import NileElement from '../internal/nile-element.js';
|
|
5
|
-
import { applySeparatedChartConfig } from '../internal/separated-chart-config.js';
|
|
6
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
7
|
-
import { deepMerge } from '../internal/utils.js';
|
|
8
|
-
import { withResponsiveDefaults } from '../internal/responsive-defaults.js';
|
|
4
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
5
|
+
import { applySeparatedChartConfig } from '../internal/utils/separated-chart-config.js';
|
|
6
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
7
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
8
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
9
9
|
import { styles } from './nile-vector-chart.css.js';
|
|
10
10
|
let NileVectorChart = class NileVectorChart extends NileElement {
|
|
11
11
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
|
-
import NileElement from '../internal/nile-element.js';
|
|
4
|
-
import type { NileChartConfigInputType } from '../internal/types/index.js';
|
|
3
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
4
|
+
import type { LegendConfig, NileChartConfigInputType } from '../internal/types/index.js';
|
|
5
5
|
export interface WaterfallDataPoint {
|
|
6
6
|
name: string;
|
|
7
7
|
y: number;
|
|
@@ -27,7 +27,7 @@ export declare class NileWaterfallChart extends NileElement {
|
|
|
27
27
|
yAxisTitle: string;
|
|
28
28
|
showLegend: boolean;
|
|
29
29
|
/** Full legend configuration — all Highcharts legend options in one object. */
|
|
30
|
-
legend:
|
|
30
|
+
legend: LegendConfig | null;
|
|
31
31
|
chartBg: string;
|
|
32
32
|
chartBorderRadius: string | number;
|
|
33
33
|
chartBorder: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
5
|
-
import NileElement from '../internal/nile-element.js';
|
|
6
|
-
import { deepMerge } from '../internal/utils.js';
|
|
7
|
-
import { withResponsiveDefaults } from '../internal/responsive-defaults.js';
|
|
4
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
5
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
6
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
7
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
8
8
|
import { styles } from './nile-waterfall-chart.css.js';
|
|
9
9
|
let NileWaterfallChart = class NileWaterfallChart extends NileElement {
|
|
10
10
|
constructor() {
|
|
@@ -10,11 +10,15 @@ export const styles = css `
|
|
|
10
10
|
display: none;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
nile-chart
|
|
14
|
-
nile-kpi-chart {
|
|
13
|
+
nile-chart {
|
|
15
14
|
display: block;
|
|
16
15
|
width: 100%;
|
|
17
16
|
height: 100%;
|
|
18
17
|
}
|
|
18
|
+
|
|
19
|
+
nile-kpi-chart {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
}
|
|
19
23
|
`;
|
|
20
24
|
//# sourceMappingURL=nile-widget-viewer.css.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nothing } from 'lit';
|
|
2
2
|
import type { CSSResultGroup, TemplateResult } from 'lit';
|
|
3
|
-
import NileElement from '../internal/nile-element.js';
|
|
3
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
4
4
|
import type { NileWidgetConfig } from '../internal/types/widget-config.type.js';
|
|
5
5
|
import '../nile-chart/index.js';
|
|
6
6
|
import '../nile-kpi-chart/index.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property } from 'lit/decorators.js';
|
|
3
3
|
import { html, nothing } from 'lit';
|
|
4
|
-
import NileElement from '../internal/nile-element.js';
|
|
4
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
5
5
|
import { styles } from './nile-widget-viewer.css.js';
|
|
6
|
-
import { resolveWidgetKind } from '../internal/resolve-widget-kind.js';
|
|
6
|
+
import { resolveWidgetKind } from '../internal/utils/resolve-widget-kind.js';
|
|
7
7
|
import '../nile-chart/index.js';
|
|
8
8
|
import '../nile-kpi-chart/index.js';
|
|
9
9
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
|
-
import NileElement from '../internal/nile-element.js';
|
|
3
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
4
4
|
import type { SeparatedChartConfigInputType } from '../internal/types/separated-chart-config-input.type.js';
|
|
5
|
+
import type { LegendConfig } from '../internal/types/index.js';
|
|
5
6
|
export interface XrangeDataPoint {
|
|
6
7
|
x: number;
|
|
7
8
|
x2: number;
|
|
@@ -29,7 +30,7 @@ export declare class NileXrangeChart extends NileElement {
|
|
|
29
30
|
height: string;
|
|
30
31
|
showLegend: boolean;
|
|
31
32
|
/** Full legend configuration — all Highcharts legend options in one object. */
|
|
32
|
-
legend:
|
|
33
|
+
legend: LegendConfig | null;
|
|
33
34
|
chartBg: string;
|
|
34
35
|
chartBorderRadius: string | number;
|
|
35
36
|
chartBorder: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
3
3
|
import { html } from 'lit';
|
|
4
|
-
import NileElement from '../internal/nile-element.js';
|
|
5
|
-
import { applySeparatedChartConfig } from '../internal/separated-chart-config.js';
|
|
6
|
-
import { getHighcharts } from '../internal/highcharts-provider.js';
|
|
7
|
-
import { deepMerge } from '../internal/utils.js';
|
|
8
|
-
import { withResponsiveDefaults } from '../internal/responsive-defaults.js';
|
|
4
|
+
import NileElement from '../internal/base/nile-element.js';
|
|
5
|
+
import { applySeparatedChartConfig } from '../internal/utils/separated-chart-config.js';
|
|
6
|
+
import { getHighcharts } from '../internal/utils/highcharts-provider.js';
|
|
7
|
+
import { deepMerge } from '../internal/utils/deep-merge.js';
|
|
8
|
+
import { withResponsiveDefaults } from '../internal/utils/responsive-defaults.js';
|
|
9
9
|
import { styles } from './nile-xrange-chart.css.js';
|
|
10
10
|
let NileXrangeChart = class NileXrangeChart extends NileElement {
|
|
11
11
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aquera/nile-visualization",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.31",
|
|
4
4
|
"description": "A visualization Library for the Nile Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aquera Inc",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"./nile-master-detail-chart": "./dist/src/nile-master-detail-chart/index.js",
|
|
24
24
|
"./nile-dumbbell-chart": "./dist/src/nile-dumbbell-chart/index.js",
|
|
25
25
|
"./nile-fan-chart": "./dist/src/nile-fan-chart/index.js",
|
|
26
|
-
"./nile-forecast-chart": "./dist/src/nile-forecast-chart/index.js",
|
|
27
26
|
"./nile-spline-chart": "./dist/src/nile-spline-chart/index.js",
|
|
28
27
|
"./nile-donut-chart": "./dist/src/nile-donut-chart/index.js",
|
|
29
28
|
"./nile-scatter-chart": "./dist/src/nile-scatter-chart/index.js",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { SeparatedChartConfigInputType } from './types/separated-chart-config-input.type.js';
|
|
2
|
-
/** Same shape as `<nile-chart>` input: chart props + Aquera metadata (for primitive `nile-*-chart` tags). */
|
|
3
|
-
export type SeparatedChartDemoConfig = SeparatedChartConfigInputType;
|
|
4
|
-
/** Applies `chart` fields (minus `type`) and `aq` titles onto a chart element. */
|
|
5
|
-
export declare function applySeparatedChartConfig(target: object, input: SeparatedChartDemoConfig): void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Applies `chart` fields (minus `type`) and `aq` titles onto a chart element. */
|
|
2
|
-
export function applySeparatedChartConfig(target, input) {
|
|
3
|
-
const { chart, aq } = input;
|
|
4
|
-
if (!chart)
|
|
5
|
-
return;
|
|
6
|
-
const { type: _type, ...rest } = chart;
|
|
7
|
-
Object.assign(target, rest);
|
|
8
|
-
if (aq) {
|
|
9
|
-
const t = target;
|
|
10
|
-
if (aq.chartTitle != null)
|
|
11
|
-
t.chartTitle = aq.chartTitle;
|
|
12
|
-
if (aq.chartSubtitle != null)
|
|
13
|
-
t.chartSubtitle = aq.chartSubtitle;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=separated-chart-config.js.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Options } from 'highcharts';
|
|
2
|
-
import type { ForecastSeriesData, ForecastDashStyle } from '../../nile-forecast-chart/nile-forecast-chart.js';
|
|
3
|
-
export interface ChartForecastConfigType {
|
|
4
|
-
type: 'forecast';
|
|
5
|
-
data: ForecastSeriesData[];
|
|
6
|
-
forecastData?: ForecastSeriesData[];
|
|
7
|
-
forecastStart?: number | null;
|
|
8
|
-
forecastDashStyle?: ForecastDashStyle;
|
|
9
|
-
zoom?: boolean;
|
|
10
|
-
showNowLine?: boolean;
|
|
11
|
-
nowLabel?: string;
|
|
12
|
-
nowLineColor?: string;
|
|
13
|
-
forecastBandLabel?: string;
|
|
14
|
-
forecastBandColor?: string;
|
|
15
|
-
xAxisTitle?: string;
|
|
16
|
-
yAxisTitle?: string;
|
|
17
|
-
secondaryAxisTitle?: string;
|
|
18
|
-
secondaryAxisMin?: number | null;
|
|
19
|
-
timezone?: string;
|
|
20
|
-
height?: string;
|
|
21
|
-
loading?: boolean;
|
|
22
|
-
options?: Options;
|
|
23
|
-
showLegend?: boolean;
|
|
24
|
-
chartBg?: string;
|
|
25
|
-
chartBorderRadius?: string | number;
|
|
26
|
-
chartBorder?: string;
|
|
27
|
-
chartShadow?: string;
|
|
28
|
-
chartPadding?: string | number;
|
|
29
|
-
chartMinHeight?: string | number;
|
|
30
|
-
loadingText?: string;
|
|
31
|
-
loadingColor?: string;
|
|
32
|
-
loadingFontSize?: string | number;
|
|
33
|
-
loadingFontFamily?: string;
|
|
34
|
-
loadingBg?: string;
|
|
35
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `
|
|
3
|
-
:host {
|
|
4
|
-
--nile-chart-min-height: var(--nile-height-200px, var(--ng-height-200px));
|
|
5
|
-
--nile-chart-bg: transparent;
|
|
6
|
-
--nile-chart-border-radius: 0;
|
|
7
|
-
--nile-chart-border: none;
|
|
8
|
-
--nile-chart-shadow: none;
|
|
9
|
-
--nile-chart-padding: 0;
|
|
10
|
-
--nile-chart-loading-color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
11
|
-
--nile-chart-loading-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
12
|
-
--nile-chart-loading-font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
13
|
-
--nile-chart-loading-bg: transparent;
|
|
14
|
-
display: block;
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 100%;
|
|
17
|
-
position: relative;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host([hidden]) {
|
|
21
|
-
display: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.chart-container {
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
min-height: var(--nile-chart-min-height);
|
|
28
|
-
background: var(--nile-chart-bg);
|
|
29
|
-
border-radius: var(--nile-chart-border-radius);
|
|
30
|
-
border: var(--nile-chart-border);
|
|
31
|
-
box-shadow: var(--nile-chart-shadow);
|
|
32
|
-
padding: var(--nile-chart-padding);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.chart-loading {
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
min-height: inherit;
|
|
40
|
-
color: var(--nile-chart-loading-color);
|
|
41
|
-
font-family: var(--nile-chart-loading-font-family);
|
|
42
|
-
font-size: var(--nile-chart-loading-font-size);
|
|
43
|
-
background: var(--nile-chart-loading-bg);
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
//# sourceMappingURL=nile-forecast-chart.css.js.map
|