@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
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { customElement, property, query } from 'lit/decorators.js';
|
|
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 { styles } from './nile-vector-chart.css.js';
|
|
9
|
+
let NileVectorChart = class NileVectorChart extends NileElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this._hc = null;
|
|
13
|
+
this.chart = null;
|
|
14
|
+
this.resizeObserver = null;
|
|
15
|
+
this.config = null;
|
|
16
|
+
this.chartTitle = '';
|
|
17
|
+
this.chartSubtitle = '';
|
|
18
|
+
this.data = [];
|
|
19
|
+
this.seriesName = '';
|
|
20
|
+
this.xAxisTitle = '';
|
|
21
|
+
this.yAxisTitle = '';
|
|
22
|
+
this.options = {};
|
|
23
|
+
this.loading = false;
|
|
24
|
+
this.height = '400px';
|
|
25
|
+
}
|
|
26
|
+
applyConfig(cfg) {
|
|
27
|
+
applySeparatedChartConfig(this, cfg);
|
|
28
|
+
}
|
|
29
|
+
connectedCallback() {
|
|
30
|
+
super.connectedCallback();
|
|
31
|
+
if (this.config)
|
|
32
|
+
this.applyConfig(this.config);
|
|
33
|
+
}
|
|
34
|
+
disconnectedCallback() {
|
|
35
|
+
super.disconnectedCallback();
|
|
36
|
+
this.destroyChart();
|
|
37
|
+
this.resizeObserver?.disconnect();
|
|
38
|
+
this.resizeObserver = null;
|
|
39
|
+
}
|
|
40
|
+
firstUpdated() {
|
|
41
|
+
this.initChart();
|
|
42
|
+
this.setupResizeObserver();
|
|
43
|
+
}
|
|
44
|
+
updated(changedProperties) {
|
|
45
|
+
if (changedProperties.has('config') && this.config) {
|
|
46
|
+
this.applyConfig(this.config);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const props = [
|
|
50
|
+
'data',
|
|
51
|
+
'seriesName',
|
|
52
|
+
'xAxisTitle',
|
|
53
|
+
'yAxisTitle',
|
|
54
|
+
'chartTitle',
|
|
55
|
+
'chartSubtitle',
|
|
56
|
+
'options',
|
|
57
|
+
'height',
|
|
58
|
+
'loading',
|
|
59
|
+
];
|
|
60
|
+
if (!props.some(p => changedProperties.has(p)))
|
|
61
|
+
return;
|
|
62
|
+
if (this.loading) {
|
|
63
|
+
this.destroyChart();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (this.chart) {
|
|
67
|
+
this.chart.update(this.buildOptions(), true, true);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
this.initChart();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
setupResizeObserver() {
|
|
74
|
+
if (!this.chartContainer)
|
|
75
|
+
return;
|
|
76
|
+
this.resizeObserver = new ResizeObserver(() => this.chart?.reflow());
|
|
77
|
+
this.resizeObserver.observe(this.chartContainer);
|
|
78
|
+
}
|
|
79
|
+
buildOptions() {
|
|
80
|
+
const self = this;
|
|
81
|
+
return deepMerge({
|
|
82
|
+
chart: { height: this.height },
|
|
83
|
+
title: { text: this.chartTitle || undefined },
|
|
84
|
+
subtitle: { text: this.chartSubtitle || undefined },
|
|
85
|
+
xAxis: { title: { text: this.xAxisTitle || undefined } },
|
|
86
|
+
yAxis: { title: { text: this.yAxisTitle || undefined } },
|
|
87
|
+
tooltip: {
|
|
88
|
+
pointFormat: '{point.name}<br/>length: <b>{point.length}</b>, dir: <b>{point.direction}°</b>',
|
|
89
|
+
},
|
|
90
|
+
plotOptions: {
|
|
91
|
+
vector: {
|
|
92
|
+
cursor: 'pointer',
|
|
93
|
+
point: {
|
|
94
|
+
events: {
|
|
95
|
+
click() {
|
|
96
|
+
self.emit('nile-chart-click', {
|
|
97
|
+
point: this,
|
|
98
|
+
seriesName: this.series.name,
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
series: [
|
|
106
|
+
{
|
|
107
|
+
type: 'vector',
|
|
108
|
+
name: this.seriesName || 'Vectors',
|
|
109
|
+
data: this.data.map(d => ({
|
|
110
|
+
x: d.x,
|
|
111
|
+
y: d.y,
|
|
112
|
+
length: d.length,
|
|
113
|
+
direction: d.direction,
|
|
114
|
+
name: d.name,
|
|
115
|
+
color: d.color,
|
|
116
|
+
})),
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
credits: { enabled: false },
|
|
120
|
+
}, this.options);
|
|
121
|
+
}
|
|
122
|
+
async initChart() {
|
|
123
|
+
if (this.loading || !this.chartContainer)
|
|
124
|
+
return;
|
|
125
|
+
if (!this._hc)
|
|
126
|
+
this._hc = await getHighcharts();
|
|
127
|
+
this.chart = this._hc.chart(this.chartContainer, this.buildOptions());
|
|
128
|
+
this.emit('nile-chart-ready', { chart: this.chart });
|
|
129
|
+
}
|
|
130
|
+
destroyChart() {
|
|
131
|
+
if (this.chart) {
|
|
132
|
+
this.chart.destroy();
|
|
133
|
+
this.chart = null;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
render() {
|
|
137
|
+
if (this.loading) {
|
|
138
|
+
return html `<div class="chart-loading" style="height:${this.height}">Loading...</div>`;
|
|
139
|
+
}
|
|
140
|
+
return html `<div class="chart-container"></div>`;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
NileVectorChart.styles = styles;
|
|
144
|
+
__decorate([
|
|
145
|
+
query('.chart-container')
|
|
146
|
+
], NileVectorChart.prototype, "chartContainer", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
property({ type: Object })
|
|
149
|
+
], NileVectorChart.prototype, "config", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
property({ type: String, attribute: 'chart-title' })
|
|
152
|
+
], NileVectorChart.prototype, "chartTitle", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
property({ type: String, attribute: 'chart-subtitle' })
|
|
155
|
+
], NileVectorChart.prototype, "chartSubtitle", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
property({ type: Array })
|
|
158
|
+
], NileVectorChart.prototype, "data", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
property({ type: String, attribute: 'series-name' })
|
|
161
|
+
], NileVectorChart.prototype, "seriesName", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
property({ type: String, attribute: 'x-axis-title' })
|
|
164
|
+
], NileVectorChart.prototype, "xAxisTitle", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
property({ type: String, attribute: 'y-axis-title' })
|
|
167
|
+
], NileVectorChart.prototype, "yAxisTitle", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
property({ type: Object })
|
|
170
|
+
], NileVectorChart.prototype, "options", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
property({ type: Boolean, reflect: true })
|
|
173
|
+
], NileVectorChart.prototype, "loading", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
property({ type: String })
|
|
176
|
+
], NileVectorChart.prototype, "height", void 0);
|
|
177
|
+
NileVectorChart = __decorate([
|
|
178
|
+
customElement('nile-vector-chart')
|
|
179
|
+
], NileVectorChart);
|
|
180
|
+
export { NileVectorChart };
|
|
181
|
+
//# sourceMappingURL=nile-vector-chart.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import type Highcharts from 'highcharts';
|
|
3
3
|
import NileElement from '../internal/nile-element.js';
|
|
4
|
+
import type { NileChartConfigInputType } from '../internal/types/index.js';
|
|
4
5
|
export interface WaterfallDataPoint {
|
|
5
6
|
name: string;
|
|
6
7
|
y: number;
|
|
@@ -14,6 +15,8 @@ export declare class NileWaterfallChart extends NileElement {
|
|
|
14
15
|
private chart;
|
|
15
16
|
private resizeObserver;
|
|
16
17
|
private chartContainer;
|
|
18
|
+
/** Full chart configuration. Accepts separated { chart, aq } input. */
|
|
19
|
+
config: NileChartConfigInputType | null;
|
|
17
20
|
chartTitle: string;
|
|
18
21
|
chartSubtitle: string;
|
|
19
22
|
data: WaterfallDataPoint[];
|
|
@@ -21,6 +24,9 @@ export declare class NileWaterfallChart extends NileElement {
|
|
|
21
24
|
loading: boolean;
|
|
22
25
|
height: string;
|
|
23
26
|
yAxisTitle: string;
|
|
27
|
+
/** Apply { chart, aq } config to individual properties. */
|
|
28
|
+
private applyConfig;
|
|
29
|
+
connectedCallback(): void;
|
|
24
30
|
disconnectedCallback(): void;
|
|
25
31
|
protected firstUpdated(): void;
|
|
26
32
|
protected updated(changedProperties: PropertyValues): void;
|
|
@@ -11,6 +11,8 @@ let NileWaterfallChart = class NileWaterfallChart 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 = [];
|
|
@@ -19,6 +21,34 @@ let NileWaterfallChart = class NileWaterfallChart extends NileElement {
|
|
|
19
21
|
this.height = '400px';
|
|
20
22
|
this.yAxisTitle = '';
|
|
21
23
|
}
|
|
24
|
+
/** Apply { chart, aq } config to individual properties. */
|
|
25
|
+
applyConfig(cfg) {
|
|
26
|
+
const { chart: c, aq } = cfg;
|
|
27
|
+
if (c) {
|
|
28
|
+
const wf = c;
|
|
29
|
+
if (wf.data)
|
|
30
|
+
this.data = wf.data;
|
|
31
|
+
if (wf.yAxisTitle)
|
|
32
|
+
this.yAxisTitle = wf.yAxisTitle;
|
|
33
|
+
if (wf.height)
|
|
34
|
+
this.height = wf.height;
|
|
35
|
+
if (wf.loading !== undefined)
|
|
36
|
+
this.loading = wf.loading;
|
|
37
|
+
if (wf.options)
|
|
38
|
+
this.options = wf.options;
|
|
39
|
+
}
|
|
40
|
+
if (aq) {
|
|
41
|
+
if (aq.chartTitle)
|
|
42
|
+
this.chartTitle = aq.chartTitle;
|
|
43
|
+
if (aq.chartSubtitle)
|
|
44
|
+
this.chartSubtitle = aq.chartSubtitle;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
connectedCallback() {
|
|
48
|
+
super.connectedCallback();
|
|
49
|
+
if (this.config)
|
|
50
|
+
this.applyConfig(this.config);
|
|
51
|
+
}
|
|
22
52
|
disconnectedCallback() {
|
|
23
53
|
super.disconnectedCallback();
|
|
24
54
|
this.destroyChart();
|
|
@@ -27,6 +57,10 @@ let NileWaterfallChart = class NileWaterfallChart extends NileElement {
|
|
|
27
57
|
}
|
|
28
58
|
firstUpdated() { this.initChart(); this.setupResizeObserver(); }
|
|
29
59
|
updated(changedProperties) {
|
|
60
|
+
if (changedProperties.has('config') && this.config) {
|
|
61
|
+
this.applyConfig(this.config);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
30
64
|
const props = ['data', 'chartTitle', 'chartSubtitle', 'options', 'height', 'yAxisTitle', 'loading'];
|
|
31
65
|
if (!props.some(p => changedProperties.has(p)))
|
|
32
66
|
return;
|
|
@@ -109,6 +143,9 @@ NileWaterfallChart.styles = styles;
|
|
|
109
143
|
__decorate([
|
|
110
144
|
query('.chart-container')
|
|
111
145
|
], NileWaterfallChart.prototype, "chartContainer", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
property({ type: Object })
|
|
148
|
+
], NileWaterfallChart.prototype, "config", void 0);
|
|
112
149
|
__decorate([
|
|
113
150
|
property({ type: String, attribute: 'chart-title' })
|
|
114
151
|
], NileWaterfallChart.prototype, "chartTitle", void 0);
|
|
@@ -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-xrange-chart.css.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
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 XrangeDataPoint {
|
|
6
|
+
x: number;
|
|
7
|
+
x2: number;
|
|
8
|
+
y: number;
|
|
9
|
+
name?: string;
|
|
10
|
+
partialFill?: number;
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class NileXrangeChart extends NileElement {
|
|
14
|
+
static styles: CSSResultGroup;
|
|
15
|
+
private _hc;
|
|
16
|
+
private chart;
|
|
17
|
+
private resizeObserver;
|
|
18
|
+
private chartContainer;
|
|
19
|
+
config: SeparatedChartConfigInputType | null;
|
|
20
|
+
chartTitle: string;
|
|
21
|
+
chartSubtitle: string;
|
|
22
|
+
data: XrangeDataPoint[];
|
|
23
|
+
categories: string[];
|
|
24
|
+
seriesName: string;
|
|
25
|
+
datetimeAxis: boolean;
|
|
26
|
+
options: Highcharts.Options;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
height: string;
|
|
29
|
+
private applyConfig;
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
disconnectedCallback(): void;
|
|
32
|
+
protected firstUpdated(): void;
|
|
33
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
34
|
+
private setupResizeObserver;
|
|
35
|
+
private buildOptions;
|
|
36
|
+
private initChart;
|
|
37
|
+
private destroyChart;
|
|
38
|
+
render(): TemplateResult;
|
|
39
|
+
}
|
|
40
|
+
declare global {
|
|
41
|
+
interface HTMLElementTagNameMap {
|
|
42
|
+
'nile-xrange-chart': NileXrangeChart;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { customElement, property, query } from 'lit/decorators.js';
|
|
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 { styles } from './nile-xrange-chart.css.js';
|
|
9
|
+
let NileXrangeChart = class NileXrangeChart extends NileElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this._hc = null;
|
|
13
|
+
this.chart = null;
|
|
14
|
+
this.resizeObserver = null;
|
|
15
|
+
this.config = null;
|
|
16
|
+
this.chartTitle = '';
|
|
17
|
+
this.chartSubtitle = '';
|
|
18
|
+
this.data = [];
|
|
19
|
+
this.categories = [];
|
|
20
|
+
this.seriesName = '';
|
|
21
|
+
this.datetimeAxis = true;
|
|
22
|
+
this.options = {};
|
|
23
|
+
this.loading = false;
|
|
24
|
+
this.height = '400px';
|
|
25
|
+
}
|
|
26
|
+
applyConfig(cfg) {
|
|
27
|
+
applySeparatedChartConfig(this, cfg);
|
|
28
|
+
}
|
|
29
|
+
connectedCallback() {
|
|
30
|
+
super.connectedCallback();
|
|
31
|
+
if (this.config)
|
|
32
|
+
this.applyConfig(this.config);
|
|
33
|
+
}
|
|
34
|
+
disconnectedCallback() {
|
|
35
|
+
super.disconnectedCallback();
|
|
36
|
+
this.destroyChart();
|
|
37
|
+
this.resizeObserver?.disconnect();
|
|
38
|
+
this.resizeObserver = null;
|
|
39
|
+
}
|
|
40
|
+
firstUpdated() {
|
|
41
|
+
this.initChart();
|
|
42
|
+
this.setupResizeObserver();
|
|
43
|
+
}
|
|
44
|
+
updated(changedProperties) {
|
|
45
|
+
if (changedProperties.has('config') && this.config) {
|
|
46
|
+
this.applyConfig(this.config);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const props = [
|
|
50
|
+
'data',
|
|
51
|
+
'categories',
|
|
52
|
+
'seriesName',
|
|
53
|
+
'datetimeAxis',
|
|
54
|
+
'chartTitle',
|
|
55
|
+
'chartSubtitle',
|
|
56
|
+
'options',
|
|
57
|
+
'height',
|
|
58
|
+
'loading',
|
|
59
|
+
];
|
|
60
|
+
if (!props.some(p => changedProperties.has(p)))
|
|
61
|
+
return;
|
|
62
|
+
if (this.loading) {
|
|
63
|
+
this.destroyChart();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (this.chart) {
|
|
67
|
+
this.chart.update(this.buildOptions(), true, true);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
this.initChart();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
setupResizeObserver() {
|
|
74
|
+
if (!this.chartContainer)
|
|
75
|
+
return;
|
|
76
|
+
this.resizeObserver = new ResizeObserver(() => this.chart?.reflow());
|
|
77
|
+
this.resizeObserver.observe(this.chartContainer);
|
|
78
|
+
}
|
|
79
|
+
buildOptions() {
|
|
80
|
+
const self = this;
|
|
81
|
+
return deepMerge({
|
|
82
|
+
chart: { type: 'xrange', height: this.height },
|
|
83
|
+
title: { text: this.chartTitle || undefined },
|
|
84
|
+
subtitle: { text: this.chartSubtitle || undefined },
|
|
85
|
+
xAxis: this.datetimeAxis
|
|
86
|
+
? { type: 'datetime' }
|
|
87
|
+
: { type: 'linear', title: { text: undefined } },
|
|
88
|
+
yAxis: {
|
|
89
|
+
title: { text: undefined },
|
|
90
|
+
categories: this.categories,
|
|
91
|
+
reversed: true,
|
|
92
|
+
min: 0,
|
|
93
|
+
max: Math.max(0, this.categories.length - 1),
|
|
94
|
+
},
|
|
95
|
+
tooltip: {
|
|
96
|
+
headerFormat: '',
|
|
97
|
+
pointFormat: '<b>{point.name}</b><br/>{point.x:%e %b} → {point.x2:%e %b}',
|
|
98
|
+
},
|
|
99
|
+
plotOptions: {
|
|
100
|
+
xrange: {
|
|
101
|
+
borderRadius: 4,
|
|
102
|
+
borderWidth: 0,
|
|
103
|
+
dataLabels: { enabled: true, format: '{point.name}' },
|
|
104
|
+
cursor: 'pointer',
|
|
105
|
+
point: {
|
|
106
|
+
events: {
|
|
107
|
+
click() {
|
|
108
|
+
self.emit('nile-chart-click', {
|
|
109
|
+
point: this,
|
|
110
|
+
seriesName: this.series.name,
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
series: [
|
|
118
|
+
{
|
|
119
|
+
type: 'xrange',
|
|
120
|
+
name: this.seriesName || 'Range',
|
|
121
|
+
data: this.data.map(d => ({
|
|
122
|
+
x: d.x,
|
|
123
|
+
x2: d.x2,
|
|
124
|
+
y: d.y,
|
|
125
|
+
name: d.name,
|
|
126
|
+
partialFill: d.partialFill,
|
|
127
|
+
color: d.color,
|
|
128
|
+
})),
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
credits: { enabled: false },
|
|
132
|
+
}, this.options);
|
|
133
|
+
}
|
|
134
|
+
async initChart() {
|
|
135
|
+
if (this.loading || !this.chartContainer)
|
|
136
|
+
return;
|
|
137
|
+
if (!this._hc)
|
|
138
|
+
this._hc = await getHighcharts();
|
|
139
|
+
this.chart = this._hc.chart(this.chartContainer, this.buildOptions());
|
|
140
|
+
this.emit('nile-chart-ready', { chart: this.chart });
|
|
141
|
+
}
|
|
142
|
+
destroyChart() {
|
|
143
|
+
if (this.chart) {
|
|
144
|
+
this.chart.destroy();
|
|
145
|
+
this.chart = null;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
render() {
|
|
149
|
+
if (this.loading) {
|
|
150
|
+
return html `<div class="chart-loading" style="height:${this.height}">Loading...</div>`;
|
|
151
|
+
}
|
|
152
|
+
return html `<div class="chart-container"></div>`;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
NileXrangeChart.styles = styles;
|
|
156
|
+
__decorate([
|
|
157
|
+
query('.chart-container')
|
|
158
|
+
], NileXrangeChart.prototype, "chartContainer", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
property({ type: Object })
|
|
161
|
+
], NileXrangeChart.prototype, "config", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
property({ type: String, attribute: 'chart-title' })
|
|
164
|
+
], NileXrangeChart.prototype, "chartTitle", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
property({ type: String, attribute: 'chart-subtitle' })
|
|
167
|
+
], NileXrangeChart.prototype, "chartSubtitle", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
property({ type: Array })
|
|
170
|
+
], NileXrangeChart.prototype, "data", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
property({ type: Array })
|
|
173
|
+
], NileXrangeChart.prototype, "categories", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
property({ type: String, attribute: 'series-name' })
|
|
176
|
+
], NileXrangeChart.prototype, "seriesName", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
property({ type: Boolean, attribute: 'datetime-axis' })
|
|
179
|
+
], NileXrangeChart.prototype, "datetimeAxis", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
property({ type: Object })
|
|
182
|
+
], NileXrangeChart.prototype, "options", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
property({ type: Boolean, reflect: true })
|
|
185
|
+
], NileXrangeChart.prototype, "loading", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
property({ type: String })
|
|
188
|
+
], NileXrangeChart.prototype, "height", void 0);
|
|
189
|
+
NileXrangeChart = __decorate([
|
|
190
|
+
customElement('nile-xrange-chart')
|
|
191
|
+
], NileXrangeChart);
|
|
192
|
+
export { NileXrangeChart };
|
|
193
|
+
//# sourceMappingURL=nile-xrange-chart.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aquera/nile-visualization",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "A visualization Library for the Nile Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aquera Inc",
|
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
"./nile-line-chart": "./dist/src/nile-line-chart/index.js",
|
|
15
15
|
"./nile-area-chart": "./dist/src/nile-area-chart/index.js",
|
|
16
16
|
"./nile-column-chart": "./dist/src/nile-column-chart/index.js",
|
|
17
|
+
"./nile-cluster-chart": "./dist/src/nile-cluster-chart/index.js",
|
|
18
|
+
"./nile-stacked-chart": "./dist/src/nile-stacked-chart/index.js",
|
|
19
|
+
"./nile-histogram-chart": "./dist/src/nile-histogram-chart/index.js",
|
|
20
|
+
"./nile-bellcurve-chart": "./dist/src/nile-bellcurve-chart/index.js",
|
|
21
|
+
"./nile-boxplot-chart": "./dist/src/nile-boxplot-chart/index.js",
|
|
22
|
+
"./nile-timeline-chart": "./dist/src/nile-timeline-chart/index.js",
|
|
23
|
+
"./nile-dumbbell-chart": "./dist/src/nile-dumbbell-chart/index.js",
|
|
24
|
+
"./nile-fan-chart": "./dist/src/nile-fan-chart/index.js",
|
|
17
25
|
"./nile-spline-chart": "./dist/src/nile-spline-chart/index.js",
|
|
18
26
|
"./nile-donut-chart": "./dist/src/nile-donut-chart/index.js",
|
|
19
27
|
"./nile-scatter-chart": "./dist/src/nile-scatter-chart/index.js",
|
|
@@ -21,6 +29,9 @@
|
|
|
21
29
|
"./nile-radar-chart": "./dist/src/nile-radar-chart/index.js",
|
|
22
30
|
"./nile-gauge-chart": "./dist/src/nile-gauge-chart/index.js",
|
|
23
31
|
"./nile-waterfall-chart": "./dist/src/nile-waterfall-chart/index.js",
|
|
32
|
+
"./nile-funnel-chart": "./dist/src/nile-funnel-chart/index.js",
|
|
33
|
+
"./nile-flame-chart": "./dist/src/nile-flame-chart/index.js",
|
|
34
|
+
"./nile-spiderweb-chart": "./dist/src/nile-spiderweb-chart/index.js",
|
|
24
35
|
"./nile-trendline-chart": "./dist/src/nile-trendline-chart/index.js",
|
|
25
36
|
"./nile-anomaly-chart": "./dist/src/nile-anomaly-chart/index.js",
|
|
26
37
|
"./nile-ai-sender": "./dist/src/nile-ai-sender/index.js",
|