@progress/kendo-charts 2.7.2-dev.202502101310 → 2.7.2-develop.1
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/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/barcode/barcode-validator.js +10 -12
- package/dist/es/barcode/barcode.js +84 -96
- package/dist/es/barcode/encodings/code11.js +41 -57
- package/dist/es/barcode/encodings/code128.js +222 -354
- package/dist/es/barcode/encodings/code39-extended.js +20 -34
- package/dist/es/barcode/encodings/code39.js +49 -75
- package/dist/es/barcode/encodings/code93-extended.js +12 -24
- package/dist/es/barcode/encodings/code93.js +52 -70
- package/dist/es/barcode/encodings/ean13.js +28 -42
- package/dist/es/barcode/encodings/ean8.js +8 -18
- package/dist/es/barcode/encodings/encoding.js +18 -24
- package/dist/es/barcode/encodings/main.js +13 -10
- package/dist/es/barcode/encodings/msi.js +56 -112
- package/dist/es/barcode/encodings/postnet.js +31 -45
- package/dist/es/barcode/surface-size.js +2 -2
- package/dist/es/chart/aggregates/aggregates.js +23 -23
- package/dist/es/chart/aggregates/default-aggregates.js +10 -18
- package/dist/es/chart/aggregates/series-aggregator.js +42 -54
- package/dist/es/chart/animations/bar-chart-animation.js +15 -26
- package/dist/es/chart/animations/bubble-animation.js +7 -17
- package/dist/es/chart/animations/clip-animation.js +13 -23
- package/dist/es/chart/animations/fade-in-animation.js +6 -16
- package/dist/es/chart/animations/pie-animation.js +6 -16
- package/dist/es/chart/api-elements/chart-axis.js +14 -22
- package/dist/es/chart/api-elements/chart-pane.js +10 -8
- package/dist/es/chart/api-elements/chart-plotarea.js +4 -10
- package/dist/es/chart/api-elements/find-axis-by-name.js +1 -1
- package/dist/es/chart/area-chart/area-chart.js +46 -60
- package/dist/es/chart/area-chart/area-segment.js +46 -52
- package/dist/es/chart/area-chart/spline-area-segment.js +12 -21
- package/dist/es/chart/area-chart/step-area-segment.js +6 -15
- package/dist/es/chart/axis-group-range-tracker.js +14 -20
- package/dist/es/chart/bar-chart/bar-chart.js +65 -80
- package/dist/es/chart/bar-chart/bar-label.js +25 -32
- package/dist/es/chart/bar-chart/bar.js +76 -91
- package/dist/es/chart/box-plot-chart/box-plot-chart.js +33 -48
- package/dist/es/chart/box-plot-chart/box-plot.js +55 -68
- package/dist/es/chart/box-plot-chart/vertical-box-plot.js +13 -23
- package/dist/es/chart/bubble-chart/bubble-chart.js +51 -64
- package/dist/es/chart/bubble-chart/bubble.js +21 -27
- package/dist/es/chart/bullet-chart/bullet-chart.js +45 -57
- package/dist/es/chart/bullet-chart/bullet.js +48 -57
- package/dist/es/chart/bullet-chart/target.js +1 -11
- package/dist/es/chart/candlestick-chart/candlestick-chart.js +41 -55
- package/dist/es/chart/candlestick-chart/candlestick.js +60 -69
- package/dist/es/chart/categorical-chart.js +178 -206
- package/dist/es/chart/chart-container.js +30 -39
- package/dist/es/chart/chart.js +641 -701
- package/dist/es/chart/constants.js +103 -103
- package/dist/es/chart/crosshair/crosshair-tooltip.js +22 -34
- package/dist/es/chart/crosshair/crosshair.js +39 -47
- package/dist/es/chart/donut-chart/donut-chart.js +36 -48
- package/dist/es/chart/donut-chart/donut-segment.js +12 -24
- package/dist/es/chart/error-bars/categorical-error-bar.js +5 -15
- package/dist/es/chart/error-bars/error-bar-base.js +37 -49
- package/dist/es/chart/error-bars/error-range-calculator.js +46 -56
- package/dist/es/chart/error-bars/scatter-error-bar.js +6 -16
- package/dist/es/chart/funnel-chart/funnel-chart.js +86 -103
- package/dist/es/chart/funnel-chart/funnel-segment.js +46 -54
- package/dist/es/chart/funnel-chart/pyramid-chart.js +5 -11
- package/dist/es/chart/heatmap-chart/color-scale.js +7 -9
- package/dist/es/chart/heatmap-chart/heatmap-chart.js +87 -110
- package/dist/es/chart/heatmap-chart/heatmap-point.js +72 -78
- package/dist/es/chart/highlight.js +26 -36
- package/dist/es/chart/layout/cluster-layout.js +16 -25
- package/dist/es/chart/layout/radar-cluster-layout.js +15 -24
- package/dist/es/chart/layout/radar-stack-layout.js +10 -22
- package/dist/es/chart/layout/stack-wrap.js +12 -24
- package/dist/es/chart/layout/utils.js +2 -2
- package/dist/es/chart/legend/legend-item-line-area.js +8 -19
- package/dist/es/chart/legend/legend-item-line.js +21 -31
- package/dist/es/chart/legend/legend-item-marker.js +18 -28
- package/dist/es/chart/legend/legend-item-square.js +8 -18
- package/dist/es/chart/legend/legend-item.js +91 -105
- package/dist/es/chart/legend/legend-layout.js +18 -25
- package/dist/es/chart/legend/legend.js +68 -92
- package/dist/es/chart/line-chart/line-chart.js +35 -48
- package/dist/es/chart/line-chart/line-point.js +90 -103
- package/dist/es/chart/line-chart/line-segment.js +23 -34
- package/dist/es/chart/line-chart/spline-segment.js +10 -20
- package/dist/es/chart/line-chart/step-line-mixin.js +14 -17
- package/dist/es/chart/line-chart/step-line-segment.js +4 -14
- package/dist/es/chart/mixins/accessibility-attributes-mixin.js +7 -7
- package/dist/es/chart/mixins/clip-animation-mixin.js +7 -7
- package/dist/es/chart/mixins/line-chart-mixin.js +27 -31
- package/dist/es/chart/mixins/note-mixin.js +3 -3
- package/dist/es/chart/mixins/pie-chart-mixin.js +9 -9
- package/dist/es/chart/mixins/plotarea-events-mixin.js +1 -1
- package/dist/es/chart/mixins/point-events-mixin.js +1 -1
- package/dist/es/chart/ohlc-chart/ohlc-chart.js +4 -14
- package/dist/es/chart/ohlc-chart/ohlc-point.js +15 -28
- package/dist/es/chart/pan-and-zoom/accept-key.js +3 -3
- package/dist/es/chart/pan-and-zoom/mousewheel-zoom.js +25 -33
- package/dist/es/chart/pan-and-zoom/pannable.js +29 -37
- package/dist/es/chart/pan-and-zoom/to-chart-axis-ranges.js +3 -3
- package/dist/es/chart/pan-and-zoom/zoom-selection.js +61 -70
- package/dist/es/chart/pane.js +71 -79
- package/dist/es/chart/pie-chart/pie-chart.js +153 -183
- package/dist/es/chart/pie-chart/pie-segment.js +82 -98
- package/dist/es/chart/plotarea/categorical-plotarea.js +285 -318
- package/dist/es/chart/plotarea/donut-plotarea.js +12 -22
- package/dist/es/chart/plotarea/funnel-plotarea.js +17 -27
- package/dist/es/chart/plotarea/heatmap-plotarea.js +139 -167
- package/dist/es/chart/plotarea/pie-plotarea.js +15 -25
- package/dist/es/chart/plotarea/plotarea-base.js +423 -462
- package/dist/es/chart/plotarea/plotarea-factory.js +15 -20
- package/dist/es/chart/plotarea/polar-plotarea-base.js +37 -51
- package/dist/es/chart/plotarea/polar-plotarea.js +39 -49
- package/dist/es/chart/plotarea/radar-plotarea.js +55 -65
- package/dist/es/chart/plotarea/xy-plotarea.js +111 -128
- package/dist/es/chart/polar-area-chart/polar-area-chart.js +22 -36
- package/dist/es/chart/polar-area-chart/polar-area-segment.js +7 -17
- package/dist/es/chart/polar-area-chart/spline-polar-area-segment.js +15 -25
- package/dist/es/chart/polar-line-chart/polar-line-chart.js +2 -11
- package/dist/es/chart/polar-scatter-chart/polar-scatter-chart.js +6 -16
- package/dist/es/chart/radar-area-chart/radar-area-chart.js +11 -21
- package/dist/es/chart/radar-area-chart/radar-area-segment.js +3 -13
- package/dist/es/chart/radar-area-chart/spline-radar-area-segment.js +3 -13
- package/dist/es/chart/radar-bar-chart/radar-bar-chart.js +19 -29
- package/dist/es/chart/radar-bar-chart/radar-segment.js +6 -12
- package/dist/es/chart/radar-line-chart/radar-line-chart.js +26 -35
- package/dist/es/chart/range-area-chart/range-area-chart.js +46 -58
- package/dist/es/chart/range-area-chart/range-area-point.js +55 -66
- package/dist/es/chart/range-area-chart/range-area-segment.js +19 -28
- package/dist/es/chart/range-area-chart/range-line-point.js +4 -14
- package/dist/es/chart/range-area-chart/spline-range-area-segment.js +11 -18
- package/dist/es/chart/range-area-chart/step-range-area-segment.js +7 -16
- package/dist/es/chart/range-bar-chart/range-bar-chart.js +18 -29
- package/dist/es/chart/range-bar-chart/range-bar.js +10 -23
- package/dist/es/chart/register-charts.js +20 -16
- package/dist/es/chart/scatter-charts/scatter-chart.js +100 -122
- package/dist/es/chart/scatter-charts/scatter-line-chart.js +15 -25
- package/dist/es/chart/selection.js +176 -201
- package/dist/es/chart/series-binder.js +55 -66
- package/dist/es/chart/theme/base-theme.js +75 -79
- package/dist/es/chart/theme/load-theme.js +52 -52
- package/dist/es/chart/tooltip/base-tooltip.js +17 -24
- package/dist/es/chart/tooltip/shared-tooltip.js +25 -31
- package/dist/es/chart/tooltip/tooltip.js +10 -20
- package/dist/es/chart/trendlines/calculate-moving-average.js +11 -13
- package/dist/es/chart/trendlines/calculate-polynomial.js +24 -26
- package/dist/es/chart/trendlines/calculate-slope.js +12 -14
- package/dist/es/chart/trendlines/check-all-positive.js +2 -5
- package/dist/es/chart/trendlines/exponential-trendline.js +15 -24
- package/dist/es/chart/trendlines/get-scatter-trendline-data.js +6 -7
- package/dist/es/chart/trendlines/get-trendline-data.js +6 -6
- package/dist/es/chart/trendlines/linear-trendline.js +12 -21
- package/dist/es/chart/trendlines/logarithmic-trendline.js +14 -23
- package/dist/es/chart/trendlines/moving-average.js +15 -26
- package/dist/es/chart/trendlines/polynomial-trendline.js +13 -21
- package/dist/es/chart/trendlines/power-trendline.js +15 -24
- package/dist/es/chart/trendlines/scatter-exponential-trendline.js +15 -24
- package/dist/es/chart/trendlines/scatter-linear-trendline.js +10 -16
- package/dist/es/chart/trendlines/scatter-logarithmic-trendline.js +17 -27
- package/dist/es/chart/trendlines/scatter-moving-average.js +7 -10
- package/dist/es/chart/trendlines/scatter-polynomial-trendline.js +11 -16
- package/dist/es/chart/trendlines/scatter-power-trendline.js +15 -22
- package/dist/es/chart/trendlines/scatter-trendline-registry.js +1 -1
- package/dist/es/chart/trendlines/scatter-value-getter.js +2 -5
- package/dist/es/chart/trendlines/trendline-factory.js +1 -1
- package/dist/es/chart/trendlines/trendline-registry.js +1 -1
- package/dist/es/chart/trendlines/x-value-limits.js +6 -8
- package/dist/es/chart/utils/any-has-z-index.js +1 -1
- package/dist/es/chart/utils/bind-segments.js +8 -8
- package/dist/es/chart/utils/categories-count.js +3 -3
- package/dist/es/chart/utils/count-numbers.js +4 -4
- package/dist/es/chart/utils/create-out-of-range-points.js +13 -22
- package/dist/es/chart/utils/eval-options.js +7 -10
- package/dist/es/chart/utils/filter-series-by-type.js +4 -4
- package/dist/es/chart/utils/get-field.js +1 -1
- package/dist/es/chart/utils/has-gradient-overlay.js +1 -1
- package/dist/es/chart/utils/is-date-axis.js +2 -2
- package/dist/es/chart/utils/parse-date-category.js +2 -2
- package/dist/es/chart/utils/segment-visible.js +2 -2
- package/dist/es/chart/waterfall-chart/waterfall-chart.js +41 -55
- package/dist/es/chart/waterfall-chart/waterfall-segment.js +16 -24
- package/dist/es/chart-wizard/get-wizard-data-from-data-rows.js +5 -6
- package/dist/es/chart-wizard/messages.js +1 -1
- package/dist/es/chart-wizard/state.js +145 -137
- package/dist/es/chart-wizard.js +12 -12
- package/dist/es/common/add-class.js +3 -3
- package/dist/es/common/align-path-to-pixel.js +2 -2
- package/dist/es/common/auto-text-color.js +1 -1
- package/dist/es/common/constants.js +53 -53
- package/dist/es/common/create-hash-set.js +59 -65
- package/dist/es/common/cycleDown.js +1 -1
- package/dist/es/common/deep-extend.js +10 -12
- package/dist/es/common/element-scale.js +9 -9
- package/dist/es/common/element-styles.js +8 -8
- package/dist/es/common/event-map.js +4 -4
- package/dist/es/common/event-utils.js +13 -13
- package/dist/es/common/find.js +2 -2
- package/dist/es/common/font-loader.js +42 -44
- package/dist/es/common/get-aria-template.js +2 -4
- package/dist/es/common/get-spacing.js +2 -4
- package/dist/es/common/get-supported-features.js +7 -7
- package/dist/es/common/get-template.js +2 -4
- package/dist/es/common/getter.js +5 -5
- package/dist/es/common/grep.js +3 -3
- package/dist/es/common/has-classes.js +2 -2
- package/dist/es/common/hash-map.js +11 -11
- package/dist/es/common/instance-observer.js +28 -33
- package/dist/es/common/keys.js +1 -1
- package/dist/es/common/map.js +4 -4
- package/dist/es/common/matrix.js +142 -150
- package/dist/es/common/mousewheel-delta.js +2 -2
- package/dist/es/common/observable.js +40 -52
- package/dist/es/common/remove-class.js +1 -1
- package/dist/es/common/render-icon.js +50 -60
- package/dist/es/common/set-default-options.js +1 -1
- package/dist/es/common/sparse-array-limits.js +4 -4
- package/dist/es/common/user-events.js +124 -150
- package/dist/es/core/axis-label.js +38 -43
- package/dist/es/core/axis.js +293 -345
- package/dist/es/core/box-element.js +36 -46
- package/dist/es/core/box.js +75 -83
- package/dist/es/core/category-axis.js +265 -314
- package/dist/es/core/chart-element.js +98 -109
- package/dist/es/core/constants.js +3 -3
- package/dist/es/core/curve-processor.js +86 -93
- package/dist/es/core/date-category-axis.js +381 -413
- package/dist/es/core/date-value-axis.js +108 -118
- package/dist/es/core/float-element.js +54 -78
- package/dist/es/core/gradients.js +3 -3
- package/dist/es/core/logarithmic-axis.js +134 -186
- package/dist/es/core/mixins/grid-lines-mixin.js +18 -20
- package/dist/es/core/mixins/radar-numeric-axis-mixin.js +46 -51
- package/dist/es/core/note.js +58 -73
- package/dist/es/core/numeric-axis.js +111 -133
- package/dist/es/core/pattern.js +4 -8
- package/dist/es/core/point.js +25 -34
- package/dist/es/core/polar-axis.js +73 -91
- package/dist/es/core/radar-category-axis.js +90 -114
- package/dist/es/core/radar-logarithmic-axis.js +10 -20
- package/dist/es/core/radar-numeric-axis.js +10 -20
- package/dist/es/core/ring.js +61 -68
- package/dist/es/core/root-element.js +40 -48
- package/dist/es/core/sector.js +11 -17
- package/dist/es/core/shape-builder.js +13 -23
- package/dist/es/core/shape-element.js +27 -37
- package/dist/es/core/text-box.js +50 -59
- package/dist/es/core/text.js +13 -24
- package/dist/es/core/title.js +19 -25
- package/dist/es/core/utils/auto-axis-max.js +3 -3
- package/dist/es/core/utils/auto-axis-min.js +3 -3
- package/dist/es/core/utils/auto-major-unit.js +4 -4
- package/dist/es/core/utils/box-diff.js +9 -9
- package/dist/es/core/utils/create-axis-grid-line.js +2 -4
- package/dist/es/core/utils/create-axis-tick.js +2 -4
- package/dist/es/core/utils/guid.js +3 -3
- package/dist/es/core/utils/rect-to-box.js +2 -2
- package/dist/es/date-utils/absolute-date-diff.js +2 -2
- package/dist/es/date-utils/add-duration.js +5 -5
- package/dist/es/date-utils/ceil-date.js +1 -1
- package/dist/es/date-utils/constants.js +17 -17
- package/dist/es/date-utils/date-index.js +3 -3
- package/dist/es/date-utils/duration.js +1 -1
- package/dist/es/date-utils/lte-date-index.js +4 -4
- package/dist/es/date-utils/parse-date.js +1 -1
- package/dist/es/date-utils/parse-dates.js +2 -2
- package/dist/es/date-utils/start-of-week.js +3 -5
- package/dist/es/date-utils/to-date.js +1 -1
- package/dist/es/date-utils/to-time.js +2 -2
- package/dist/es/drawing-utils.js +18 -17
- package/dist/es/gauges/arc/arc-gauge.js +29 -38
- package/dist/es/gauges/arc/arc-scale.js +16 -29
- package/dist/es/gauges/arc/range-pointer-animation.js +16 -25
- package/dist/es/gauges/arc/range-pointer.js +25 -46
- package/dist/es/gauges/circular/circular-gauge.js +7 -17
- package/dist/es/gauges/constants.js +14 -14
- package/dist/es/gauges/gauge.js +84 -96
- package/dist/es/gauges/linear/arrow-linear-pointer-animation.js +13 -25
- package/dist/es/gauges/linear/arrow-linear-pointer.js +23 -35
- package/dist/es/gauges/linear/bar-linear-pointer-animation.js +15 -24
- package/dist/es/gauges/linear/bar-linear-pointer.js +38 -51
- package/dist/es/gauges/linear/linear-gauge.js +61 -83
- package/dist/es/gauges/linear/linear-pointer.js +25 -39
- package/dist/es/gauges/linear/linear-scale.js +57 -74
- package/dist/es/gauges/pointer.js +11 -21
- package/dist/es/gauges/radial/radial-gauge.js +58 -81
- package/dist/es/gauges/radial/radial-pointer-animation.js +9 -15
- package/dist/es/gauges/radial/radial-pointer.js +33 -48
- package/dist/es/gauges/radial/radial-scale.js +154 -186
- package/dist/es/gauges/utils/build-label-element.js +10 -12
- package/dist/es/gauges/utils/get-range.js +2 -2
- package/dist/es/gauges/utils/pad.js +3 -3
- package/dist/es/gauges/utils/unpad.js +1 -1
- package/dist/es/map/attribution.js +42 -52
- package/dist/es/map/constants.js +5 -5
- package/dist/es/map/crs.js +68 -112
- package/dist/es/map/datums.js +3 -3
- package/dist/es/map/extent.js +40 -54
- package/dist/es/map/layers/bubble.js +52 -70
- package/dist/es/map/layers/layer.js +50 -56
- package/dist/es/map/layers/marker.js +109 -129
- package/dist/es/map/layers/shape.js +111 -133
- package/dist/es/map/layers/tile.js +144 -170
- package/dist/es/map/location.js +70 -78
- package/dist/es/map/map.js +261 -291
- package/dist/es/map/navigator.js +33 -39
- package/dist/es/map/scroller/draggable.js +98 -134
- package/dist/es/map/scroller/fx.js +39 -46
- package/dist/es/map/scroller/scroller.js +144 -174
- package/dist/es/map/tooltip/tooltip.js +15 -25
- package/dist/es/map/utils.js +25 -26
- package/dist/es/map/zoom.js +30 -36
- package/dist/es/qrcode/encodings/data-modes/alpha-numeric-data-mode.js +14 -26
- package/dist/es/qrcode/encodings/data-modes/byte-data-mode.js +15 -25
- package/dist/es/qrcode/encodings/data-modes/data-mode-instances.js +8 -7
- package/dist/es/qrcode/encodings/data-modes/numeric-data-mode.js +14 -24
- package/dist/es/qrcode/encodings/data-modes/qr-data-mode.js +15 -21
- package/dist/es/qrcode/encodings/encoders/iso-encoder.js +6 -16
- package/dist/es/qrcode/encodings/encoders/utf8-encoder.js +28 -36
- package/dist/es/qrcode/encodings/encoding-result.js +4 -10
- package/dist/es/qrcode/encodings/encoding.js +68 -192
- package/dist/es/qrcode/encodings/free-cell-visitor.js +16 -24
- package/dist/es/qrcode/encodings/utils/choose-mode.js +44 -0
- package/dist/es/qrcode/encodings/utils/get-data-codewords-count.js +13 -0
- package/dist/es/qrcode/encodings/utils/get-data-string.js +13 -0
- package/dist/es/qrcode/encodings/utils/get-modes.js +35 -0
- package/dist/es/qrcode/encodings/utils/get-version.js +23 -0
- package/dist/es/qrcode/encodings/utils/index.js +5 -0
- package/dist/es/qrcode/encodings/version-codewords.js +1 -1
- package/dist/es/qrcode/qrcode-validator.js +3 -5
- package/dist/es/qrcode/qrcode.js +104 -114
- package/dist/es/qrcode/utils.js +4 -4
- package/dist/es/sankey/calculation.js +286 -307
- package/dist/es/sankey/element.js +15 -23
- package/dist/es/sankey/label.js +29 -44
- package/dist/es/sankey/legend.js +15 -29
- package/dist/es/sankey/link.js +80 -98
- package/dist/es/sankey/node.js +26 -37
- package/dist/es/sankey/sankey.js +318 -385
- package/dist/es/sankey/title.js +9 -20
- package/dist/es/sankey/utils.js +18 -23
- package/dist/es/services/chart-service.js +24 -28
- package/dist/es/services/dom-events-builder.js +15 -15
- package/dist/es/services/format-service.js +30 -35
- package/dist/es/services/intl-service.js +14 -18
- package/dist/es/services/map-service.js +11 -11
- package/dist/es/services/template-service.js +9 -9
- package/dist/es/sparkline/shared-tooltip.js +11 -21
- package/dist/es/sparkline/sparkline.js +50 -60
- package/dist/es/stock/constants.js +3 -3
- package/dist/es/stock/fade-out-animation.js +12 -21
- package/dist/es/stock/navigator-hint.js +37 -49
- package/dist/es/stock/navigator.js +130 -161
- package/dist/es/stock/stock-chart.js +58 -67
- package/dist/es2015/chart/legend/legend-item.js +1 -1
- package/dist/es2015/qrcode/encodings/encoders/iso-encoder.js +1 -1
- package/dist/es2015/qrcode/encodings/encoders/utf8-encoder.js +1 -1
- package/dist/es2015/qrcode/encodings/encoding.js +3 -127
- package/dist/es2015/qrcode/encodings/utils/choose-mode.js +44 -0
- package/dist/es2015/qrcode/encodings/utils/get-data-codewords-count.js +13 -0
- package/dist/es2015/qrcode/encodings/utils/get-data-string.js +13 -0
- package/dist/es2015/qrcode/encodings/utils/get-modes.js +35 -0
- package/dist/es2015/qrcode/encodings/utils/get-version.js +23 -0
- package/dist/es2015/qrcode/encodings/utils/index.js +5 -0
- package/dist/npm/main.js +3222 -3589
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +19 -57
|
@@ -17,71 +17,60 @@ import { SCATTER, SCATTER_LINE, BUBBLE, LOGARITHMIC } from '../constants';
|
|
|
17
17
|
import { DATE } from '../../common/constants';
|
|
18
18
|
import { deepExtend, eventElement, grep, inArray, setDefaultOptions } from '../../common';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
PlotAreaBase.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if ( PlotAreaBase ) XYPlotArea.__proto__ = PlotAreaBase;
|
|
26
|
-
XYPlotArea.prototype = Object.create( PlotAreaBase && PlotAreaBase.prototype );
|
|
27
|
-
XYPlotArea.prototype.constructor = XYPlotArea;
|
|
28
|
-
|
|
29
|
-
XYPlotArea.prototype.initFields = function initFields () {
|
|
20
|
+
class XYPlotArea extends PlotAreaBase {
|
|
21
|
+
initFields() {
|
|
30
22
|
this.namedXAxes = {};
|
|
31
23
|
this.namedYAxes = {};
|
|
32
24
|
|
|
33
25
|
this.xAxisRangeTracker = new AxisGroupRangeTracker();
|
|
34
26
|
this.yAxisRangeTracker = new AxisGroupRangeTracker();
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
XYPlotArea.prototype.render = function render (panes) {
|
|
38
|
-
var this$1 = this;
|
|
39
|
-
if ( panes === void 0 ) panes = this.panes;
|
|
27
|
+
}
|
|
40
28
|
|
|
41
|
-
|
|
29
|
+
render(panes = this.panes) {
|
|
30
|
+
this.series = [...this.originalSeries];
|
|
42
31
|
this.createTrendlineSeries();
|
|
43
32
|
|
|
44
|
-
|
|
45
|
-
for (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
this
|
|
49
|
-
|
|
33
|
+
const seriesByPane = this.groupSeriesByPane();
|
|
34
|
+
for (let i = 0; i < panes.length; i++) {
|
|
35
|
+
const pane = panes[i];
|
|
36
|
+
const paneSeries = seriesByPane[pane.options.name || "default"] || [];
|
|
37
|
+
this.addToLegend(paneSeries);
|
|
38
|
+
const filteredSeries = this.filterVisibleSeries(paneSeries);
|
|
50
39
|
|
|
51
40
|
if (!filteredSeries) {
|
|
52
41
|
continue;
|
|
53
42
|
}
|
|
54
43
|
|
|
55
|
-
this
|
|
44
|
+
this.createScatterChart(
|
|
56
45
|
filterSeriesByType(filteredSeries, SCATTER),
|
|
57
46
|
pane
|
|
58
47
|
);
|
|
59
48
|
|
|
60
|
-
this
|
|
49
|
+
this.createScatterLineChart(
|
|
61
50
|
filterSeriesByType(filteredSeries, SCATTER_LINE),
|
|
62
51
|
pane
|
|
63
52
|
);
|
|
64
53
|
|
|
65
|
-
this
|
|
54
|
+
this.createBubbleChart(
|
|
66
55
|
filterSeriesByType(filteredSeries, BUBBLE),
|
|
67
56
|
pane
|
|
68
57
|
);
|
|
69
58
|
}
|
|
70
59
|
|
|
71
60
|
this.createAxes(panes);
|
|
72
|
-
}
|
|
61
|
+
}
|
|
73
62
|
|
|
74
|
-
|
|
63
|
+
appendChart(chart, pane) {
|
|
75
64
|
this.xAxisRangeTracker.update(chart.xAxisRanges);
|
|
76
65
|
this.yAxisRangeTracker.update(chart.yAxisRanges);
|
|
77
66
|
|
|
78
|
-
|
|
79
|
-
}
|
|
67
|
+
super.appendChart(chart, pane);
|
|
68
|
+
}
|
|
80
69
|
|
|
81
|
-
|
|
82
|
-
|
|
70
|
+
removeAxis(axis) {
|
|
71
|
+
const axisName = axis.options.name;
|
|
83
72
|
|
|
84
|
-
|
|
73
|
+
super.removeAxis(axis);
|
|
85
74
|
|
|
86
75
|
if (axis.options.vertical) {
|
|
87
76
|
this.yAxisRangeTracker.reset(axisName);
|
|
@@ -98,68 +87,68 @@ var XYPlotArea = (function (PlotAreaBase) {
|
|
|
98
87
|
if (axis === this.axisY) {
|
|
99
88
|
delete this.axisY;
|
|
100
89
|
}
|
|
101
|
-
}
|
|
90
|
+
}
|
|
102
91
|
|
|
103
92
|
// TODO: Refactor, optionally use series.pane option
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
93
|
+
seriesPaneName(series) {
|
|
94
|
+
const options = this.options;
|
|
95
|
+
const xAxisName = series.xAxis;
|
|
96
|
+
const xAxisOptions = [].concat(options.xAxis);
|
|
97
|
+
const xAxis = grep(xAxisOptions, function(a) { return a.name === xAxisName; })[0];
|
|
98
|
+
const yAxisName = series.yAxis;
|
|
99
|
+
const yAxisOptions = [].concat(options.yAxis);
|
|
100
|
+
const yAxis = grep(yAxisOptions, function(a) { return a.name === yAxisName; })[0];
|
|
101
|
+
const panes = options.panes || [ {} ];
|
|
102
|
+
const defaultPaneName = panes[0].name || "default";
|
|
103
|
+
const paneName = (xAxis || {}).pane || (yAxis || {}).pane || defaultPaneName;
|
|
115
104
|
|
|
116
105
|
return paneName;
|
|
117
|
-
}
|
|
106
|
+
}
|
|
118
107
|
|
|
119
|
-
|
|
108
|
+
createScatterChart(series, pane) {
|
|
120
109
|
if (series.length > 0) {
|
|
121
110
|
this.appendChart(
|
|
122
111
|
new ScatterChart(this, { series: series, clip: pane.options.clip }),
|
|
123
112
|
pane
|
|
124
113
|
);
|
|
125
114
|
}
|
|
126
|
-
}
|
|
115
|
+
}
|
|
127
116
|
|
|
128
|
-
|
|
117
|
+
createScatterLineChart(series, pane) {
|
|
129
118
|
if (series.length > 0) {
|
|
130
119
|
this.appendChart(
|
|
131
120
|
new ScatterLineChart(this, { series: series, clip: pane.options.clip }),
|
|
132
121
|
pane
|
|
133
122
|
);
|
|
134
123
|
}
|
|
135
|
-
}
|
|
124
|
+
}
|
|
136
125
|
|
|
137
|
-
|
|
126
|
+
createBubbleChart(series, pane) {
|
|
138
127
|
if (series.length > 0) {
|
|
139
128
|
this.appendChart(
|
|
140
129
|
new BubbleChart(this, { series: series, clip: pane.options.clip }),
|
|
141
130
|
pane
|
|
142
131
|
);
|
|
143
132
|
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
for (
|
|
159
|
-
|
|
160
|
-
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
createXYAxis(options, vertical, axisIndex) {
|
|
136
|
+
const axisName = options.name;
|
|
137
|
+
const namedAxes = vertical ? this.namedYAxes : this.namedXAxes;
|
|
138
|
+
const tracker = vertical ? this.yAxisRangeTracker : this.xAxisRangeTracker;
|
|
139
|
+
const axisOptions = deepExtend({ reverse: !vertical && this.chartService.rtl }, options, { vertical: vertical });
|
|
140
|
+
const isLog = equalsIgnoreCase(axisOptions.type, LOGARITHMIC);
|
|
141
|
+
const defaultRange = tracker.query();
|
|
142
|
+
const defaultAxisRange = isLog ? { min: 0.1, max: 1 } : { min: 0, max: 1 };
|
|
143
|
+
const range = tracker.query(axisName) || defaultRange || defaultAxisRange;
|
|
144
|
+
const typeSamples = [ axisOptions.min, axisOptions.max ];
|
|
145
|
+
const series = this.series;
|
|
146
|
+
|
|
147
|
+
for (let seriesIx = 0; seriesIx < series.length; seriesIx++) {
|
|
148
|
+
const currentSeries = series[seriesIx];
|
|
149
|
+
const seriesAxisName = currentSeries[vertical ? "yAxis" : "xAxis"];
|
|
161
150
|
if ((seriesAxisName === axisOptions.name) || (axisIndex === 0 && !seriesAxisName)) {
|
|
162
|
-
|
|
151
|
+
const firstPointValue = SeriesBinder.current.bindPoint(currentSeries, 0).valueFields;
|
|
163
152
|
typeSamples.push(firstPointValue[vertical ? "y" : "x"]);
|
|
164
153
|
|
|
165
154
|
break;
|
|
@@ -171,16 +160,16 @@ var XYPlotArea = (function (PlotAreaBase) {
|
|
|
171
160
|
range.max = Math.max(range.max, defaultRange.max);
|
|
172
161
|
}
|
|
173
162
|
|
|
174
|
-
|
|
163
|
+
let inferredDate;
|
|
175
164
|
|
|
176
|
-
for (
|
|
165
|
+
for (let i = 0; i < typeSamples.length; i++) {
|
|
177
166
|
if (typeSamples[i] instanceof Date) {
|
|
178
167
|
inferredDate = true;
|
|
179
168
|
break;
|
|
180
169
|
}
|
|
181
170
|
}
|
|
182
171
|
|
|
183
|
-
|
|
172
|
+
let axisType;
|
|
184
173
|
if (equalsIgnoreCase(axisOptions.type, DATE) || (!axisOptions.type && inferredDate)) {
|
|
185
174
|
axisType = DateValueAxis;
|
|
186
175
|
} else if (isLog) {
|
|
@@ -189,12 +178,12 @@ var XYPlotArea = (function (PlotAreaBase) {
|
|
|
189
178
|
axisType = NumericAxis;
|
|
190
179
|
}
|
|
191
180
|
|
|
192
|
-
|
|
181
|
+
const axis = new axisType(range.min, range.max, axisOptions, this.chartService);
|
|
193
182
|
axis.axisIndex = axisIndex;
|
|
194
183
|
|
|
195
184
|
if (axisName) {
|
|
196
185
|
if (namedAxes[axisName]) {
|
|
197
|
-
throw new Error(
|
|
186
|
+
throw new Error(`${ vertical ? "Y" : "X" } axis with name ${ axisName } is already defined`);
|
|
198
187
|
}
|
|
199
188
|
namedAxes[axisName] = axis;
|
|
200
189
|
}
|
|
@@ -202,47 +191,45 @@ var XYPlotArea = (function (PlotAreaBase) {
|
|
|
202
191
|
this.appendAxis(axis);
|
|
203
192
|
|
|
204
193
|
return axis;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
XYPlotArea.prototype.createAxes = function createAxes (panes) {
|
|
208
|
-
var this$1 = this;
|
|
194
|
+
}
|
|
209
195
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
196
|
+
createAxes(panes) {
|
|
197
|
+
const options = this.options;
|
|
198
|
+
const xAxesOptions = [].concat(options.xAxis);
|
|
199
|
+
const xAxes = [];
|
|
200
|
+
const yAxesOptions = [].concat(options.yAxis);
|
|
201
|
+
const yAxes = [];
|
|
215
202
|
|
|
216
|
-
for (
|
|
217
|
-
|
|
203
|
+
for (let idx = 0; idx < xAxesOptions.length; idx++) {
|
|
204
|
+
const axisPane = this.findPane(xAxesOptions[idx].pane);
|
|
218
205
|
if (inArray(axisPane, panes)) {
|
|
219
|
-
xAxes.push(this
|
|
206
|
+
xAxes.push(this.createXYAxis(xAxesOptions[idx], false, idx));
|
|
220
207
|
}
|
|
221
208
|
}
|
|
222
209
|
|
|
223
|
-
for (
|
|
224
|
-
|
|
225
|
-
if (inArray(axisPane
|
|
226
|
-
yAxes.push(this
|
|
210
|
+
for (let idx = 0; idx < yAxesOptions.length; idx++) {
|
|
211
|
+
const axisPane = this.findPane(yAxesOptions[idx].pane);
|
|
212
|
+
if (inArray(axisPane, panes)) {
|
|
213
|
+
yAxes.push(this.createXYAxis(yAxesOptions[idx], true, idx));
|
|
227
214
|
}
|
|
228
215
|
}
|
|
229
216
|
|
|
230
217
|
this.axisX = this.axisX || xAxes[0];
|
|
231
218
|
this.axisY = this.axisY || yAxes[0];
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
for (
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
_dispatchEvent(chart, e, eventType) {
|
|
222
|
+
const coords = chart._eventCoordinates(e);
|
|
223
|
+
const point = new Point(coords.x, coords.y);
|
|
224
|
+
const allAxes = this.axes;
|
|
225
|
+
const length = allAxes.length;
|
|
226
|
+
const xValues = [];
|
|
227
|
+
const yValues = [];
|
|
228
|
+
|
|
229
|
+
for (let i = 0; i < length; i++) {
|
|
230
|
+
const axis = allAxes[i];
|
|
231
|
+
const values = axis.options.vertical ? yValues : xValues;
|
|
232
|
+
const currentValue = axis.getValue(point);
|
|
246
233
|
if (currentValue !== null) {
|
|
247
234
|
values.push(currentValue);
|
|
248
235
|
}
|
|
@@ -256,23 +243,23 @@ var XYPlotArea = (function (PlotAreaBase) {
|
|
|
256
243
|
y: singleItemOrArray(yValues)
|
|
257
244
|
});
|
|
258
245
|
}
|
|
259
|
-
}
|
|
246
|
+
}
|
|
260
247
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
248
|
+
updateAxisOptions(axis, options) {
|
|
249
|
+
const vertical = axis.options.vertical;
|
|
250
|
+
const axes = this.groupAxes(this.panes);
|
|
251
|
+
const index = (vertical ? axes.y : axes.x).indexOf(axis);
|
|
265
252
|
|
|
266
253
|
updateAxisOptions(this.options, index, vertical, options);
|
|
267
254
|
updateAxisOptions(this.originalOptions, index, vertical, options);
|
|
268
|
-
}
|
|
255
|
+
}
|
|
269
256
|
|
|
270
|
-
|
|
271
|
-
|
|
257
|
+
trendlineFactory(options, series) {
|
|
258
|
+
const seriesValues = this.seriesValues.bind(this, series.index);
|
|
272
259
|
|
|
273
|
-
|
|
274
|
-
options
|
|
275
|
-
seriesValues
|
|
260
|
+
const trendline = trendlineFactory(scatterTrendlineRegistry, options.type, {
|
|
261
|
+
options,
|
|
262
|
+
seriesValues
|
|
276
263
|
});
|
|
277
264
|
|
|
278
265
|
if (trendline) {
|
|
@@ -282,27 +269,23 @@ var XYPlotArea = (function (PlotAreaBase) {
|
|
|
282
269
|
}
|
|
283
270
|
|
|
284
271
|
return trendline;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
XYPlotArea.prototype.seriesValues = function seriesValues (seriesIx) {
|
|
288
|
-
var this$1 = this;
|
|
272
|
+
}
|
|
289
273
|
|
|
290
|
-
|
|
291
|
-
|
|
274
|
+
seriesValues(seriesIx) {
|
|
275
|
+
const result = [];
|
|
276
|
+
const currentSeries = this.series[seriesIx];
|
|
292
277
|
|
|
293
|
-
for (
|
|
294
|
-
|
|
295
|
-
result.push({ pointIx
|
|
278
|
+
for (let pointIx = 0; pointIx < currentSeries.data.length; pointIx++) {
|
|
279
|
+
const data = this.bindPoint(currentSeries, pointIx);
|
|
280
|
+
result.push({ pointIx, valueFields: data.valueFields });
|
|
296
281
|
}
|
|
297
282
|
|
|
298
283
|
return result;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
return XYPlotArea;
|
|
302
|
-
}(PlotAreaBase));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
303
286
|
|
|
304
287
|
function updateAxisOptions(targetOptions, axisIndex, vertical, options) {
|
|
305
|
-
|
|
288
|
+
const axisOptions = ([].concat(vertical ? targetOptions.yAxis : targetOptions.xAxis))[axisIndex];
|
|
306
289
|
deepExtend(axisOptions, options);
|
|
307
290
|
}
|
|
308
291
|
|
|
@@ -6,18 +6,10 @@ import { SMOOTH, INTERPOLATE, ZERO, GAP } from '../constants';
|
|
|
6
6
|
|
|
7
7
|
import hasValue from '../utils/has-value';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if ( PolarLineChart ) PolarAreaChart.__proto__ = PolarLineChart;
|
|
15
|
-
PolarAreaChart.prototype = Object.create( PolarLineChart && PolarLineChart.prototype );
|
|
16
|
-
PolarAreaChart.prototype.constructor = PolarAreaChart;
|
|
17
|
-
|
|
18
|
-
PolarAreaChart.prototype.createSegment = function createSegment (linePoints, currentSeries, seriesIx) {
|
|
19
|
-
var style = (currentSeries.line || {}).style;
|
|
20
|
-
var segment;
|
|
9
|
+
class PolarAreaChart extends PolarLineChart {
|
|
10
|
+
createSegment(linePoints, currentSeries, seriesIx) {
|
|
11
|
+
const style = (currentSeries.line || {}).style;
|
|
12
|
+
let segment;
|
|
21
13
|
|
|
22
14
|
if (style === SMOOTH) {
|
|
23
15
|
segment = new SplinePolarAreaSegment(linePoints, currentSeries, seriesIx);
|
|
@@ -25,10 +17,10 @@ var PolarAreaChart = (function (PolarLineChart) {
|
|
|
25
17
|
segment = new PolarAreaSegment(linePoints, currentSeries, seriesIx);
|
|
26
18
|
}
|
|
27
19
|
return segment;
|
|
28
|
-
}
|
|
20
|
+
}
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
createMissingValue(value, missingValues) {
|
|
23
|
+
let missingValue;
|
|
32
24
|
|
|
33
25
|
if (hasValue(value.x) && missingValues !== INTERPOLATE) {
|
|
34
26
|
missingValue = {
|
|
@@ -41,35 +33,31 @@ var PolarAreaChart = (function (PolarLineChart) {
|
|
|
41
33
|
}
|
|
42
34
|
|
|
43
35
|
return missingValue;
|
|
44
|
-
}
|
|
36
|
+
}
|
|
45
37
|
|
|
46
|
-
|
|
38
|
+
seriesMissingValues(series) {
|
|
47
39
|
return series.missingValues || ZERO;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
PolarAreaChart.prototype._hasMissingValuesGap = function _hasMissingValuesGap () {
|
|
51
|
-
var this$1 = this;
|
|
40
|
+
}
|
|
52
41
|
|
|
53
|
-
|
|
42
|
+
_hasMissingValuesGap() {
|
|
43
|
+
const series = this.options.series;
|
|
54
44
|
|
|
55
|
-
for (
|
|
56
|
-
if (this
|
|
45
|
+
for (let idx = 0; idx < series.length; idx++) {
|
|
46
|
+
if (this.seriesMissingValues(series[idx]) === GAP) {
|
|
57
47
|
return true;
|
|
58
48
|
}
|
|
59
49
|
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
PolarAreaChart.prototype.sortPoints = function sortPoints (points) {
|
|
63
|
-
var this$1 = this;
|
|
50
|
+
}
|
|
64
51
|
|
|
52
|
+
sortPoints(points) {
|
|
65
53
|
points.sort(xComparer);
|
|
66
54
|
|
|
67
55
|
if (this._hasMissingValuesGap()) {
|
|
68
|
-
for (
|
|
69
|
-
|
|
56
|
+
for (let idx = 0; idx < points.length; idx++) {
|
|
57
|
+
const point = points[idx];
|
|
70
58
|
if (point) {
|
|
71
|
-
|
|
72
|
-
if (!hasValue(value.y) && this
|
|
59
|
+
const value = point.value;
|
|
60
|
+
if (!hasValue(value.y) && this.seriesMissingValues(point.series) === GAP) {
|
|
73
61
|
delete points[idx];
|
|
74
62
|
}
|
|
75
63
|
}
|
|
@@ -77,10 +65,8 @@ var PolarAreaChart = (function (PolarLineChart) {
|
|
|
77
65
|
}
|
|
78
66
|
|
|
79
67
|
return points;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return PolarAreaChart;
|
|
83
|
-
}(PolarLineChart));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
84
70
|
|
|
85
71
|
function xComparer(a, b) {
|
|
86
72
|
return a.value.x - b.value.x;
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import { geometry as geom } from '@progress/kendo-drawing';
|
|
2
2
|
import AreaSegment from '../area-chart/area-segment';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if ( AreaSegment ) PolarAreaSegment.__proto__ = AreaSegment;
|
|
10
|
-
PolarAreaSegment.prototype = Object.create( AreaSegment && AreaSegment.prototype );
|
|
11
|
-
PolarAreaSegment.prototype.constructor = PolarAreaSegment;
|
|
12
|
-
|
|
13
|
-
PolarAreaSegment.prototype.fillToAxes = function fillToAxes (fillPath) {
|
|
14
|
-
var polarAxis = this.parent.plotArea.polarAxis;
|
|
15
|
-
var center = polarAxis.box.center();
|
|
16
|
-
var centerSegment = new geom.Segment([ center.x, center.y ]);
|
|
4
|
+
class PolarAreaSegment extends AreaSegment {
|
|
5
|
+
fillToAxes(fillPath) {
|
|
6
|
+
const polarAxis = this.parent.plotArea.polarAxis;
|
|
7
|
+
const center = polarAxis.box.center();
|
|
8
|
+
const centerSegment = new geom.Segment([ center.x, center.y ]);
|
|
17
9
|
|
|
18
10
|
fillPath.segments.unshift(centerSegment);
|
|
19
11
|
fillPath.segments.push(centerSegment);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return PolarAreaSegment;
|
|
23
|
-
}(AreaSegment));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
24
14
|
|
|
25
15
|
export default PolarAreaSegment;
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import SplineAreaSegment from '../area-chart/spline-area-segment';
|
|
2
2
|
import { CurveProcessor } from '../../core';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
if ( SplineAreaSegment ) SplinePolarAreaSegment.__proto__ = SplineAreaSegment;
|
|
10
|
-
SplinePolarAreaSegment.prototype = Object.create( SplineAreaSegment && SplineAreaSegment.prototype );
|
|
11
|
-
SplinePolarAreaSegment.prototype.constructor = SplinePolarAreaSegment;
|
|
12
|
-
|
|
13
|
-
SplinePolarAreaSegment.prototype.fillToAxes = function fillToAxes (fillPath) {
|
|
14
|
-
var center = this._polarAxisCenter();
|
|
4
|
+
class SplinePolarAreaSegment extends SplineAreaSegment {
|
|
5
|
+
fillToAxes(fillPath) {
|
|
6
|
+
const center = this._polarAxisCenter();
|
|
15
7
|
fillPath.lineTo(center.x, center.y);
|
|
16
|
-
}
|
|
8
|
+
}
|
|
17
9
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
_polarAxisCenter() {
|
|
11
|
+
const polarAxis = this.parent.plotArea.polarAxis;
|
|
12
|
+
const center = polarAxis.box.center();
|
|
21
13
|
return center;
|
|
22
|
-
}
|
|
14
|
+
}
|
|
23
15
|
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
strokeSegments() {
|
|
17
|
+
let segments = this._strokeSegments;
|
|
26
18
|
|
|
27
19
|
if (!segments) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
const center = this._polarAxisCenter();
|
|
21
|
+
const curveProcessor = new CurveProcessor(false);
|
|
22
|
+
const linePoints = this.points();
|
|
31
23
|
|
|
32
24
|
linePoints.push(center);
|
|
33
25
|
segments = this._strokeSegments = curveProcessor.process(linePoints);
|
|
@@ -35,9 +27,7 @@ var SplinePolarAreaSegment = (function (SplineAreaSegment) {
|
|
|
35
27
|
}
|
|
36
28
|
|
|
37
29
|
return segments;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return SplinePolarAreaSegment;
|
|
41
|
-
}(SplineAreaSegment));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
42
32
|
|
|
43
33
|
export default SplinePolarAreaSegment;
|
|
@@ -3,17 +3,8 @@ import PolarScatterChart from '../polar-scatter-chart/polar-scatter-chart';
|
|
|
3
3
|
|
|
4
4
|
import { setDefaultOptions } from '../../common';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
ScatterLineChart.apply(this, arguments);
|
|
9
|
-
}if ( ScatterLineChart ) PolarLineChart.__proto__ = ScatterLineChart;
|
|
10
|
-
PolarLineChart.prototype = Object.create( ScatterLineChart && ScatterLineChart.prototype );
|
|
11
|
-
PolarLineChart.prototype.constructor = PolarLineChart;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return PolarLineChart;
|
|
16
|
-
}(ScatterLineChart));
|
|
6
|
+
class PolarLineChart extends ScatterLineChart {
|
|
7
|
+
}
|
|
17
8
|
|
|
18
9
|
PolarLineChart.prototype.pointSlot = PolarScatterChart.prototype.pointSlot;
|
|
19
10
|
|
|
@@ -4,24 +4,14 @@ import { Point, Box } from '../../core';
|
|
|
4
4
|
|
|
5
5
|
import { setDefaultOptions } from '../../common';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if ( ScatterChart ) PolarScatterChart.__proto__ = ScatterChart;
|
|
13
|
-
PolarScatterChart.prototype = Object.create( ScatterChart && ScatterChart.prototype );
|
|
14
|
-
PolarScatterChart.prototype.constructor = PolarScatterChart;
|
|
15
|
-
|
|
16
|
-
PolarScatterChart.prototype.pointSlot = function pointSlot (slotX, slotY) {
|
|
17
|
-
var valueRadius = slotX.center.y - slotY.y1;
|
|
18
|
-
var slot = Point.onCircle(slotX.center, slotX.startAngle, valueRadius);
|
|
7
|
+
class PolarScatterChart extends ScatterChart {
|
|
8
|
+
pointSlot(slotX, slotY) {
|
|
9
|
+
const valueRadius = slotX.center.y - slotY.y1;
|
|
10
|
+
const slot = Point.onCircle(slotX.center, slotX.startAngle, valueRadius);
|
|
19
11
|
|
|
20
12
|
return new Box(slot.x, slot.y, slot.x, slot.y);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return PolarScatterChart;
|
|
24
|
-
}(ScatterChart));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
25
15
|
|
|
26
16
|
setDefaultOptions(PolarScatterChart, {
|
|
27
17
|
clip: false
|