@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
|
@@ -5,9 +5,9 @@ import evalOptions from '../utils/eval-options';
|
|
|
5
5
|
import colorScale from './color-scale';
|
|
6
6
|
import HeatmapPoint from './heatmap-point';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
class HeatmapChart extends ChartElement {
|
|
9
|
+
constructor(plotArea, options) {
|
|
10
|
+
super(options);
|
|
11
11
|
|
|
12
12
|
this.plotArea = plotArea;
|
|
13
13
|
this.chartService = plotArea.chartService;
|
|
@@ -16,44 +16,36 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
16
16
|
this.render();
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
HeatmapChart.prototype = Object.create( ChartElement && ChartElement.prototype );
|
|
21
|
-
HeatmapChart.prototype.constructor = HeatmapChart;
|
|
22
|
-
|
|
23
|
-
HeatmapChart.prototype._initFields = function _initFields () {
|
|
19
|
+
_initFields() {
|
|
24
20
|
this.points = [];
|
|
25
21
|
this.seriesOptions = [];
|
|
26
22
|
this.valueRange = { min: MAX_VALUE, max: MIN_VALUE };
|
|
27
23
|
this._evalSeries = [];
|
|
28
|
-
}
|
|
24
|
+
}
|
|
29
25
|
|
|
30
|
-
|
|
26
|
+
render() {
|
|
31
27
|
this.setRange();
|
|
32
28
|
this.traverseDataPoints(this.addValue.bind(this));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
HeatmapChart.prototype.setRange = function setRange () {
|
|
36
|
-
var this$1 = this;
|
|
29
|
+
}
|
|
37
30
|
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
setRange() {
|
|
32
|
+
const { options: { series } } = this;
|
|
40
33
|
|
|
41
|
-
for (
|
|
42
|
-
|
|
34
|
+
for (let seriesIx = 0; seriesIx < series.length; seriesIx++) {
|
|
35
|
+
const currentSeries = series[seriesIx];
|
|
43
36
|
|
|
44
|
-
for (
|
|
45
|
-
|
|
46
|
-
var valueFields = ref$1.valueFields;
|
|
37
|
+
for (let pointIx = 0; pointIx < currentSeries.data.length; pointIx++) {
|
|
38
|
+
const { valueFields } = this.plotArea.bindPoint(currentSeries, pointIx);
|
|
47
39
|
if (defined(valueFields.value) && valueFields.value !== null) {
|
|
48
|
-
this
|
|
49
|
-
this
|
|
40
|
+
this.valueRange.min = Math.min(this.valueRange.min, valueFields.value);
|
|
41
|
+
this.valueRange.max = Math.max(this.valueRange.max, valueFields.value);
|
|
50
42
|
}
|
|
51
43
|
}
|
|
52
44
|
}
|
|
53
|
-
}
|
|
45
|
+
}
|
|
54
46
|
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
addValue(value, fields) {
|
|
48
|
+
let point;
|
|
57
49
|
if (value && defined(value.value) && value.value !== null) {
|
|
58
50
|
point = this.createPoint(value, fields);
|
|
59
51
|
if (point) {
|
|
@@ -62,12 +54,11 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
62
54
|
}
|
|
63
55
|
|
|
64
56
|
this.points.push(point);
|
|
65
|
-
}
|
|
57
|
+
}
|
|
66
58
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
var state = {
|
|
59
|
+
evalPointOptions(options, value, fields) {
|
|
60
|
+
const { series, seriesIx } = fields;
|
|
61
|
+
const state = {
|
|
71
62
|
defaults: series._defaults,
|
|
72
63
|
excluded: [
|
|
73
64
|
"data", "tooltip", "content", "template",
|
|
@@ -76,12 +67,12 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
76
67
|
]
|
|
77
68
|
};
|
|
78
69
|
|
|
79
|
-
|
|
70
|
+
let doEval = this._evalSeries[seriesIx];
|
|
80
71
|
if (!defined(doEval)) {
|
|
81
72
|
this._evalSeries[seriesIx] = doEval = evalOptions(options, {}, state, true);
|
|
82
73
|
}
|
|
83
74
|
|
|
84
|
-
|
|
75
|
+
let pointOptions = options;
|
|
85
76
|
if (doEval) {
|
|
86
77
|
pointOptions = deepExtend({}, options);
|
|
87
78
|
evalOptions(pointOptions, {
|
|
@@ -94,16 +85,16 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
94
85
|
}
|
|
95
86
|
|
|
96
87
|
return pointOptions;
|
|
97
|
-
}
|
|
88
|
+
}
|
|
98
89
|
|
|
99
|
-
|
|
90
|
+
pointType() {
|
|
100
91
|
return HeatmapPoint;
|
|
101
|
-
}
|
|
92
|
+
}
|
|
102
93
|
|
|
103
|
-
|
|
104
|
-
|
|
94
|
+
pointOptions(series, seriesIx) {
|
|
95
|
+
let options = this.seriesOptions[seriesIx];
|
|
105
96
|
if (!options) {
|
|
106
|
-
|
|
97
|
+
const defaults = this.pointType().prototype.defaults;
|
|
107
98
|
this.seriesOptions[seriesIx] = options = deepExtend({}, defaults, {
|
|
108
99
|
markers: {
|
|
109
100
|
opacity: series.opacity
|
|
@@ -118,12 +109,12 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
118
109
|
}
|
|
119
110
|
|
|
120
111
|
return Object.assign({}, options);
|
|
121
|
-
}
|
|
112
|
+
}
|
|
122
113
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
114
|
+
createPoint(value, fields) {
|
|
115
|
+
const series = fields.series;
|
|
116
|
+
let pointOptions = this.pointOptions(series, fields.seriesIx);
|
|
117
|
+
let color = fields.color || series.color;
|
|
127
118
|
|
|
128
119
|
pointOptions.pattern = fields.pattern || pointOptions.pattern;
|
|
129
120
|
pointOptions = this.evalPointOptions(pointOptions, value, fields);
|
|
@@ -131,24 +122,23 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
131
122
|
if (isFunction(series.color)) {
|
|
132
123
|
color = pointOptions.color;
|
|
133
124
|
} else if (this.valueRange.max !== 0) {
|
|
134
|
-
|
|
125
|
+
const scale = colorScale(color);
|
|
135
126
|
color = scale(value.value / this.valueRange.max);
|
|
136
127
|
}
|
|
137
128
|
|
|
138
|
-
|
|
129
|
+
const point = new HeatmapPoint(value, pointOptions);
|
|
139
130
|
point.color = color;
|
|
140
131
|
|
|
141
132
|
this.append(point);
|
|
142
133
|
|
|
143
134
|
return point;
|
|
144
|
-
}
|
|
135
|
+
}
|
|
145
136
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
var yAxis = yAxisName ? plotArea.namedYAxes[yAxisName] : plotArea.axisY;
|
|
137
|
+
seriesAxes(series) {
|
|
138
|
+
const { xAxis: xAxisName, yAxis: yAxisName } = series;
|
|
139
|
+
const plotArea = this.plotArea;
|
|
140
|
+
const xAxis = xAxisName ? plotArea.namedXAxes[xAxisName] : plotArea.axisX;
|
|
141
|
+
const yAxis = yAxisName ? plotArea.namedYAxes[yAxisName] : plotArea.axisY;
|
|
152
142
|
|
|
153
143
|
if (!xAxis) {
|
|
154
144
|
throw new Error("Unable to locate X axis with name " + xAxisName);
|
|
@@ -158,30 +148,26 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
158
148
|
throw new Error("Unable to locate Y axis with name " + yAxisName);
|
|
159
149
|
}
|
|
160
150
|
|
|
161
|
-
return { xAxis
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
HeatmapChart.prototype.reflow = function reflow (targetBox) {
|
|
165
|
-
var this$1 = this;
|
|
151
|
+
return { xAxis, yAxis };
|
|
152
|
+
}
|
|
166
153
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
154
|
+
reflow(targetBox) {
|
|
155
|
+
const chartPoints = this.points;
|
|
156
|
+
const limit = !this.options.clip;
|
|
157
|
+
let pointIx = 0;
|
|
170
158
|
|
|
171
159
|
|
|
172
|
-
this.traverseDataPoints(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
var slotX = xAxis.getSlot(indexX, indexX, limit);
|
|
180
|
-
var slotY = yAxis.getSlot(indexY, indexY, limit);
|
|
160
|
+
this.traverseDataPoints((value, fields) => {
|
|
161
|
+
const point = chartPoints[pointIx++];
|
|
162
|
+
const { xAxis, yAxis } = this.seriesAxes(fields.series);
|
|
163
|
+
const indexX = xAxis.categoryIndex(value.x);
|
|
164
|
+
const indexY = yAxis.categoryIndex(value.y);
|
|
165
|
+
const slotX = xAxis.getSlot(indexX, indexX, limit);
|
|
166
|
+
const slotY = yAxis.getSlot(indexY, indexY, limit);
|
|
181
167
|
|
|
182
168
|
if (point) {
|
|
183
169
|
if (slotX && slotY) {
|
|
184
|
-
|
|
170
|
+
const pointSlot = this.pointSlot(slotX, slotY);
|
|
185
171
|
point.reflow(pointSlot);
|
|
186
172
|
} else {
|
|
187
173
|
point.visible = false;
|
|
@@ -190,34 +176,27 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
190
176
|
});
|
|
191
177
|
|
|
192
178
|
this.box = targetBox;
|
|
193
|
-
}
|
|
179
|
+
}
|
|
194
180
|
|
|
195
|
-
|
|
181
|
+
pointSlot(slotX, slotY) {
|
|
196
182
|
return new Box(slotX.x1, slotY.y1, slotX.x2, slotY.y2);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
var ref$2 = this$1.plotArea.bindPoint(currentSeries, pointIx);
|
|
215
|
-
var value = ref$2.valueFields;
|
|
216
|
-
var fields = ref$2.fields;
|
|
217
|
-
var xIndex = xAxis.totalIndex(value.x);
|
|
218
|
-
var yIndex = yAxis.totalIndex(value.y);
|
|
219
|
-
var xIn = xRange.min <= xIndex && xIndex <= xRange.max;
|
|
220
|
-
var yIn = yRange.min <= yIndex && yIndex <= yRange.max;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
traverseDataPoints(callback) {
|
|
186
|
+
const { options: { series } } = this;
|
|
187
|
+
|
|
188
|
+
for (let seriesIx = 0; seriesIx < series.length; seriesIx++) {
|
|
189
|
+
const currentSeries = series[seriesIx];
|
|
190
|
+
const { xAxis, yAxis } = this.seriesAxes(currentSeries);
|
|
191
|
+
const xRange = xAxis.currentRangeIndices();
|
|
192
|
+
const yRange = yAxis.currentRangeIndices();
|
|
193
|
+
|
|
194
|
+
for (let pointIx = 0; pointIx < currentSeries.data.length; pointIx++) {
|
|
195
|
+
const { valueFields: value, fields } = this.plotArea.bindPoint(currentSeries, pointIx);
|
|
196
|
+
const xIndex = xAxis.totalIndex(value.x);
|
|
197
|
+
const yIndex = yAxis.totalIndex(value.y);
|
|
198
|
+
const xIn = xRange.min <= xIndex && xIndex <= xRange.max;
|
|
199
|
+
const yIn = yRange.min <= yIndex && yIndex <= yRange.max;
|
|
221
200
|
|
|
222
201
|
if (xIn && yIn) {
|
|
223
202
|
callback(value, deepExtend({
|
|
@@ -225,29 +204,27 @@ var HeatmapChart = (function (ChartElement) {
|
|
|
225
204
|
series: currentSeries,
|
|
226
205
|
seriesIx: seriesIx,
|
|
227
206
|
dataItem: currentSeries.data[pointIx],
|
|
228
|
-
owner: this
|
|
207
|
+
owner: this
|
|
229
208
|
}, fields));
|
|
230
209
|
}
|
|
231
210
|
}
|
|
232
211
|
}
|
|
233
|
-
}
|
|
212
|
+
}
|
|
234
213
|
|
|
235
|
-
|
|
236
|
-
|
|
214
|
+
formatPointValue(point, format) {
|
|
215
|
+
const value = point.value;
|
|
237
216
|
return this.chartService.format.auto(format, value.x, value.y, value.value);
|
|
238
|
-
}
|
|
217
|
+
}
|
|
239
218
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
for (
|
|
219
|
+
animationPoints() {
|
|
220
|
+
const points = this.points;
|
|
221
|
+
const result = [];
|
|
222
|
+
for (let idx = 0; idx < points.length; idx++) {
|
|
244
223
|
result.push((points[idx] || {}).marker);
|
|
245
224
|
}
|
|
246
225
|
return result;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
return HeatmapChart;
|
|
250
|
-
}(ChartElement));
|
|
226
|
+
}
|
|
227
|
+
}
|
|
251
228
|
setDefaultOptions(HeatmapChart, {
|
|
252
229
|
series: [],
|
|
253
230
|
tooltip: {
|
|
@@ -6,20 +6,16 @@ import AccessibilityAttributesMixin from '../mixins/accessibility-attributes-mix
|
|
|
6
6
|
import NoteMixin from '../mixins/note-mixin';
|
|
7
7
|
import PointEventsMixin from '../mixins/point-events-mixin';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
class HeatmapPoint extends ChartElement {
|
|
10
|
+
constructor(value, options) {
|
|
11
|
+
super();
|
|
12
12
|
|
|
13
13
|
this.options = options;
|
|
14
14
|
this.color = options.color || WHITE;
|
|
15
15
|
this.value = value;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
HeatmapPoint.prototype = Object.create( ChartElement && ChartElement.prototype );
|
|
20
|
-
HeatmapPoint.prototype.constructor = HeatmapPoint;
|
|
21
|
-
|
|
22
|
-
HeatmapPoint.prototype.render = function render () {
|
|
18
|
+
render() {
|
|
23
19
|
if (this._rendered) {
|
|
24
20
|
return;
|
|
25
21
|
}
|
|
@@ -29,20 +25,20 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
29
25
|
this.createMarker();
|
|
30
26
|
this.createLabel();
|
|
31
27
|
this.createNote();
|
|
32
|
-
}
|
|
28
|
+
}
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
createLabel() {
|
|
31
|
+
const options = this.options;
|
|
32
|
+
const labels = options.labels;
|
|
37
33
|
|
|
38
34
|
if (labels.visible) {
|
|
39
35
|
this.label = this.createLabelElement(labels);
|
|
40
36
|
this.append(this.label);
|
|
41
37
|
}
|
|
42
|
-
}
|
|
38
|
+
}
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
createLabelElement(options) {
|
|
41
|
+
let labelColor = options.color;
|
|
46
42
|
|
|
47
43
|
if (!labelColor) {
|
|
48
44
|
labelColor = autoTextColor(this.color);
|
|
@@ -63,26 +59,26 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
63
59
|
}),
|
|
64
60
|
this.pointData()
|
|
65
61
|
);
|
|
66
|
-
}
|
|
62
|
+
}
|
|
67
63
|
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
getLabelText(options) {
|
|
65
|
+
let labelTemplate = getTemplate(options);
|
|
70
66
|
|
|
71
67
|
if (labelTemplate) {
|
|
72
68
|
return labelTemplate(this.pointData());
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
return this.formatValue(options.format);
|
|
76
|
-
}
|
|
72
|
+
}
|
|
77
73
|
|
|
78
|
-
|
|
74
|
+
formatValue(format) {
|
|
79
75
|
return this.owner.formatPointValue(this, format);
|
|
80
|
-
}
|
|
76
|
+
}
|
|
81
77
|
|
|
82
|
-
|
|
78
|
+
reflow(targetBox) {
|
|
83
79
|
this.render();
|
|
84
80
|
|
|
85
|
-
|
|
81
|
+
const label = this.label;
|
|
86
82
|
|
|
87
83
|
this.box = targetBox;
|
|
88
84
|
|
|
@@ -95,26 +91,26 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
95
91
|
}
|
|
96
92
|
|
|
97
93
|
this.marker.reflow(this.markerBox());
|
|
98
|
-
}
|
|
94
|
+
}
|
|
99
95
|
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
createVisual() {
|
|
97
|
+
super.createVisual();
|
|
102
98
|
|
|
103
99
|
this.addAccessibilityAttributesToVisual();
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
markerBox() {
|
|
103
|
+
const options = this.options;
|
|
104
|
+
const markers = options.markers;
|
|
105
|
+
const border = markers.border;
|
|
106
|
+
const rect = this.box.toRect();
|
|
107
|
+
const type = valueOrDefault(markers.type, 'rect');
|
|
108
|
+
const isRoundRect = type === ROUNDED_RECT;
|
|
109
|
+
let borderWidth = valueOrDefault(border.width, isRoundRect ? 1 : 0);
|
|
110
|
+
const halfBorderWidth = Math.round(borderWidth / 2);
|
|
115
111
|
|
|
116
112
|
if (markers.size) {
|
|
117
|
-
|
|
113
|
+
const center = rect.center();
|
|
118
114
|
rect.size.width = rect.size.height = markers.size;
|
|
119
115
|
rect.origin.x = Math.round(center.x - rect.size.width / 2);
|
|
120
116
|
rect.origin.y = Math.round(center.y - rect.size.height / 2);
|
|
@@ -126,13 +122,13 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
126
122
|
rect.origin.x += halfBorderWidth + 0.5;
|
|
127
123
|
|
|
128
124
|
return rectToBox(rect);
|
|
129
|
-
}
|
|
125
|
+
}
|
|
130
126
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
127
|
+
markerBorder() {
|
|
128
|
+
const options = this.options;
|
|
129
|
+
const markers = options.markers;
|
|
130
|
+
const border = markers.border;
|
|
131
|
+
const opacity = valueOrDefault(border.opacity, options.opacity);
|
|
136
132
|
|
|
137
133
|
return {
|
|
138
134
|
color: border.color || this.color,
|
|
@@ -140,12 +136,12 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
140
136
|
opacity: opacity,
|
|
141
137
|
dashType: border.dashType
|
|
142
138
|
};
|
|
143
|
-
}
|
|
139
|
+
}
|
|
144
140
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
createMarker() {
|
|
142
|
+
const options = this.options;
|
|
143
|
+
const markerOptions = options.markers;
|
|
144
|
+
const marker = new ShapeElement({
|
|
149
145
|
type: valueOrDefault(markerOptions.type, 'rect'),
|
|
150
146
|
width: markerOptions.size,
|
|
151
147
|
height: markerOptions.size,
|
|
@@ -167,13 +163,13 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
167
163
|
|
|
168
164
|
this.marker = marker;
|
|
169
165
|
this.append(marker);
|
|
170
|
-
}
|
|
166
|
+
}
|
|
171
167
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
168
|
+
createHighlight(style) {
|
|
169
|
+
const options = this.options;
|
|
170
|
+
const markerOptions = this.options.highlight.markers || this.options.markers;
|
|
175
171
|
|
|
176
|
-
|
|
172
|
+
const highlight = new ShapeElement({
|
|
177
173
|
type: valueOrDefault(markerOptions.type, 'rect'),
|
|
178
174
|
width: markerOptions.size,
|
|
179
175
|
height: markerOptions.size,
|
|
@@ -186,31 +182,31 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
186
182
|
});
|
|
187
183
|
|
|
188
184
|
highlight.reflow(this.markerBox());
|
|
189
|
-
|
|
185
|
+
const visual = highlight.getElement();
|
|
190
186
|
|
|
191
187
|
visual.options.fill = style.fill;
|
|
192
188
|
visual.options.stroke = style.stroke;
|
|
193
189
|
|
|
194
190
|
return visual;
|
|
195
|
-
}
|
|
191
|
+
}
|
|
196
192
|
|
|
197
|
-
|
|
193
|
+
highlightVisual() {
|
|
198
194
|
return this.rectVisual;
|
|
199
|
-
}
|
|
195
|
+
}
|
|
200
196
|
|
|
201
|
-
|
|
197
|
+
highlightVisualArgs() {
|
|
202
198
|
return {
|
|
203
199
|
options: this.options,
|
|
204
200
|
rect: this.box.toRect(),
|
|
205
201
|
visual: this.rectVisual
|
|
206
202
|
};
|
|
207
|
-
}
|
|
203
|
+
}
|
|
208
204
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
205
|
+
createFocusHighlight() {
|
|
206
|
+
const markerOptions = this.options.markers;
|
|
207
|
+
const highlightOptions = this.options.focusHighlight;
|
|
212
208
|
|
|
213
|
-
|
|
209
|
+
const highlight = new ShapeElement({
|
|
214
210
|
type: valueOrDefault(markerOptions.type, 'rect'),
|
|
215
211
|
width: markerOptions.size,
|
|
216
212
|
height: markerOptions.size,
|
|
@@ -225,11 +221,11 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
225
221
|
highlight.reflow(this.markerBox());
|
|
226
222
|
|
|
227
223
|
return highlight.getElement();
|
|
228
|
-
}
|
|
224
|
+
}
|
|
229
225
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
226
|
+
tooltipAnchor() {
|
|
227
|
+
const left = this.box.center().x;
|
|
228
|
+
const top = this.box.y1 - TOOLTIP_OFFSET;
|
|
233
229
|
|
|
234
230
|
return {
|
|
235
231
|
point: new Point(left, top),
|
|
@@ -238,17 +234,17 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
238
234
|
vertical: BOTTOM
|
|
239
235
|
}
|
|
240
236
|
};
|
|
241
|
-
}
|
|
237
|
+
}
|
|
242
238
|
|
|
243
|
-
|
|
239
|
+
overlapsBox(box) {
|
|
244
240
|
return this.box.overlaps(box);
|
|
245
|
-
}
|
|
241
|
+
}
|
|
246
242
|
|
|
247
|
-
|
|
243
|
+
unclipElements() {
|
|
248
244
|
/* noop, clip labels */
|
|
249
|
-
}
|
|
245
|
+
}
|
|
250
246
|
|
|
251
|
-
|
|
247
|
+
pointData() {
|
|
252
248
|
return {
|
|
253
249
|
x: this.value.x,
|
|
254
250
|
y: this.value.y,
|
|
@@ -256,10 +252,8 @@ var HeatmapPoint = (function (ChartElement) {
|
|
|
256
252
|
dataItem: this.dataItem,
|
|
257
253
|
series: this.series
|
|
258
254
|
};
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
return HeatmapPoint;
|
|
262
|
-
}(ChartElement));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
263
257
|
|
|
264
258
|
deepExtend(HeatmapPoint.prototype, PointEventsMixin);
|
|
265
259
|
deepExtend(HeatmapPoint.prototype, NoteMixin);
|