@aquera/nile-visualization 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +31 -1
- package/dist/src/index.js +16 -0
- package/dist/src/internal/highcharts-provider.js +45 -0
- package/dist/src/internal/types/chart-area-config.type.d.ts +4 -0
- package/dist/src/internal/types/chart-area-negative-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-area-negative-config.type.js +2 -0
- package/dist/src/internal/types/chart-area-range-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-area-range-config.type.js +2 -0
- package/dist/src/internal/types/chart-area-spline-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-area-spline-config.type.js +2 -0
- package/dist/src/internal/types/chart-column-drilldown-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-column-drilldown-config.type.js +2 -0
- package/dist/src/internal/types/chart-column-pyramid-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-column-pyramid-config.type.js +2 -0
- package/dist/src/internal/types/chart-column-range-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-column-range-config.type.js +2 -0
- package/dist/src/internal/types/chart-dumbbell-lower-config.type.d.ts +5 -0
- package/dist/src/internal/types/chart-dumbbell-lower-config.type.js +2 -0
- package/dist/src/internal/types/chart-dumbbell-upper-config.type.d.ts +5 -0
- package/dist/src/internal/types/chart-dumbbell-upper-config.type.js +2 -0
- package/dist/src/internal/types/chart-euler-config.type.d.ts +10 -0
- package/dist/src/internal/types/chart-euler-config.type.js +2 -0
- package/dist/src/internal/types/chart-lollipop-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-lollipop-config.type.js +2 -0
- package/dist/src/internal/types/chart-polygon-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-polygon-config.type.js +2 -0
- package/dist/src/internal/types/chart-radial-bar-config.type.d.ts +16 -0
- package/dist/src/internal/types/chart-radial-bar-config.type.js +2 -0
- package/dist/src/internal/types/chart-variable-pie-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-variable-pie-config.type.js +2 -0
- package/dist/src/internal/types/chart-vector-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-vector-config.type.js +2 -0
- package/dist/src/internal/types/chart-xrange-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-xrange-config.type.js +2 -0
- package/dist/src/internal/types/index.d.ts +16 -1
- package/dist/src/internal/types/primitive-chart-config.type.d.ts +17 -1
- package/dist/src/nile-area-negative-chart/index.d.ts +2 -0
- package/dist/src/nile-area-negative-chart/index.js +2 -0
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.css.d.ts +1 -0
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.css.js +28 -0
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.d.ts +42 -0
- package/dist/src/nile-area-negative-chart/nile-area-negative-chart.js +178 -0
- package/dist/src/nile-area-range-chart/index.d.ts +2 -0
- package/dist/src/nile-area-range-chart/index.js +2 -0
- package/dist/src/nile-area-range-chart/nile-area-range-chart.css.d.ts +1 -0
- package/dist/src/nile-area-range-chart/nile-area-range-chart.css.js +28 -0
- package/dist/src/nile-area-range-chart/nile-area-range-chart.d.ts +41 -0
- package/dist/src/nile-area-range-chart/nile-area-range-chart.js +173 -0
- package/dist/src/nile-area-spline-chart/index.d.ts +2 -0
- package/dist/src/nile-area-spline-chart/index.js +2 -0
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.css.d.ts +1 -0
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.css.js +28 -0
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.d.ts +41 -0
- package/dist/src/nile-area-spline-chart/nile-area-spline-chart.js +174 -0
- package/dist/src/nile-chart/index.d.ts +1 -1
- package/dist/src/nile-column-drilldown-chart/index.d.ts +2 -0
- package/dist/src/nile-column-drilldown-chart/index.js +2 -0
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.css.d.ts +1 -0
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.css.js +28 -0
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.d.ts +49 -0
- package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.js +186 -0
- package/dist/src/nile-column-pyramid-chart/index.d.ts +2 -0
- package/dist/src/nile-column-pyramid-chart/index.js +2 -0
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.css.d.ts +1 -0
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.css.js +28 -0
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.d.ts +39 -0
- package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.js +155 -0
- package/dist/src/nile-column-range-chart/index.d.ts +2 -0
- package/dist/src/nile-column-range-chart/index.js +2 -0
- package/dist/src/nile-column-range-chart/nile-column-range-chart.css.d.ts +1 -0
- package/dist/src/nile-column-range-chart/nile-column-range-chart.css.js +28 -0
- package/dist/src/nile-column-range-chart/nile-column-range-chart.d.ts +40 -0
- package/dist/src/nile-column-range-chart/nile-column-range-chart.js +169 -0
- package/dist/src/nile-dumbbell-lower-chart/index.d.ts +1 -0
- package/dist/src/nile-dumbbell-lower-chart/index.js +2 -0
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.css.d.ts +1 -0
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.css.js +28 -0
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.d.ts +40 -0
- package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.js +214 -0
- package/dist/src/nile-dumbbell-upper-chart/index.d.ts +1 -0
- package/dist/src/nile-dumbbell-upper-chart/index.js +2 -0
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.css.d.ts +1 -0
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.css.js +28 -0
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.d.ts +40 -0
- package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.js +214 -0
- package/dist/src/nile-euler-chart/index.d.ts +2 -0
- package/dist/src/nile-euler-chart/index.js +2 -0
- package/dist/src/nile-euler-chart/nile-euler-chart.css.d.ts +1 -0
- package/dist/src/nile-euler-chart/nile-euler-chart.css.js +28 -0
- package/dist/src/nile-euler-chart/nile-euler-chart.d.ts +38 -0
- package/dist/src/nile-euler-chart/nile-euler-chart.js +149 -0
- package/dist/src/nile-inverted-area-chart/index.d.ts +2 -0
- package/dist/src/nile-inverted-area-chart/index.js +2 -0
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.css.d.ts +1 -0
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.css.js +28 -0
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.d.ts +40 -0
- package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.js +173 -0
- package/dist/src/nile-lollipop-chart/index.d.ts +2 -0
- package/dist/src/nile-lollipop-chart/index.js +2 -0
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.css.d.ts +1 -0
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.css.js +28 -0
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.d.ts +39 -0
- package/dist/src/nile-lollipop-chart/nile-lollipop-chart.js +174 -0
- package/dist/src/nile-polygon-chart/index.d.ts +2 -0
- package/dist/src/nile-polygon-chart/index.js +2 -0
- package/dist/src/nile-polygon-chart/nile-polygon-chart.css.d.ts +1 -0
- package/dist/src/nile-polygon-chart/nile-polygon-chart.css.js +28 -0
- package/dist/src/nile-polygon-chart/nile-polygon-chart.d.ts +41 -0
- package/dist/src/nile-polygon-chart/nile-polygon-chart.js +167 -0
- package/dist/src/nile-radial-bar-chart/index.d.ts +2 -0
- package/dist/src/nile-radial-bar-chart/index.js +2 -0
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.css.d.ts +1 -0
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.css.js +28 -0
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.d.ts +42 -0
- package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.js +191 -0
- package/dist/src/nile-variable-pie-chart/index.d.ts +2 -0
- package/dist/src/nile-variable-pie-chart/index.js +2 -0
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.css.d.ts +1 -0
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.css.js +28 -0
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.d.ts +42 -0
- package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.js +180 -0
- package/dist/src/nile-vector-chart/index.d.ts +2 -0
- package/dist/src/nile-vector-chart/index.js +2 -0
- package/dist/src/nile-vector-chart/nile-vector-chart.css.d.ts +1 -0
- package/dist/src/nile-vector-chart/nile-vector-chart.css.js +28 -0
- package/dist/src/nile-vector-chart/nile-vector-chart.d.ts +44 -0
- package/dist/src/nile-vector-chart/nile-vector-chart.js +181 -0
- package/dist/src/nile-xrange-chart/index.d.ts +2 -0
- package/dist/src/nile-xrange-chart/index.js +2 -0
- package/dist/src/nile-xrange-chart/nile-xrange-chart.css.d.ts +1 -0
- package/dist/src/nile-xrange-chart/nile-xrange-chart.css.js +28 -0
- package/dist/src/nile-xrange-chart/nile-xrange-chart.d.ts +44 -0
- package/dist/src/nile-xrange-chart/nile-xrange-chart.js +193 -0
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -10,12 +10,14 @@ export { NileChart } from './nile-chart/index.js';
|
|
|
10
10
|
export type { NileChartConfig, NileBarChartConfig, NilePieChartConfig, NileTrendlineChartConfig, NileAnomalyChartConfig, NileLineChartConfig, NileAreaChartConfig, NileColumnChartConfig, NileDonutChartConfig, NileScatterChartConfig, NileBubbleChartConfig, NileSplineChartConfig, NileRadarChartConfig, NileGaugeChartConfig, NileWaterfallChartConfig, ChartType, SwitchAggregation, NileAiConfig, } from './nile-chart/index.js';
|
|
11
11
|
export { convertConfig, registerAdapter } from './nile-chart/index.js';
|
|
12
12
|
export { nileChartConfig } from './nile-chart/index.js';
|
|
13
|
-
export type { AiConfigType, SwitchableConfigType, AqConfigType, ChartBarConfigType, ChartPieConfigType, ChartTrendlineConfigType, ChartAnomalyConfigType, ChartLineConfigType, ChartAreaConfigType, ChartColumnConfigType, ChartDonutConfigType, ChartScatterConfigType, ChartBubbleConfigType, ChartSplineConfigType, ChartRadarConfigType, ChartGaugeConfigType, ChartWaterfallConfigType, ChartClusterConfigType, ChartStackedConfigType, ChartHistogramConfigType, ChartBellcurveConfigType, ChartBoxplotConfigType, ChartTimelineConfigType, ChartDumbbellConfigType, ChartFanConfigType, ChartFunnelConfigType, ChartFlameConfigType, ChartSpiderwebConfigType, ChartKpiPropsType, PrimitiveChartConfigType, SeparatedChartConfigInputType, AllChartConfigType, ChartConfigType, NileChartConfigInputType, ChartAiPanelPayload, ChartAiSenderPayload, NileAiPanelConfigInputType, NileAiSenderConfigInputType, } from './nile-chart/index.js';
|
|
13
|
+
export type { AiConfigType, SwitchableConfigType, AqConfigType, ChartBarConfigType, ChartPieConfigType, ChartTrendlineConfigType, ChartAnomalyConfigType, ChartLineConfigType, ChartAreaConfigType, ChartInvertedAreaConfigType, ChartColumnConfigType, ChartDonutConfigType, ChartScatterConfigType, ChartBubbleConfigType, ChartSplineConfigType, ChartRadarConfigType, ChartGaugeConfigType, ChartWaterfallConfigType, ChartClusterConfigType, ChartStackedConfigType, ChartHistogramConfigType, ChartBellcurveConfigType, ChartBoxplotConfigType, ChartTimelineConfigType, ChartDumbbellConfigType, ChartDumbbellLowerConfigType, ChartDumbbellUpperConfigType, ChartColumnPyramidConfigType, ChartLollipopConfigType, ChartAreaSplineConfigType, ChartAreaNegativeConfigType, ChartAreaRangeConfigType, ChartColumnRangeConfigType, ChartColumnDrilldownConfigType, ChartRadialBarConfigType, ChartVariablePieConfigType, ChartEulerConfigType, ChartPolygonConfigType, ChartVectorConfigType, ChartXrangeConfigType, ChartFanConfigType, ChartFunnelConfigType, ChartFlameConfigType, ChartSpiderwebConfigType, ChartKpiPropsType, PrimitiveChartConfigType, SeparatedChartConfigInputType, AllChartConfigType, ChartConfigType, NileChartConfigInputType, ChartAiPanelPayload, ChartAiSenderPayload, NileAiPanelConfigInputType, NileAiSenderConfigInputType, } from './nile-chart/index.js';
|
|
14
14
|
export type { SeparatedChartDemoConfig } from './internal/separated-chart-config.js';
|
|
15
15
|
export { NileLineChart } from './nile-line-chart/index.js';
|
|
16
16
|
export type { LineChartSeriesData } from './nile-line-chart/index.js';
|
|
17
17
|
export { NileAreaChart } from './nile-area-chart/index.js';
|
|
18
18
|
export type { AreaChartSeriesData } from './nile-area-chart/index.js';
|
|
19
|
+
export { NileInvertedAreaChart } from './nile-inverted-area-chart/index.js';
|
|
20
|
+
export type { InvertedAreaChartSeriesData } from './nile-inverted-area-chart/index.js';
|
|
19
21
|
export { NileColumnChart } from './nile-column-chart/index.js';
|
|
20
22
|
export type { ColumnChartSeriesData } from './nile-column-chart/index.js';
|
|
21
23
|
export { NileClusterChart } from './nile-cluster-chart/index.js';
|
|
@@ -32,6 +34,34 @@ export { NileTimelineChart } from './nile-timeline-chart/index.js';
|
|
|
32
34
|
export type { TimelineEvent } from './nile-timeline-chart/index.js';
|
|
33
35
|
export { NileDumbbellChart } from './nile-dumbbell-chart/index.js';
|
|
34
36
|
export type { DumbbellPoint } from './nile-dumbbell-chart/index.js';
|
|
37
|
+
export { NileDumbbellLowerChart } from './nile-dumbbell-lower-chart/index.js';
|
|
38
|
+
export { NileDumbbellUpperChart } from './nile-dumbbell-upper-chart/index.js';
|
|
39
|
+
export { NileColumnPyramidChart } from './nile-column-pyramid-chart/index.js';
|
|
40
|
+
export type { ColumnPyramidSeriesData } from './nile-column-pyramid-chart/index.js';
|
|
41
|
+
export { NileLollipopChart } from './nile-lollipop-chart/index.js';
|
|
42
|
+
export type { LollipopSeriesData } from './nile-lollipop-chart/index.js';
|
|
43
|
+
export { NileAreaSplineChart } from './nile-area-spline-chart/index.js';
|
|
44
|
+
export type { AreaSplineSeriesData } from './nile-area-spline-chart/index.js';
|
|
45
|
+
export { NileAreaNegativeChart } from './nile-area-negative-chart/index.js';
|
|
46
|
+
export type { AreaNegativeSeriesData } from './nile-area-negative-chart/index.js';
|
|
47
|
+
export { NileAreaRangeChart } from './nile-area-range-chart/index.js';
|
|
48
|
+
export type { AreaRangeSeriesData } from './nile-area-range-chart/index.js';
|
|
49
|
+
export { NileColumnRangeChart } from './nile-column-range-chart/index.js';
|
|
50
|
+
export type { ColumnRangeSeriesData } from './nile-column-range-chart/index.js';
|
|
51
|
+
export { NileColumnDrilldownChart } from './nile-column-drilldown-chart/index.js';
|
|
52
|
+
export type { ColumnDrilldownParentPoint, ColumnDrilldownSeriesConfig, } from './nile-column-drilldown-chart/index.js';
|
|
53
|
+
export { NileRadialBarChart } from './nile-radial-bar-chart/index.js';
|
|
54
|
+
export type { RadialBarSeriesData } from './nile-radial-bar-chart/index.js';
|
|
55
|
+
export { NileVariablePieChart } from './nile-variable-pie-chart/index.js';
|
|
56
|
+
export type { VariablePieDataPoint } from './nile-variable-pie-chart/index.js';
|
|
57
|
+
export { NileEulerChart } from './nile-euler-chart/index.js';
|
|
58
|
+
export type { EulerVennDataPoint } from './nile-euler-chart/index.js';
|
|
59
|
+
export { NilePolygonChart } from './nile-polygon-chart/index.js';
|
|
60
|
+
export type { PolygonSeriesConfig } from './nile-polygon-chart/index.js';
|
|
61
|
+
export { NileVectorChart } from './nile-vector-chart/index.js';
|
|
62
|
+
export type { VectorDataPoint } from './nile-vector-chart/index.js';
|
|
63
|
+
export { NileXrangeChart } from './nile-xrange-chart/index.js';
|
|
64
|
+
export type { XrangeDataPoint } from './nile-xrange-chart/index.js';
|
|
35
65
|
export { NileFanChart } from './nile-fan-chart/index.js';
|
|
36
66
|
export type { FanLinePoint, FanUncertaintyBand } from './nile-fan-chart/index.js';
|
|
37
67
|
export { NileDonutChart } from './nile-donut-chart/index.js';
|
package/dist/src/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export { convertConfig, registerAdapter } from './nile-chart/index.js';
|
|
|
10
10
|
export { nileChartConfig } from './nile-chart/index.js';
|
|
11
11
|
export { NileLineChart } from './nile-line-chart/index.js';
|
|
12
12
|
export { NileAreaChart } from './nile-area-chart/index.js';
|
|
13
|
+
export { NileInvertedAreaChart } from './nile-inverted-area-chart/index.js';
|
|
13
14
|
export { NileColumnChart } from './nile-column-chart/index.js';
|
|
14
15
|
export { NileClusterChart } from './nile-cluster-chart/index.js';
|
|
15
16
|
export { NileStackedChart } from './nile-stacked-chart/index.js';
|
|
@@ -18,6 +19,21 @@ export { NileBellcurveChart } from './nile-bellcurve-chart/index.js';
|
|
|
18
19
|
export { NileBoxplotChart } from './nile-boxplot-chart/index.js';
|
|
19
20
|
export { NileTimelineChart } from './nile-timeline-chart/index.js';
|
|
20
21
|
export { NileDumbbellChart } from './nile-dumbbell-chart/index.js';
|
|
22
|
+
export { NileDumbbellLowerChart } from './nile-dumbbell-lower-chart/index.js';
|
|
23
|
+
export { NileDumbbellUpperChart } from './nile-dumbbell-upper-chart/index.js';
|
|
24
|
+
export { NileColumnPyramidChart } from './nile-column-pyramid-chart/index.js';
|
|
25
|
+
export { NileLollipopChart } from './nile-lollipop-chart/index.js';
|
|
26
|
+
export { NileAreaSplineChart } from './nile-area-spline-chart/index.js';
|
|
27
|
+
export { NileAreaNegativeChart } from './nile-area-negative-chart/index.js';
|
|
28
|
+
export { NileAreaRangeChart } from './nile-area-range-chart/index.js';
|
|
29
|
+
export { NileColumnRangeChart } from './nile-column-range-chart/index.js';
|
|
30
|
+
export { NileColumnDrilldownChart } from './nile-column-drilldown-chart/index.js';
|
|
31
|
+
export { NileRadialBarChart } from './nile-radial-bar-chart/index.js';
|
|
32
|
+
export { NileVariablePieChart } from './nile-variable-pie-chart/index.js';
|
|
33
|
+
export { NileEulerChart } from './nile-euler-chart/index.js';
|
|
34
|
+
export { NilePolygonChart } from './nile-polygon-chart/index.js';
|
|
35
|
+
export { NileVectorChart } from './nile-vector-chart/index.js';
|
|
36
|
+
export { NileXrangeChart } from './nile-xrange-chart/index.js';
|
|
21
37
|
export { NileFanChart } from './nile-fan-chart/index.js';
|
|
22
38
|
export { NileDonutChart } from './nile-donut-chart/index.js';
|
|
23
39
|
export { NileScatterChart } from './nile-scatter-chart/index.js';
|
|
@@ -41,6 +41,15 @@ async function init() {
|
|
|
41
41
|
catch {
|
|
42
42
|
// funnel not available — consumer may have loaded it globally
|
|
43
43
|
}
|
|
44
|
+
try {
|
|
45
|
+
const variablePie = await import('highcharts/modules/variable-pie.js');
|
|
46
|
+
if (typeof variablePie.default === 'function') {
|
|
47
|
+
variablePie.default(_Highcharts);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
// variable-pie not available — consumer may have loaded it globally
|
|
52
|
+
}
|
|
44
53
|
try {
|
|
45
54
|
const histogramBellcurve = await import('highcharts/modules/histogram-bellcurve.js');
|
|
46
55
|
if (typeof histogramBellcurve.default === 'function') {
|
|
@@ -77,6 +86,42 @@ async function init() {
|
|
|
77
86
|
catch {
|
|
78
87
|
// sunburst not available — consumer may have loaded it globally
|
|
79
88
|
}
|
|
89
|
+
try {
|
|
90
|
+
const drilldown = await import('highcharts/modules/drilldown.js');
|
|
91
|
+
if (typeof drilldown.default === 'function') {
|
|
92
|
+
drilldown.default(_Highcharts);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
// drilldown not available — consumer may have loaded it globally
|
|
97
|
+
}
|
|
98
|
+
try {
|
|
99
|
+
const venn = await import('highcharts/modules/venn.js');
|
|
100
|
+
if (typeof venn.default === 'function') {
|
|
101
|
+
venn.default(_Highcharts);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
catch {
|
|
105
|
+
// venn not available — consumer may have loaded it globally
|
|
106
|
+
}
|
|
107
|
+
try {
|
|
108
|
+
const vector = await import('highcharts/modules/vector.js');
|
|
109
|
+
if (typeof vector.default === 'function') {
|
|
110
|
+
vector.default(_Highcharts);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
catch {
|
|
114
|
+
// vector not available — consumer may have loaded it globally
|
|
115
|
+
}
|
|
116
|
+
try {
|
|
117
|
+
const xrange = await import('highcharts/modules/xrange.js');
|
|
118
|
+
if (typeof xrange.default === 'function') {
|
|
119
|
+
xrange.default(_Highcharts);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
catch {
|
|
123
|
+
// xrange not available — consumer may have loaded it globally
|
|
124
|
+
}
|
|
80
125
|
}
|
|
81
126
|
catch {
|
|
82
127
|
// Fallback to global (works in CDN/browser context)
|
|
@@ -11,3 +11,7 @@ export interface ChartAreaConfigType {
|
|
|
11
11
|
loading?: boolean;
|
|
12
12
|
options?: Options;
|
|
13
13
|
}
|
|
14
|
+
/** Same fields as area; `type` tags the inverted-area primitive. */
|
|
15
|
+
export type ChartInvertedAreaConfigType = Omit<ChartAreaConfigType, 'type'> & {
|
|
16
|
+
type: 'invertedArea';
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { AreaNegativeSeriesData } from '../../nile-area-negative-chart/nile-area-negative-chart.ts';
|
|
3
|
+
/** Area with distinct fill above/below a threshold (`<nile-area-negative-chart>`). */
|
|
4
|
+
export interface ChartAreaNegativeConfigType {
|
|
5
|
+
type: 'areaNegative';
|
|
6
|
+
data: AreaNegativeSeriesData[];
|
|
7
|
+
categories?: string[];
|
|
8
|
+
yAxisTitle?: string;
|
|
9
|
+
threshold?: number;
|
|
10
|
+
height?: string;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
options?: Options;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { AreaRangeSeriesData } from '../../nile-area-range-chart/nile-area-range-chart.ts';
|
|
3
|
+
/** Area range / band (`<nile-area-range-chart>`). */
|
|
4
|
+
export interface ChartAreaRangeConfigType {
|
|
5
|
+
type: 'areaRange';
|
|
6
|
+
data: AreaRangeSeriesData[];
|
|
7
|
+
categories?: string[];
|
|
8
|
+
yAxisTitle?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
options?: Options;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { AreaSplineSeriesData } from '../../nile-area-spline-chart/nile-area-spline-chart.js';
|
|
3
|
+
/** Area spline (`<nile-area-spline-chart>`). */
|
|
4
|
+
export interface ChartAreaSplineConfigType {
|
|
5
|
+
type: 'areaSpline';
|
|
6
|
+
data: AreaSplineSeriesData[];
|
|
7
|
+
categories?: string[];
|
|
8
|
+
yAxisTitle?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
stacked?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
options?: Options;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { ColumnDrilldownParentPoint, ColumnDrilldownSeriesConfig } from '../../nile-column-drilldown-chart/nile-column-drilldown-chart.js';
|
|
3
|
+
/** Column with drilldown (`<nile-column-drilldown-chart>`). */
|
|
4
|
+
export interface ChartColumnDrilldownConfigType {
|
|
5
|
+
type: 'columnDrilldown';
|
|
6
|
+
data: ColumnDrilldownParentPoint[];
|
|
7
|
+
drilldownSeries: ColumnDrilldownSeriesConfig[];
|
|
8
|
+
seriesName?: string;
|
|
9
|
+
yAxisTitle?: string;
|
|
10
|
+
height?: string;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
options?: Options;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { ColumnPyramidSeriesData } from '../../nile-column-pyramid-chart/nile-column-pyramid-chart.js';
|
|
3
|
+
/** Column pyramid (`<nile-column-pyramid-chart>`). */
|
|
4
|
+
export interface ChartColumnPyramidConfigType {
|
|
5
|
+
type: 'columnPyramid';
|
|
6
|
+
data: ColumnPyramidSeriesData[];
|
|
7
|
+
categories?: string[];
|
|
8
|
+
height?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
options?: Options;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { ColumnRangeSeriesData } from '../../nile-column-range-chart/nile-column-range-chart.js';
|
|
3
|
+
/** Column range (`<nile-column-range-chart>`). */
|
|
4
|
+
export interface ChartColumnRangeConfigType {
|
|
5
|
+
type: 'columnRange';
|
|
6
|
+
data: ColumnRangeSeriesData[];
|
|
7
|
+
categories?: string[];
|
|
8
|
+
yAxisTitle?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
options?: Options;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ChartDumbbellConfigType } from './chart-dumbbell-config.type.js';
|
|
2
|
+
/** Dumbbell with emphasis on the low marker (`<nile-dumbbell-lower-chart>`). */
|
|
3
|
+
export type ChartDumbbellLowerConfigType = Omit<ChartDumbbellConfigType, 'type'> & {
|
|
4
|
+
type: 'dumbbellLower';
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ChartDumbbellConfigType } from './chart-dumbbell-config.type.js';
|
|
2
|
+
/** Dumbbell with emphasis on the high marker (`<nile-dumbbell-upper-chart>`). */
|
|
3
|
+
export type ChartDumbbellUpperConfigType = Omit<ChartDumbbellConfigType, 'type'> & {
|
|
4
|
+
type: 'dumbbellUpper';
|
|
5
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { EulerVennDataPoint } from '../../nile-euler-chart/nile-euler-chart.js';
|
|
3
|
+
/** Euler / Venn (`<nile-euler-chart>`). */
|
|
4
|
+
export interface ChartEulerConfigType {
|
|
5
|
+
type: 'euler';
|
|
6
|
+
data: EulerVennDataPoint[];
|
|
7
|
+
height?: string;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
options?: Options;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { LollipopSeriesData } from '../../nile-lollipop-chart/nile-lollipop-chart.js';
|
|
3
|
+
/** Lollipop (stem + marker) chart (`<nile-lollipop-chart>`). */
|
|
4
|
+
export interface ChartLollipopConfigType {
|
|
5
|
+
type: 'lollipop';
|
|
6
|
+
data: LollipopSeriesData[];
|
|
7
|
+
categories?: string[];
|
|
8
|
+
height?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
options?: Options;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { PolygonSeriesConfig } from '../../nile-polygon-chart/nile-polygon-chart.js';
|
|
3
|
+
/** Filled polygon regions in XY space (`<nile-polygon-chart>`). */
|
|
4
|
+
export interface ChartPolygonConfigType {
|
|
5
|
+
type: 'polygon';
|
|
6
|
+
series: PolygonSeriesConfig[];
|
|
7
|
+
xAxisTitle?: string;
|
|
8
|
+
yAxisTitle?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
options?: Options;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { RadialBarSeriesData } from '../../nile-radial-bar-chart/nile-radial-bar-chart.js';
|
|
3
|
+
/** Polar column / radial bars (`<nile-radial-bar-chart>`). */
|
|
4
|
+
export interface ChartRadialBarConfigType {
|
|
5
|
+
type: 'radialBar';
|
|
6
|
+
data: RadialBarSeriesData[];
|
|
7
|
+
categories: string[];
|
|
8
|
+
yAxisTitle?: string;
|
|
9
|
+
/** Polar pane hole (e.g. `'28%'`). */
|
|
10
|
+
innerSize?: string;
|
|
11
|
+
/** Outer pane diameter (e.g. `'82%'`). */
|
|
12
|
+
paneSize?: string;
|
|
13
|
+
height?: string;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
options?: Options;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { VariablePieDataPoint } from '../../nile-variable-pie-chart/nile-variable-pie-chart.js';
|
|
3
|
+
/** Variable-radius pie (`<nile-variable-pie-chart>`). */
|
|
4
|
+
export interface ChartVariablePieConfigType {
|
|
5
|
+
type: 'variablePie';
|
|
6
|
+
data: VariablePieDataPoint[];
|
|
7
|
+
seriesName?: string;
|
|
8
|
+
showDataLabels?: boolean;
|
|
9
|
+
showLegend?: boolean;
|
|
10
|
+
height?: string;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
options?: Options;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { VectorDataPoint } from '../../nile-vector-chart/nile-vector-chart.js';
|
|
3
|
+
/** Vector field (`<nile-vector-chart>`). */
|
|
4
|
+
export interface ChartVectorConfigType {
|
|
5
|
+
type: 'vector';
|
|
6
|
+
data: VectorDataPoint[];
|
|
7
|
+
seriesName?: string;
|
|
8
|
+
xAxisTitle?: string;
|
|
9
|
+
yAxisTitle?: string;
|
|
10
|
+
height?: string;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
options?: Options;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Options } from 'highcharts';
|
|
2
|
+
import type { XrangeDataPoint } from '../../nile-xrange-chart/nile-xrange-chart.js';
|
|
3
|
+
/** X-range / schedule bars (`<nile-xrange-chart>`). */
|
|
4
|
+
export interface ChartXrangeConfigType {
|
|
5
|
+
type: 'xrange';
|
|
6
|
+
data: XrangeDataPoint[];
|
|
7
|
+
categories: string[];
|
|
8
|
+
seriesName?: string;
|
|
9
|
+
datetimeAxis?: boolean;
|
|
10
|
+
height?: string;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
options?: Options;
|
|
13
|
+
}
|
|
@@ -6,7 +6,7 @@ export type { ChartPieConfigType } from './chart-pie-config.type.js';
|
|
|
6
6
|
export type { ChartTrendlineConfigType } from './chart-trendline-config.type.js';
|
|
7
7
|
export type { ChartAnomalyConfigType } from './chart-anomaly-config.type.js';
|
|
8
8
|
export type { ChartLineConfigType } from './chart-line-config.type.js';
|
|
9
|
-
export type { ChartAreaConfigType } from './chart-area-config.type.js';
|
|
9
|
+
export type { ChartAreaConfigType, ChartInvertedAreaConfigType } from './chart-area-config.type.js';
|
|
10
10
|
export type { ChartColumnConfigType } from './chart-column-config.type.js';
|
|
11
11
|
export type { ChartDonutConfigType } from './chart-donut-config.type.js';
|
|
12
12
|
export type { ChartScatterConfigType } from './chart-scatter-config.type.js';
|
|
@@ -22,6 +22,21 @@ export type { ChartBellcurveConfigType } from './chart-bellcurve-config.type.js'
|
|
|
22
22
|
export type { ChartBoxplotConfigType } from './chart-boxplot-config.type.js';
|
|
23
23
|
export type { ChartTimelineConfigType } from './chart-timeline-config.type.js';
|
|
24
24
|
export type { ChartDumbbellConfigType } from './chart-dumbbell-config.type.js';
|
|
25
|
+
export type { ChartDumbbellLowerConfigType } from './chart-dumbbell-lower-config.type.js';
|
|
26
|
+
export type { ChartDumbbellUpperConfigType } from './chart-dumbbell-upper-config.type.js';
|
|
27
|
+
export type { ChartColumnPyramidConfigType } from './chart-column-pyramid-config.type.js';
|
|
28
|
+
export type { ChartLollipopConfigType } from './chart-lollipop-config.type.js';
|
|
29
|
+
export type { ChartAreaSplineConfigType } from './chart-area-spline-config.type.js';
|
|
30
|
+
export type { ChartAreaNegativeConfigType } from './chart-area-negative-config.type.js';
|
|
31
|
+
export type { ChartAreaRangeConfigType } from './chart-area-range-config.type.js';
|
|
32
|
+
export type { ChartColumnRangeConfigType } from './chart-column-range-config.type.js';
|
|
33
|
+
export type { ChartColumnDrilldownConfigType } from './chart-column-drilldown-config.type.js';
|
|
34
|
+
export type { ChartRadialBarConfigType } from './chart-radial-bar-config.type.js';
|
|
35
|
+
export type { ChartVariablePieConfigType } from './chart-variable-pie-config.type.js';
|
|
36
|
+
export type { ChartEulerConfigType } from './chart-euler-config.type.js';
|
|
37
|
+
export type { ChartPolygonConfigType } from './chart-polygon-config.type.js';
|
|
38
|
+
export type { ChartVectorConfigType } from './chart-vector-config.type.js';
|
|
39
|
+
export type { ChartXrangeConfigType } from './chart-xrange-config.type.js';
|
|
25
40
|
export type { ChartFanConfigType } from './chart-fan-config.type.js';
|
|
26
41
|
export type { ChartFunnelConfigType } from './chart-funnel-config.type.js';
|
|
27
42
|
export type { ChartFlameConfigType } from './chart-flame-config.type.js';
|
|
@@ -9,8 +9,24 @@ import type { ChartFanConfigType } from './chart-fan-config.type.js';
|
|
|
9
9
|
import type { ChartFunnelConfigType } from './chart-funnel-config.type.js';
|
|
10
10
|
import type { ChartFlameConfigType } from './chart-flame-config.type.js';
|
|
11
11
|
import type { ChartSpiderwebConfigType } from './chart-spiderweb-config.type.js';
|
|
12
|
+
import type { ChartInvertedAreaConfigType } from './chart-area-config.type.js';
|
|
13
|
+
import type { ChartColumnPyramidConfigType } from './chart-column-pyramid-config.type.js';
|
|
14
|
+
import type { ChartLollipopConfigType } from './chart-lollipop-config.type.js';
|
|
15
|
+
import type { ChartAreaSplineConfigType } from './chart-area-spline-config.type.js';
|
|
16
|
+
import type { ChartAreaNegativeConfigType } from './chart-area-negative-config.type.js';
|
|
17
|
+
import type { ChartAreaRangeConfigType } from './chart-area-range-config.type.js';
|
|
18
|
+
import type { ChartColumnRangeConfigType } from './chart-column-range-config.type.js';
|
|
19
|
+
import type { ChartColumnDrilldownConfigType } from './chart-column-drilldown-config.type.js';
|
|
20
|
+
import type { ChartRadialBarConfigType } from './chart-radial-bar-config.type.js';
|
|
21
|
+
import type { ChartVariablePieConfigType } from './chart-variable-pie-config.type.js';
|
|
22
|
+
import type { ChartDumbbellLowerConfigType } from './chart-dumbbell-lower-config.type.js';
|
|
23
|
+
import type { ChartDumbbellUpperConfigType } from './chart-dumbbell-upper-config.type.js';
|
|
24
|
+
import type { ChartEulerConfigType } from './chart-euler-config.type.js';
|
|
25
|
+
import type { ChartPolygonConfigType } from './chart-polygon-config.type.js';
|
|
26
|
+
import type { ChartVectorConfigType } from './chart-vector-config.type.js';
|
|
27
|
+
import type { ChartXrangeConfigType } from './chart-xrange-config.type.js';
|
|
12
28
|
/**
|
|
13
29
|
* Chart configs for primitive `<nile-*-chart>` elements (`el.config = { chart, aq }`).
|
|
14
30
|
* Discriminated on `chart.type`.
|
|
15
31
|
*/
|
|
16
|
-
export type PrimitiveChartConfigType = ChartClusterConfigType | ChartStackedConfigType | ChartHistogramConfigType | ChartBellcurveConfigType | ChartBoxplotConfigType | ChartTimelineConfigType | ChartDumbbellConfigType | ChartFanConfigType | ChartFunnelConfigType | ChartFlameConfigType | ChartSpiderwebConfigType;
|
|
32
|
+
export type PrimitiveChartConfigType = ChartInvertedAreaConfigType | ChartColumnPyramidConfigType | ChartLollipopConfigType | ChartAreaSplineConfigType | ChartAreaNegativeConfigType | ChartAreaRangeConfigType | ChartColumnRangeConfigType | ChartColumnDrilldownConfigType | ChartRadialBarConfigType | ChartVariablePieConfigType | ChartDumbbellLowerConfigType | ChartDumbbellUpperConfigType | ChartEulerConfigType | ChartPolygonConfigType | ChartVectorConfigType | ChartXrangeConfigType | ChartClusterConfigType | ChartStackedConfigType | ChartHistogramConfigType | ChartBellcurveConfigType | ChartBoxplotConfigType | ChartTimelineConfigType | ChartDumbbellConfigType | ChartFanConfigType | ChartFunnelConfigType | ChartFlameConfigType | ChartSpiderwebConfigType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styles = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host([hidden]) {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.chart-container {
|
|
14
|
+
width: 100%;
|
|
15
|
+
min-height: var(--nile-height-200px, var(--ng-height-200px));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.chart-loading {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
min-height: inherit;
|
|
23
|
+
color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
24
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
25
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
//# sourceMappingURL=nile-area-negative-chart.css.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import type Highcharts from 'highcharts';
|
|
3
|
+
import NileElement from '../internal/nile-element.js';
|
|
4
|
+
import type { SeparatedChartConfigInputType } from '../internal/types/separated-chart-config-input.type.js';
|
|
5
|
+
export interface AreaNegativeSeriesData {
|
|
6
|
+
name: string;
|
|
7
|
+
data: number[];
|
|
8
|
+
color?: string;
|
|
9
|
+
negativeColor?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class NileAreaNegativeChart extends NileElement {
|
|
12
|
+
static styles: CSSResultGroup;
|
|
13
|
+
private _hc;
|
|
14
|
+
private chart;
|
|
15
|
+
private resizeObserver;
|
|
16
|
+
private chartContainer;
|
|
17
|
+
config: SeparatedChartConfigInputType | null;
|
|
18
|
+
chartTitle: string;
|
|
19
|
+
chartSubtitle: string;
|
|
20
|
+
data: AreaNegativeSeriesData[];
|
|
21
|
+
categories: string[];
|
|
22
|
+
options: Highcharts.Options;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
height: string;
|
|
25
|
+
yAxisTitle: string;
|
|
26
|
+
threshold: number;
|
|
27
|
+
private applyConfig;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
protected firstUpdated(): void;
|
|
31
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
32
|
+
private setupResizeObserver;
|
|
33
|
+
private buildOptions;
|
|
34
|
+
private initChart;
|
|
35
|
+
private destroyChart;
|
|
36
|
+
render(): TemplateResult;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElementTagNameMap {
|
|
40
|
+
'nile-area-negative-chart': NileAreaNegativeChart;
|
|
41
|
+
}
|
|
42
|
+
}
|