@aquera/nile-visualization 0.1.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 +57 -2
- package/dist/src/index.js +31 -0
- package/dist/src/internal/highcharts-provider.js +90 -0
- package/dist/src/internal/separated-chart-config.d.ts +5 -0
- package/dist/src/internal/separated-chart-config.js +16 -0
- package/dist/src/internal/types/ai-config.type.d.ts +9 -0
- package/dist/src/internal/types/ai-config.type.js +2 -0
- package/dist/src/internal/types/all-chart-config.type.d.ts +8 -0
- package/dist/src/internal/types/all-chart-config.type.js +2 -0
- package/dist/src/internal/types/aq-config.type.d.ts +13 -0
- package/dist/src/internal/types/aq-config.type.js +2 -0
- package/dist/src/internal/types/chart-anomaly-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-anomaly-config.type.js +2 -0
- package/dist/src/internal/types/chart-area-config.type.d.ts +17 -0
- package/dist/src/internal/types/chart-area-config.type.js +2 -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-bar-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-bar-config.type.js +2 -0
- package/dist/src/internal/types/chart-bellcurve-config.type.d.ts +19 -0
- package/dist/src/internal/types/chart-bellcurve-config.type.js +2 -0
- package/dist/src/internal/types/chart-boxplot-config.type.d.ts +15 -0
- package/dist/src/internal/types/chart-boxplot-config.type.js +2 -0
- package/dist/src/internal/types/chart-bubble-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-bubble-config.type.js +2 -0
- package/dist/src/internal/types/chart-cluster-config.type.d.ts +15 -0
- package/dist/src/internal/types/chart-cluster-config.type.js +2 -0
- package/dist/src/internal/types/chart-column-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-column-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-config.type.d.ts +16 -0
- package/dist/src/internal/types/chart-config.type.js +2 -0
- package/dist/src/internal/types/chart-donut-config.type.d.ts +14 -0
- package/dist/src/internal/types/chart-donut-config.type.js +2 -0
- package/dist/src/internal/types/chart-dumbbell-config.type.d.ts +16 -0
- package/dist/src/internal/types/chart-dumbbell-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-fan-config.type.d.ts +17 -0
- package/dist/src/internal/types/chart-fan-config.type.js +2 -0
- package/dist/src/internal/types/chart-flame-config.type.d.ts +14 -0
- package/dist/src/internal/types/chart-flame-config.type.js +2 -0
- package/dist/src/internal/types/chart-funnel-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-funnel-config.type.js +2 -0
- package/dist/src/internal/types/chart-gauge-config.type.d.ts +14 -0
- package/dist/src/internal/types/chart-gauge-config.type.js +2 -0
- package/dist/src/internal/types/chart-histogram-config.type.d.ts +19 -0
- package/dist/src/internal/types/chart-histogram-config.type.js +2 -0
- package/dist/src/internal/types/chart-kpi-config.type.d.ts +21 -0
- package/dist/src/internal/types/chart-kpi-config.type.js +2 -0
- package/dist/src/internal/types/chart-line-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-line-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-pie-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-pie-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-radar-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-radar-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-scatter-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-scatter-config.type.js +2 -0
- package/dist/src/internal/types/chart-spiderweb-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-spiderweb-config.type.js +2 -0
- package/dist/src/internal/types/chart-spline-config.type.d.ts +12 -0
- package/dist/src/internal/types/chart-spline-config.type.js +2 -0
- package/dist/src/internal/types/chart-stacked-config.type.d.ts +15 -0
- package/dist/src/internal/types/chart-stacked-config.type.js +2 -0
- package/dist/src/internal/types/chart-timeline-config.type.d.ts +15 -0
- package/dist/src/internal/types/chart-timeline-config.type.js +2 -0
- package/dist/src/internal/types/chart-trendline-config.type.d.ts +13 -0
- package/dist/src/internal/types/chart-trendline-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-waterfall-config.type.d.ts +11 -0
- package/dist/src/internal/types/chart-waterfall-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 +50 -0
- package/dist/src/internal/types/index.js +2 -0
- package/dist/src/internal/types/nile-ai-widgets-config-input.type.d.ts +23 -0
- package/dist/src/internal/types/nile-ai-widgets-config-input.type.js +2 -0
- package/dist/src/internal/types/nile-chart-config-input.type.d.ts +7 -0
- package/dist/src/internal/types/nile-chart-config-input.type.js +2 -0
- package/dist/src/internal/types/primitive-chart-config.type.d.ts +32 -0
- package/dist/src/internal/types/primitive-chart-config.type.js +2 -0
- package/dist/src/internal/types/separated-chart-config-input.type.d.ts +7 -0
- package/dist/src/internal/types/separated-chart-config-input.type.js +2 -0
- package/dist/src/internal/types/switchable-config.type.d.ts +8 -0
- package/dist/src/internal/types/switchable-config.type.js +2 -0
- package/dist/src/nile-ai-panel/index.d.ts +1 -0
- package/dist/src/nile-ai-panel/nile-ai-panel.d.ts +8 -1
- package/dist/src/nile-ai-panel/nile-ai-panel.js +34 -0
- package/dist/src/nile-ai-sender/index.d.ts +1 -0
- package/dist/src/nile-ai-sender/nile-ai-sender.d.ts +8 -1
- package/dist/src/nile-ai-sender/nile-ai-sender.js +30 -0
- package/dist/src/nile-anomaly-chart/nile-anomaly-chart.d.ts +6 -0
- package/dist/src/nile-anomaly-chart/nile-anomaly-chart.js +41 -0
- package/dist/src/nile-area-chart/nile-area-chart.d.ts +6 -0
- package/dist/src/nile-area-chart/nile-area-chart.js +41 -0
- 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-bar-chart/nile-bar-chart.d.ts +6 -0
- package/dist/src/nile-bar-chart/nile-bar-chart.js +40 -1
- package/dist/src/nile-bellcurve-chart/index.d.ts +2 -0
- package/dist/src/nile-bellcurve-chart/index.js +2 -0
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.css.d.ts +1 -0
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.css.js +28 -0
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.d.ts +49 -0
- package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.js +258 -0
- package/dist/src/nile-boxplot-chart/index.d.ts +2 -0
- package/dist/src/nile-boxplot-chart/index.js +2 -0
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.css.d.ts +1 -0
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.css.js +28 -0
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.d.ts +58 -0
- package/dist/src/nile-boxplot-chart/nile-boxplot-chart.js +235 -0
- package/dist/src/nile-bubble-chart/nile-bubble-chart.d.ts +6 -0
- package/dist/src/nile-bubble-chart/nile-bubble-chart.js +39 -0
- package/dist/src/nile-chart/index.d.ts +3 -1
- package/dist/src/nile-chart/index.js +1 -0
- package/dist/src/nile-chart/nile-chart-config-builder.d.ts +4 -0
- package/dist/src/nile-chart/nile-chart-config-builder.js +13 -0
- package/dist/src/nile-chart/nile-chart-config.d.ts +76 -2
- package/dist/src/nile-chart/nile-chart.d.ts +16 -2
- package/dist/src/nile-chart/nile-chart.js +144 -14
- package/dist/src/nile-cluster-chart/index.d.ts +2 -0
- package/dist/src/nile-cluster-chart/index.js +2 -0
- package/dist/src/nile-cluster-chart/nile-cluster-chart.css.d.ts +1 -0
- package/dist/src/nile-cluster-chart/nile-cluster-chart.css.js +28 -0
- package/dist/src/nile-cluster-chart/nile-cluster-chart.d.ts +46 -0
- package/dist/src/nile-cluster-chart/nile-cluster-chart.js +196 -0
- package/dist/src/nile-column-chart/nile-column-chart.d.ts +6 -0
- package/dist/src/nile-column-chart/nile-column-chart.js +39 -0
- 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-donut-chart/nile-donut-chart.d.ts +6 -0
- package/dist/src/nile-donut-chart/nile-donut-chart.js +43 -0
- package/dist/src/nile-dumbbell-chart/index.d.ts +2 -0
- package/dist/src/nile-dumbbell-chart/index.js +2 -0
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.css.d.ts +1 -0
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.css.js +28 -0
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.d.ts +50 -0
- package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.js +217 -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-fan-chart/index.d.ts +2 -0
- package/dist/src/nile-fan-chart/index.js +2 -0
- package/dist/src/nile-fan-chart/nile-fan-chart.css.d.ts +1 -0
- package/dist/src/nile-fan-chart/nile-fan-chart.css.js +28 -0
- package/dist/src/nile-fan-chart/nile-fan-chart.d.ts +65 -0
- package/dist/src/nile-fan-chart/nile-fan-chart.js +257 -0
- package/dist/src/nile-flame-chart/index.d.ts +2 -0
- package/dist/src/nile-flame-chart/index.js +2 -0
- package/dist/src/nile-flame-chart/nile-flame-chart.css.d.ts +1 -0
- package/dist/src/nile-flame-chart/nile-flame-chart.css.js +28 -0
- package/dist/src/nile-flame-chart/nile-flame-chart.d.ts +60 -0
- package/dist/src/nile-flame-chart/nile-flame-chart.js +311 -0
- package/dist/src/nile-funnel-chart/index.d.ts +2 -0
- package/dist/src/nile-funnel-chart/index.js +2 -0
- package/dist/src/nile-funnel-chart/nile-funnel-chart.css.d.ts +1 -0
- package/dist/src/nile-funnel-chart/nile-funnel-chart.css.js +28 -0
- package/dist/src/nile-funnel-chart/nile-funnel-chart.d.ts +42 -0
- package/dist/src/nile-funnel-chart/nile-funnel-chart.js +189 -0
- package/dist/src/nile-gauge-chart/nile-gauge-chart.d.ts +6 -0
- package/dist/src/nile-gauge-chart/nile-gauge-chart.js +43 -0
- package/dist/src/nile-histogram-chart/index.d.ts +2 -0
- package/dist/src/nile-histogram-chart/index.js +2 -0
- package/dist/src/nile-histogram-chart/nile-histogram-chart.css.d.ts +1 -0
- package/dist/src/nile-histogram-chart/nile-histogram-chart.css.js +28 -0
- package/dist/src/nile-histogram-chart/nile-histogram-chart.d.ts +53 -0
- package/dist/src/nile-histogram-chart/nile-histogram-chart.js +263 -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-kpi-chart/index.d.ts +1 -1
- package/dist/src/nile-kpi-chart/nile-kpi-chart.d.ts +32 -0
- package/dist/src/nile-kpi-chart/nile-kpi-chart.js +60 -0
- package/dist/src/nile-line-chart/nile-line-chart.d.ts +6 -0
- package/dist/src/nile-line-chart/nile-line-chart.js +39 -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-pie-chart/nile-pie-chart.d.ts +6 -0
- package/dist/src/nile-pie-chart/nile-pie-chart.js +41 -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-radar-chart/nile-radar-chart.d.ts +6 -0
- package/dist/src/nile-radar-chart/nile-radar-chart.js +39 -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-scatter-chart/nile-scatter-chart.d.ts +6 -0
- package/dist/src/nile-scatter-chart/nile-scatter-chart.js +39 -0
- package/dist/src/nile-spiderweb-chart/index.d.ts +2 -0
- package/dist/src/nile-spiderweb-chart/index.js +2 -0
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.css.d.ts +1 -0
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.css.js +28 -0
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.d.ts +46 -0
- package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.js +191 -0
- package/dist/src/nile-spline-chart/nile-spline-chart.d.ts +6 -0
- package/dist/src/nile-spline-chart/nile-spline-chart.js +39 -0
- package/dist/src/nile-stacked-chart/index.d.ts +2 -0
- package/dist/src/nile-stacked-chart/index.js +2 -0
- package/dist/src/nile-stacked-chart/nile-stacked-chart.css.d.ts +1 -0
- package/dist/src/nile-stacked-chart/nile-stacked-chart.css.js +28 -0
- package/dist/src/nile-stacked-chart/nile-stacked-chart.d.ts +47 -0
- package/dist/src/nile-stacked-chart/nile-stacked-chart.js +216 -0
- package/dist/src/nile-timeline-chart/index.d.ts +2 -0
- package/dist/src/nile-timeline-chart/index.js +2 -0
- package/dist/src/nile-timeline-chart/nile-timeline-chart.css.d.ts +1 -0
- package/dist/src/nile-timeline-chart/nile-timeline-chart.css.js +28 -0
- package/dist/src/nile-timeline-chart/nile-timeline-chart.d.ts +58 -0
- package/dist/src/nile-timeline-chart/nile-timeline-chart.js +239 -0
- package/dist/src/nile-trendline-chart/nile-trendline-chart.d.ts +6 -0
- package/dist/src/nile-trendline-chart/nile-trendline-chart.js +41 -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-waterfall-chart/nile-waterfall-chart.d.ts +6 -0
- package/dist/src/nile-waterfall-chart/nile-waterfall-chart.js +37 -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 +12 -1
|
@@ -11,6 +11,8 @@ let NileBubbleChart = class NileBubbleChart extends NileElement {
|
|
|
11
11
|
this._hc = null;
|
|
12
12
|
this.chart = null;
|
|
13
13
|
this.resizeObserver = null;
|
|
14
|
+
/** Full chart configuration. Accepts separated { chart, aq } input. */
|
|
15
|
+
this.config = null;
|
|
14
16
|
this.chartTitle = '';
|
|
15
17
|
this.chartSubtitle = '';
|
|
16
18
|
this.data = [];
|
|
@@ -20,6 +22,36 @@ let NileBubbleChart = class NileBubbleChart extends NileElement {
|
|
|
20
22
|
this.xAxisTitle = '';
|
|
21
23
|
this.yAxisTitle = '';
|
|
22
24
|
}
|
|
25
|
+
/** Apply { chart, aq } config to individual properties. */
|
|
26
|
+
applyConfig(cfg) {
|
|
27
|
+
const { chart: c, aq } = cfg;
|
|
28
|
+
if (c) {
|
|
29
|
+
const bubble = c;
|
|
30
|
+
if (bubble.data)
|
|
31
|
+
this.data = bubble.data;
|
|
32
|
+
if (bubble.xAxisTitle)
|
|
33
|
+
this.xAxisTitle = bubble.xAxisTitle;
|
|
34
|
+
if (bubble.yAxisTitle)
|
|
35
|
+
this.yAxisTitle = bubble.yAxisTitle;
|
|
36
|
+
if (bubble.height)
|
|
37
|
+
this.height = bubble.height;
|
|
38
|
+
if (bubble.loading !== undefined)
|
|
39
|
+
this.loading = bubble.loading;
|
|
40
|
+
if (bubble.options)
|
|
41
|
+
this.options = bubble.options;
|
|
42
|
+
}
|
|
43
|
+
if (aq) {
|
|
44
|
+
if (aq.chartTitle)
|
|
45
|
+
this.chartTitle = aq.chartTitle;
|
|
46
|
+
if (aq.chartSubtitle)
|
|
47
|
+
this.chartSubtitle = aq.chartSubtitle;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
connectedCallback() {
|
|
51
|
+
super.connectedCallback();
|
|
52
|
+
if (this.config)
|
|
53
|
+
this.applyConfig(this.config);
|
|
54
|
+
}
|
|
23
55
|
disconnectedCallback() {
|
|
24
56
|
super.disconnectedCallback();
|
|
25
57
|
this.destroyChart();
|
|
@@ -28,6 +60,10 @@ let NileBubbleChart = class NileBubbleChart extends NileElement {
|
|
|
28
60
|
}
|
|
29
61
|
firstUpdated() { this.initChart(); this.setupResizeObserver(); }
|
|
30
62
|
updated(changedProperties) {
|
|
63
|
+
if (changedProperties.has('config') && this.config) {
|
|
64
|
+
this.applyConfig(this.config);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
31
67
|
const props = ['data', 'chartTitle', 'chartSubtitle', 'options', 'height', 'xAxisTitle', 'yAxisTitle', 'loading'];
|
|
32
68
|
if (!props.some(p => changedProperties.has(p)))
|
|
33
69
|
return;
|
|
@@ -92,6 +128,9 @@ NileBubbleChart.styles = styles;
|
|
|
92
128
|
__decorate([
|
|
93
129
|
query('.chart-container')
|
|
94
130
|
], NileBubbleChart.prototype, "chartContainer", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
property({ type: Object })
|
|
133
|
+
], NileBubbleChart.prototype, "config", void 0);
|
|
95
134
|
__decorate([
|
|
96
135
|
property({ type: String, attribute: 'chart-title' })
|
|
97
136
|
], NileBubbleChart.prototype, "chartTitle", void 0);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { NileChart } from './nile-chart.js';
|
|
2
|
-
export type { NileChartConfig, NileBarChartConfig, NilePieChartConfig, NileTrendlineChartConfig, NileAnomalyChartConfig, ChartType, SwitchAggregation, NileAiConfig, } from './nile-chart-config.js';
|
|
2
|
+
export type { NileChartConfig, NileBarChartConfig, NilePieChartConfig, NileTrendlineChartConfig, NileAnomalyChartConfig, NileLineChartConfig, NileAreaChartConfig, NileColumnChartConfig, NileDonutChartConfig, NileScatterChartConfig, NileBubbleChartConfig, NileSplineChartConfig, NileRadarChartConfig, NileGaugeChartConfig, NileWaterfallChartConfig, ChartType, SwitchAggregation, NileAiConfig, } from './nile-chart-config.js';
|
|
3
3
|
export { convertConfig, registerAdapter } from '../internal/chart-adapters.js';
|
|
4
|
+
export { nileChartConfig } from './nile-chart-config-builder.js';
|
|
5
|
+
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 '../internal/types/index.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NileChartConfig } from './nile-chart-config.js';
|
|
2
|
+
import type { NileChartConfigInputType } from '../internal/types/index.js';
|
|
3
|
+
/** Merges separated chart + aq config into a flat NileChartConfig. */
|
|
4
|
+
export declare function nileChartConfig(input: NileChartConfigInputType): NileChartConfig;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Merges separated chart + aq config into a flat NileChartConfig. */
|
|
2
|
+
export function nileChartConfig(input) {
|
|
3
|
+
const { chart, aq } = input;
|
|
4
|
+
const { ai, switchable, ...rest } = aq ?? {};
|
|
5
|
+
return {
|
|
6
|
+
...chart,
|
|
7
|
+
...rest,
|
|
8
|
+
...(ai && { ai }),
|
|
9
|
+
...(switchable?.types && { switchableTypes: switchable.types }),
|
|
10
|
+
...(switchable?.aggregation && { switchAggregation: switchable.aggregation }),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=nile-chart-config-builder.js.map
|
|
@@ -3,7 +3,17 @@ import type { BarChartSeriesData } from '../nile-bar-chart/nile-bar-chart.js';
|
|
|
3
3
|
import type { PieChartSeriesData } from '../nile-pie-chart/nile-pie-chart.js';
|
|
4
4
|
import type { TrendlineSeriesData, ForecastConfig } from '../nile-trendline-chart/nile-trendline-chart.js';
|
|
5
5
|
import type { AnomalySeriesData, AnomalyConfig } from '../nile-anomaly-chart/nile-anomaly-chart.js';
|
|
6
|
-
|
|
6
|
+
import type { LineChartSeriesData } from '../nile-line-chart/nile-line-chart.js';
|
|
7
|
+
import type { AreaChartSeriesData } from '../nile-area-chart/nile-area-chart.js';
|
|
8
|
+
import type { ColumnChartSeriesData } from '../nile-column-chart/nile-column-chart.js';
|
|
9
|
+
import type { DonutChartSeriesData } from '../nile-donut-chart/nile-donut-chart.js';
|
|
10
|
+
import type { ScatterChartSeriesData } from '../nile-scatter-chart/nile-scatter-chart.js';
|
|
11
|
+
import type { BubbleChartSeriesData } from '../nile-bubble-chart/nile-bubble-chart.js';
|
|
12
|
+
import type { SplineChartSeriesData } from '../nile-spline-chart/nile-spline-chart.js';
|
|
13
|
+
import type { RadarChartSeriesData } from '../nile-radar-chart/nile-radar-chart.js';
|
|
14
|
+
import type { GaugeBand } from '../nile-gauge-chart/nile-gauge-chart.js';
|
|
15
|
+
import type { WaterfallDataPoint } from '../nile-waterfall-chart/nile-waterfall-chart.js';
|
|
16
|
+
export type ChartType = 'bar' | 'pie' | 'trendline' | 'anomaly' | 'line' | 'area' | 'column' | 'donut' | 'scatter' | 'bubble' | 'spline' | 'radar' | 'gauge' | 'waterfall';
|
|
7
17
|
export type SwitchAggregation = 'by-category' | 'by-series' | 'flatten';
|
|
8
18
|
export interface NileAiConfig {
|
|
9
19
|
/** Show the AI chat icon on the chart. Default: false. */
|
|
@@ -55,4 +65,68 @@ export interface NileAnomalyChartConfig extends NileChartConfigBase {
|
|
|
55
65
|
yAxisTitle?: string;
|
|
56
66
|
anomaly?: AnomalyConfig;
|
|
57
67
|
}
|
|
58
|
-
export
|
|
68
|
+
export interface NileLineChartConfig extends NileChartConfigBase {
|
|
69
|
+
type: 'line';
|
|
70
|
+
data: LineChartSeriesData[];
|
|
71
|
+
categories?: string[];
|
|
72
|
+
yAxisTitle?: string;
|
|
73
|
+
}
|
|
74
|
+
export interface NileAreaChartConfig extends NileChartConfigBase {
|
|
75
|
+
type: 'area';
|
|
76
|
+
data: AreaChartSeriesData[];
|
|
77
|
+
categories?: string[];
|
|
78
|
+
yAxisTitle?: string;
|
|
79
|
+
stacked?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface NileColumnChartConfig extends NileChartConfigBase {
|
|
82
|
+
type: 'column';
|
|
83
|
+
data: ColumnChartSeriesData[];
|
|
84
|
+
categories?: string[];
|
|
85
|
+
yAxisTitle?: string;
|
|
86
|
+
}
|
|
87
|
+
export interface NileDonutChartConfig extends NileChartConfigBase {
|
|
88
|
+
type: 'donut';
|
|
89
|
+
data: DonutChartSeriesData[];
|
|
90
|
+
seriesName?: string;
|
|
91
|
+
innerSize?: string;
|
|
92
|
+
showDataLabels?: boolean;
|
|
93
|
+
showLegend?: boolean;
|
|
94
|
+
}
|
|
95
|
+
export interface NileScatterChartConfig extends NileChartConfigBase {
|
|
96
|
+
type: 'scatter';
|
|
97
|
+
data: ScatterChartSeriesData[];
|
|
98
|
+
xAxisTitle?: string;
|
|
99
|
+
yAxisTitle?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface NileBubbleChartConfig extends NileChartConfigBase {
|
|
102
|
+
type: 'bubble';
|
|
103
|
+
data: BubbleChartSeriesData[];
|
|
104
|
+
xAxisTitle?: string;
|
|
105
|
+
yAxisTitle?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface NileSplineChartConfig extends NileChartConfigBase {
|
|
108
|
+
type: 'spline';
|
|
109
|
+
data: SplineChartSeriesData[];
|
|
110
|
+
categories?: string[];
|
|
111
|
+
yAxisTitle?: string;
|
|
112
|
+
}
|
|
113
|
+
export interface NileRadarChartConfig extends NileChartConfigBase {
|
|
114
|
+
type: 'radar';
|
|
115
|
+
data: RadarChartSeriesData[];
|
|
116
|
+
categories?: string[];
|
|
117
|
+
showArea?: boolean;
|
|
118
|
+
}
|
|
119
|
+
export interface NileGaugeChartConfig extends NileChartConfigBase {
|
|
120
|
+
type: 'gauge';
|
|
121
|
+
value: number;
|
|
122
|
+
min?: number;
|
|
123
|
+
max?: number;
|
|
124
|
+
suffix?: string;
|
|
125
|
+
bands?: GaugeBand[];
|
|
126
|
+
}
|
|
127
|
+
export interface NileWaterfallChartConfig extends NileChartConfigBase {
|
|
128
|
+
type: 'waterfall';
|
|
129
|
+
data: WaterfallDataPoint[];
|
|
130
|
+
yAxisTitle?: string;
|
|
131
|
+
}
|
|
132
|
+
export type NileChartConfig = NileBarChartConfig | NilePieChartConfig | NileTrendlineChartConfig | NileAnomalyChartConfig | NileLineChartConfig | NileAreaChartConfig | NileColumnChartConfig | NileDonutChartConfig | NileScatterChartConfig | NileBubbleChartConfig | NileSplineChartConfig | NileRadarChartConfig | NileGaugeChartConfig | NileWaterfallChartConfig;
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import NileElement from '../internal/nile-element.js';
|
|
3
3
|
import type { NileChartConfig } from './nile-chart-config.js';
|
|
4
|
+
import type { NileChartConfigInputType } from '../internal/types/index.js';
|
|
4
5
|
import '../nile-bar-chart/index.js';
|
|
5
6
|
import '../nile-pie-chart/index.js';
|
|
6
7
|
import '../nile-trendline-chart/index.js';
|
|
7
8
|
import '../nile-anomaly-chart/index.js';
|
|
9
|
+
import '../nile-line-chart/index.js';
|
|
10
|
+
import '../nile-area-chart/index.js';
|
|
11
|
+
import '../nile-column-chart/index.js';
|
|
12
|
+
import '../nile-donut-chart/index.js';
|
|
13
|
+
import '../nile-scatter-chart/index.js';
|
|
14
|
+
import '../nile-bubble-chart/index.js';
|
|
15
|
+
import '../nile-spline-chart/index.js';
|
|
16
|
+
import '../nile-radar-chart/index.js';
|
|
17
|
+
import '../nile-gauge-chart/index.js';
|
|
18
|
+
import '../nile-waterfall-chart/index.js';
|
|
8
19
|
import '../nile-ai-panel/index.js';
|
|
9
20
|
export declare class NileChart extends NileElement {
|
|
10
21
|
static styles: CSSResultGroup;
|
|
11
|
-
/** Full chart configuration
|
|
12
|
-
config: NileChartConfig | null;
|
|
22
|
+
/** Full chart configuration. Accepts flat NileChartConfig or separated { chart, aq } input. */
|
|
23
|
+
config: NileChartConfig | NileChartConfigInputType | null;
|
|
13
24
|
/** The summary/insight text displayed in the overlay (fallback when config is not set). */
|
|
14
25
|
summary: string;
|
|
15
26
|
/** Label for the toggle button (fallback when config is not set). */
|
|
@@ -27,6 +38,9 @@ export declare class NileChart extends NileElement {
|
|
|
27
38
|
private handleOutsideClick;
|
|
28
39
|
connectedCallback(): void;
|
|
29
40
|
disconnectedCallback(): void;
|
|
41
|
+
/** Resolve { chart, aq } input to flat NileChartConfig. */
|
|
42
|
+
private resolveConfig;
|
|
43
|
+
private resolvedConfig;
|
|
30
44
|
protected updated(changedProperties: PropertyValues): void;
|
|
31
45
|
private toggle;
|
|
32
46
|
private toggleMenu;
|
|
@@ -3,22 +3,43 @@ import { customElement, property, query, state } from 'lit/decorators.js';
|
|
|
3
3
|
import { html, nothing } from 'lit';
|
|
4
4
|
import NileElement from '../internal/nile-element.js';
|
|
5
5
|
import { styles } from './nile-chart.css.js';
|
|
6
|
+
import { nileChartConfig } from './nile-chart-config-builder.js';
|
|
6
7
|
import { convertConfig } from '../internal/chart-adapters.js';
|
|
7
8
|
import '../nile-bar-chart/index.js';
|
|
8
9
|
import '../nile-pie-chart/index.js';
|
|
9
10
|
import '../nile-trendline-chart/index.js';
|
|
10
11
|
import '../nile-anomaly-chart/index.js';
|
|
12
|
+
import '../nile-line-chart/index.js';
|
|
13
|
+
import '../nile-area-chart/index.js';
|
|
14
|
+
import '../nile-column-chart/index.js';
|
|
15
|
+
import '../nile-donut-chart/index.js';
|
|
16
|
+
import '../nile-scatter-chart/index.js';
|
|
17
|
+
import '../nile-bubble-chart/index.js';
|
|
18
|
+
import '../nile-spline-chart/index.js';
|
|
19
|
+
import '../nile-radar-chart/index.js';
|
|
20
|
+
import '../nile-gauge-chart/index.js';
|
|
21
|
+
import '../nile-waterfall-chart/index.js';
|
|
11
22
|
import '../nile-ai-panel/index.js';
|
|
12
23
|
const TYPE_LABELS = {
|
|
13
24
|
bar: 'Bar',
|
|
14
25
|
pie: 'Pie',
|
|
15
26
|
trendline: 'Trendline',
|
|
16
27
|
anomaly: 'Anomaly',
|
|
28
|
+
line: 'Line',
|
|
29
|
+
area: 'Area',
|
|
30
|
+
column: 'Column',
|
|
31
|
+
donut: 'Donut',
|
|
32
|
+
scatter: 'Scatter',
|
|
33
|
+
bubble: 'Bubble',
|
|
34
|
+
spline: 'Spline',
|
|
35
|
+
radar: 'Radar',
|
|
36
|
+
gauge: 'Gauge',
|
|
37
|
+
waterfall: 'Waterfall',
|
|
17
38
|
};
|
|
18
39
|
let NileChart = class NileChart extends NileElement {
|
|
19
40
|
constructor() {
|
|
20
41
|
super(...arguments);
|
|
21
|
-
/** Full chart configuration
|
|
42
|
+
/** Full chart configuration. Accepts flat NileChartConfig or separated { chart, aq } input. */
|
|
22
43
|
this.config = null;
|
|
23
44
|
/** The summary/insight text displayed in the overlay (fallback when config is not set). */
|
|
24
45
|
this.summary = '';
|
|
@@ -37,28 +58,43 @@ let NileChart = class NileChart extends NileElement {
|
|
|
37
58
|
this.emit('nile-chart-toggle', { open: this.open });
|
|
38
59
|
}
|
|
39
60
|
};
|
|
61
|
+
this.resolvedConfig = null;
|
|
40
62
|
}
|
|
41
63
|
get effectiveSummary() {
|
|
42
|
-
return this.
|
|
64
|
+
return this.resolvedConfig?.summary ?? this.summary;
|
|
43
65
|
}
|
|
44
66
|
get effectiveToggleLabel() {
|
|
45
|
-
return this.
|
|
67
|
+
return this.resolvedConfig?.toggleLabel ?? this.toggleLabel;
|
|
46
68
|
}
|
|
47
69
|
get aiEnabled() {
|
|
48
|
-
return this.
|
|
70
|
+
return this.resolvedConfig?.ai?.enabled === true;
|
|
49
71
|
}
|
|
50
72
|
connectedCallback() {
|
|
51
73
|
super.connectedCallback();
|
|
52
74
|
document.addEventListener('click', this.handleOutsideClick);
|
|
75
|
+
// Pick up config set before element upgrade (e.g. Angular ngAfterViewInit)
|
|
76
|
+
if (this.config && !this.resolvedConfig) {
|
|
77
|
+
this.resolvedConfig = this.resolveConfig(this.config);
|
|
78
|
+
this.activeType = this.resolvedConfig.type;
|
|
79
|
+
this.activeConfig = this.resolvedConfig;
|
|
80
|
+
}
|
|
53
81
|
}
|
|
54
82
|
disconnectedCallback() {
|
|
55
83
|
super.disconnectedCallback();
|
|
56
84
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
57
85
|
}
|
|
86
|
+
/** Resolve { chart, aq } input to flat NileChartConfig. */
|
|
87
|
+
resolveConfig(input) {
|
|
88
|
+
if ('chart' in input && input.chart) {
|
|
89
|
+
return nileChartConfig(input);
|
|
90
|
+
}
|
|
91
|
+
return input;
|
|
92
|
+
}
|
|
58
93
|
updated(changedProperties) {
|
|
59
94
|
if (changedProperties.has('config') && this.config) {
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
95
|
+
this.resolvedConfig = this.resolveConfig(this.config);
|
|
96
|
+
this.activeType = this.resolvedConfig.type;
|
|
97
|
+
this.activeConfig = this.resolvedConfig;
|
|
62
98
|
}
|
|
63
99
|
}
|
|
64
100
|
toggle(e) {
|
|
@@ -93,10 +129,10 @@ let NileChart = class NileChart extends NileElement {
|
|
|
93
129
|
});
|
|
94
130
|
}
|
|
95
131
|
switchType(toType) {
|
|
96
|
-
if (!this.
|
|
132
|
+
if (!this.resolvedConfig || toType === this.activeType)
|
|
97
133
|
return;
|
|
98
134
|
const fromType = this.activeType;
|
|
99
|
-
const converted = convertConfig(this.
|
|
135
|
+
const converted = convertConfig(this.resolvedConfig, toType);
|
|
100
136
|
this.activeType = toType;
|
|
101
137
|
this.activeConfig = converted;
|
|
102
138
|
this.menuOpen = false;
|
|
@@ -107,13 +143,13 @@ let NileChart = class NileChart extends NileElement {
|
|
|
107
143
|
});
|
|
108
144
|
}
|
|
109
145
|
get headerTitle() {
|
|
110
|
-
return this.activeConfig?.chartTitle ?? this.
|
|
146
|
+
return this.activeConfig?.chartTitle ?? this.resolvedConfig?.chartTitle ?? '';
|
|
111
147
|
}
|
|
112
148
|
get headerSubtitle() {
|
|
113
|
-
return this.activeConfig?.chartSubtitle ?? this.
|
|
149
|
+
return this.activeConfig?.chartSubtitle ?? this.resolvedConfig?.chartSubtitle ?? '';
|
|
114
150
|
}
|
|
115
151
|
renderTypeSwitcher() {
|
|
116
|
-
const types = this.
|
|
152
|
+
const types = this.resolvedConfig?.switchableTypes;
|
|
117
153
|
if (!types || types.length === 0)
|
|
118
154
|
return nothing;
|
|
119
155
|
return html `
|
|
@@ -162,7 +198,7 @@ let NileChart = class NileChart extends NileElement {
|
|
|
162
198
|
renderHeader() {
|
|
163
199
|
const title = this.headerTitle;
|
|
164
200
|
const subtitle = this.headerSubtitle;
|
|
165
|
-
const hasTypeSwitcher = (this.
|
|
201
|
+
const hasTypeSwitcher = (this.resolvedConfig?.switchableTypes?.length ?? 0) > 0;
|
|
166
202
|
const hasActions = hasTypeSwitcher || this.aiEnabled;
|
|
167
203
|
if (!title && !subtitle && !hasActions)
|
|
168
204
|
return nothing;
|
|
@@ -182,7 +218,7 @@ let NileChart = class NileChart extends NileElement {
|
|
|
182
218
|
renderAiPanel() {
|
|
183
219
|
if (!this.aiEnabled)
|
|
184
220
|
return nothing;
|
|
185
|
-
const aiConfig = this.
|
|
221
|
+
const aiConfig = this.resolvedConfig.ai;
|
|
186
222
|
return html `
|
|
187
223
|
<div class="ai-panel-overlay" ?data-open=${this.chatOpen}>
|
|
188
224
|
<nile-ai-panel
|
|
@@ -238,6 +274,100 @@ let NileChart = class NileChart extends NileElement {
|
|
|
238
274
|
.options=${mergedOptions}
|
|
239
275
|
.loading=${config.loading ?? false}
|
|
240
276
|
></nile-anomaly-chart>`;
|
|
277
|
+
case 'line':
|
|
278
|
+
return html `<nile-line-chart
|
|
279
|
+
.data=${config.data}
|
|
280
|
+
.categories=${config.categories ?? []}
|
|
281
|
+
.height=${config.height ?? '400px'}
|
|
282
|
+
.yAxisTitle=${config.yAxisTitle ?? ''}
|
|
283
|
+
.options=${mergedOptions}
|
|
284
|
+
.loading=${config.loading ?? false}
|
|
285
|
+
></nile-line-chart>`;
|
|
286
|
+
case 'area':
|
|
287
|
+
return html `<nile-area-chart
|
|
288
|
+
.data=${config.data}
|
|
289
|
+
.categories=${config.categories ?? []}
|
|
290
|
+
.height=${config.height ?? '400px'}
|
|
291
|
+
.yAxisTitle=${config.yAxisTitle ?? ''}
|
|
292
|
+
.stacked=${config.stacked ?? false}
|
|
293
|
+
.options=${mergedOptions}
|
|
294
|
+
.loading=${config.loading ?? false}
|
|
295
|
+
></nile-area-chart>`;
|
|
296
|
+
case 'column':
|
|
297
|
+
return html `<nile-column-chart
|
|
298
|
+
.data=${config.data}
|
|
299
|
+
.categories=${config.categories ?? []}
|
|
300
|
+
.height=${config.height ?? '400px'}
|
|
301
|
+
.yAxisTitle=${config.yAxisTitle ?? ''}
|
|
302
|
+
.options=${mergedOptions}
|
|
303
|
+
.loading=${config.loading ?? false}
|
|
304
|
+
></nile-column-chart>`;
|
|
305
|
+
case 'donut':
|
|
306
|
+
return html `<nile-donut-chart
|
|
307
|
+
.data=${config.data}
|
|
308
|
+
.seriesName=${config.seriesName ?? ''}
|
|
309
|
+
.height=${config.height ?? '400px'}
|
|
310
|
+
.innerSize=${config.innerSize ?? '50%'}
|
|
311
|
+
.showDataLabels=${config.showDataLabels ?? true}
|
|
312
|
+
.showLegend=${config.showLegend ?? true}
|
|
313
|
+
.options=${mergedOptions}
|
|
314
|
+
.loading=${config.loading ?? false}
|
|
315
|
+
></nile-donut-chart>`;
|
|
316
|
+
case 'scatter':
|
|
317
|
+
return html `<nile-scatter-chart
|
|
318
|
+
.data=${config.data}
|
|
319
|
+
.height=${config.height ?? '400px'}
|
|
320
|
+
.xAxisTitle=${config.xAxisTitle ?? ''}
|
|
321
|
+
.yAxisTitle=${config.yAxisTitle ?? ''}
|
|
322
|
+
.options=${mergedOptions}
|
|
323
|
+
.loading=${config.loading ?? false}
|
|
324
|
+
></nile-scatter-chart>`;
|
|
325
|
+
case 'bubble':
|
|
326
|
+
return html `<nile-bubble-chart
|
|
327
|
+
.data=${config.data}
|
|
328
|
+
.height=${config.height ?? '400px'}
|
|
329
|
+
.xAxisTitle=${config.xAxisTitle ?? ''}
|
|
330
|
+
.yAxisTitle=${config.yAxisTitle ?? ''}
|
|
331
|
+
.options=${mergedOptions}
|
|
332
|
+
.loading=${config.loading ?? false}
|
|
333
|
+
></nile-bubble-chart>`;
|
|
334
|
+
case 'spline':
|
|
335
|
+
return html `<nile-spline-chart
|
|
336
|
+
.data=${config.data}
|
|
337
|
+
.categories=${config.categories ?? []}
|
|
338
|
+
.height=${config.height ?? '400px'}
|
|
339
|
+
.yAxisTitle=${config.yAxisTitle ?? ''}
|
|
340
|
+
.options=${mergedOptions}
|
|
341
|
+
.loading=${config.loading ?? false}
|
|
342
|
+
></nile-spline-chart>`;
|
|
343
|
+
case 'radar':
|
|
344
|
+
return html `<nile-radar-chart
|
|
345
|
+
.data=${config.data}
|
|
346
|
+
.categories=${config.categories ?? []}
|
|
347
|
+
.height=${config.height ?? '400px'}
|
|
348
|
+
.showArea=${config.showArea ?? false}
|
|
349
|
+
.options=${mergedOptions}
|
|
350
|
+
.loading=${config.loading ?? false}
|
|
351
|
+
></nile-radar-chart>`;
|
|
352
|
+
case 'gauge':
|
|
353
|
+
return html `<nile-gauge-chart
|
|
354
|
+
.value=${config.value}
|
|
355
|
+
.min=${config.min ?? 0}
|
|
356
|
+
.max=${config.max ?? 100}
|
|
357
|
+
.suffix=${config.suffix ?? ''}
|
|
358
|
+
.bands=${config.bands ?? []}
|
|
359
|
+
.height=${config.height ?? '280px'}
|
|
360
|
+
.options=${mergedOptions}
|
|
361
|
+
.loading=${config.loading ?? false}
|
|
362
|
+
></nile-gauge-chart>`;
|
|
363
|
+
case 'waterfall':
|
|
364
|
+
return html `<nile-waterfall-chart
|
|
365
|
+
.data=${config.data}
|
|
366
|
+
.height=${config.height ?? '400px'}
|
|
367
|
+
.yAxisTitle=${config.yAxisTitle ?? ''}
|
|
368
|
+
.options=${mergedOptions}
|
|
369
|
+
.loading=${config.loading ?? false}
|
|
370
|
+
></nile-waterfall-chart>`;
|
|
241
371
|
}
|
|
242
372
|
}
|
|
243
373
|
render() {
|
|
@@ -256,7 +386,7 @@ let NileChart = class NileChart extends NileElement {
|
|
|
256
386
|
</button>
|
|
257
387
|
<div class="chart-overlay" ?data-open="${this.open}">
|
|
258
388
|
<div class="chart-content">
|
|
259
|
-
${this.
|
|
389
|
+
${this.resolvedConfig
|
|
260
390
|
? this.effectiveSummary
|
|
261
391
|
: html `<slot name="insight">${this.summary}</slot>`}
|
|
262
392
|
</div>
|
|
@@ -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-cluster-chart.css.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
/** One series in a grouped (clustered) column chart — same shape as column chart data. */
|
|
6
|
+
export interface ClusterChartSeriesData {
|
|
7
|
+
name: string;
|
|
8
|
+
data: number[];
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class NileClusterChart extends NileElement {
|
|
12
|
+
static styles: CSSResultGroup;
|
|
13
|
+
private _hc;
|
|
14
|
+
private chart;
|
|
15
|
+
private resizeObserver;
|
|
16
|
+
private chartContainer;
|
|
17
|
+
/** Full chart configuration. Accepts separated `{ chart, aq }` input. */
|
|
18
|
+
config: SeparatedChartConfigInputType | null;
|
|
19
|
+
chartTitle: string;
|
|
20
|
+
chartSubtitle: string;
|
|
21
|
+
data: ClusterChartSeriesData[];
|
|
22
|
+
categories: string[];
|
|
23
|
+
options: Highcharts.Options;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
height: string;
|
|
26
|
+
yAxisTitle: string;
|
|
27
|
+
showLegend: boolean;
|
|
28
|
+
groupPadding: number;
|
|
29
|
+
pointPadding: number;
|
|
30
|
+
/** Apply `{ chart, aq }` config to individual properties. */
|
|
31
|
+
private applyConfig;
|
|
32
|
+
connectedCallback(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
protected firstUpdated(): void;
|
|
35
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
36
|
+
private setupResizeObserver;
|
|
37
|
+
private buildOptions;
|
|
38
|
+
private initChart;
|
|
39
|
+
private destroyChart;
|
|
40
|
+
render(): TemplateResult;
|
|
41
|
+
}
|
|
42
|
+
declare global {
|
|
43
|
+
interface HTMLElementTagNameMap {
|
|
44
|
+
'nile-cluster-chart': NileClusterChart;
|
|
45
|
+
}
|
|
46
|
+
}
|