@progress/kendo-charts 1.32.1 → 1.33.0-dev.202311081130

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.
Files changed (89) hide show
  1. package/dist/cdn/js/kendo-charts.js +1 -1
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/chart/bar-chart/bar.js +40 -16
  4. package/dist/es/chart/bubble-chart/bubble.js +10 -0
  5. package/dist/es/chart/bullet-chart/bullet.js +32 -11
  6. package/dist/es/chart/candlestick-chart/candlestick.js +37 -1
  7. package/dist/es/chart/categorical-chart.js +1 -1
  8. package/dist/es/chart/chart.js +307 -26
  9. package/dist/es/chart/constants.js +12 -1
  10. package/dist/es/chart/funnel-chart/funnel-chart.js +5 -3
  11. package/dist/es/chart/funnel-chart/funnel-segment.js +62 -3
  12. package/dist/es/chart/heatmap-chart/heatmap-chart.js +2 -1
  13. package/dist/es/chart/heatmap-chart/heatmap-point.js +68 -29
  14. package/dist/es/chart/legend/legend-item.js +32 -2
  15. package/dist/es/chart/legend/legend.js +6 -1
  16. package/dist/es/chart/line-chart/line-point.js +109 -26
  17. package/dist/es/chart/mixins/accessibility-attributes-mixin.js +36 -0
  18. package/dist/es/chart/pie-chart/pie-chart.js +1 -1
  19. package/dist/es/chart/pie-chart/pie-segment.js +50 -14
  20. package/dist/es/chart/plotarea/categorical-plotarea.js +53 -2
  21. package/dist/es/chart/plotarea/funnel-plotarea.js +8 -0
  22. package/dist/es/chart/plotarea/heatmap-plotarea.js +66 -1
  23. package/dist/es/chart/plotarea/plotarea-base.js +71 -1
  24. package/dist/es/chart/plotarea/radar-plotarea.js +8 -0
  25. package/dist/es/chart/radar-bar-chart/radar-segment.js +4 -0
  26. package/dist/es/chart/range-area-chart/range-area-point.js +26 -1
  27. package/dist/es/chart/range-bar-chart/range-bar.js +3 -24
  28. package/dist/es/chart/scatter-charts/scatter-chart.js +1 -1
  29. package/dist/es/common/constants.js +6 -0
  30. package/dist/es/common/cycleDown.js +5 -0
  31. package/dist/es/common/cycleIndex.js +13 -0
  32. package/dist/es/common/cycleUp.js +3 -0
  33. package/dist/es/common.js +3 -0
  34. package/dist/es/core/chart-element.js +31 -3
  35. package/dist/es/core/shape-builder.js +1 -1
  36. package/dist/es/core/shape-element.js +3 -0
  37. package/dist/es/core/utils/add-accessibility-attributes-to-visual.js +8 -0
  38. package/dist/es/core/utils/guid.js +17 -0
  39. package/dist/es/map/layers/shape.js +0 -2
  40. package/dist/es/map/navigator.js +0 -1
  41. package/dist/es/map/scroller/user-events.js +0 -2
  42. package/dist/es/map/utils.js +0 -18
  43. package/dist/es/map/zoom.js +0 -1
  44. package/dist/es2015/chart/bar-chart/bar.js +40 -16
  45. package/dist/es2015/chart/bubble-chart/bubble.js +10 -0
  46. package/dist/es2015/chart/bullet-chart/bullet.js +32 -11
  47. package/dist/es2015/chart/candlestick-chart/candlestick.js +37 -1
  48. package/dist/es2015/chart/categorical-chart.js +1 -1
  49. package/dist/es2015/chart/chart.js +295 -26
  50. package/dist/es2015/chart/constants.js +12 -1
  51. package/dist/es2015/chart/funnel-chart/funnel-chart.js +5 -3
  52. package/dist/es2015/chart/funnel-chart/funnel-segment.js +62 -3
  53. package/dist/es2015/chart/heatmap-chart/heatmap-chart.js +2 -1
  54. package/dist/es2015/chart/heatmap-chart/heatmap-point.js +68 -29
  55. package/dist/es2015/chart/legend/legend-item.js +32 -2
  56. package/dist/es2015/chart/legend/legend.js +6 -1
  57. package/dist/es2015/chart/line-chart/line-point.js +110 -26
  58. package/dist/es2015/chart/mixins/accessibility-attributes-mixin.js +36 -0
  59. package/dist/es2015/chart/pie-chart/pie-chart.js +1 -1
  60. package/dist/es2015/chart/pie-chart/pie-segment.js +50 -14
  61. package/dist/es2015/chart/plotarea/categorical-plotarea.js +49 -2
  62. package/dist/es2015/chart/plotarea/funnel-plotarea.js +8 -0
  63. package/dist/es2015/chart/plotarea/heatmap-plotarea.js +60 -1
  64. package/dist/es2015/chart/plotarea/plotarea-base.js +67 -1
  65. package/dist/es2015/chart/plotarea/radar-plotarea.js +8 -0
  66. package/dist/es2015/chart/radar-bar-chart/radar-segment.js +4 -0
  67. package/dist/es2015/chart/range-area-chart/range-area-point.js +26 -1
  68. package/dist/es2015/chart/range-bar-chart/range-bar.js +3 -24
  69. package/dist/es2015/chart/scatter-charts/scatter-chart.js +1 -1
  70. package/dist/es2015/common/constants.js +6 -0
  71. package/dist/es2015/common/cycleDown.js +5 -0
  72. package/dist/es2015/common/cycleIndex.js +13 -0
  73. package/dist/es2015/common/cycleUp.js +3 -0
  74. package/dist/es2015/common.js +3 -0
  75. package/dist/es2015/core/chart-element.js +31 -3
  76. package/dist/es2015/core/shape-builder.js +1 -1
  77. package/dist/es2015/core/shape-element.js +3 -0
  78. package/dist/es2015/core/utils/add-accessibility-attributes-to-visual.js +8 -0
  79. package/dist/es2015/core/utils/guid.js +17 -0
  80. package/dist/es2015/map/layers/shape.js +0 -2
  81. package/dist/es2015/map/navigator.js +0 -2
  82. package/dist/es2015/map/scroller/user-events.js +0 -2
  83. package/dist/es2015/map/utils.js +0 -18
  84. package/dist/es2015/map/zoom.js +0 -2
  85. package/dist/npm/main.js +1098 -156
  86. package/dist/systemjs/kendo-charts.js +1 -1
  87. package/package.json +1 -1
  88. package/dist/es/chart/area-chart/area-segment-mixin.js +0 -91
  89. package/dist/es2015/chart/area-chart/area-segment-mixin.js +0 -91
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Kendo UI platform-independent Charts library",
4
4
  "author": "Progress",
5
5
  "license": "SEE LICENSE IN license.txt",
6
- "version": "1.32.1",
6
+ "version": "1.33.0-dev.202311081130",
7
7
  "main": "dist/npm/main.js",
8
8
  "module": "dist/es/main.js",
9
9
  "jsnext:main": "dist/es/main.js",
@@ -1,91 +0,0 @@
1
- import { drawing as draw, geometry as geom } from '@progress/kendo-drawing';
2
-
3
- import { X, Y } from '../../common/constants';
4
- import { deepExtend, isFunction, last, limitValue } from '../../common';
5
-
6
- var AreaSegmentMixin = {
7
- points: function() {
8
- var chart = this.parent;
9
- var plotArea = chart.plotArea;
10
- var invertAxes = chart.options.invertAxes;
11
- var valueAxis = chart.seriesValueAxis(this.series);
12
- var valueAxisLineBox = valueAxis.lineBox();
13
- var categoryAxis = plotArea.seriesCategoryAxis(this.series);
14
- var categoryAxisLineBox = categoryAxis.lineBox();
15
- var stackPoints = this.stackPoints;
16
- var points = this._linePoints(stackPoints);
17
- var pos = invertAxes ? X : Y;
18
- var end = invertAxes ? categoryAxisLineBox.x1 : categoryAxisLineBox.y1;
19
-
20
- end = limitValue(end, valueAxisLineBox[pos + 1], valueAxisLineBox[pos + 2]);
21
- if (!this.stackPoints && points.length > 1) {
22
- var firstPoint = points[0];
23
- var lastPoint = last(points);
24
-
25
- if (invertAxes) {
26
- points.unshift(new geom.Point(end, firstPoint.y));
27
- points.push(new geom.Point(end, lastPoint.y));
28
- } else {
29
- points.unshift(new geom.Point(firstPoint.x, end));
30
- points.push(new geom.Point(lastPoint.x, end));
31
- }
32
- }
33
-
34
- return points;
35
- },
36
-
37
- createVisual: function() {
38
- var series = this.series;
39
- var defaults = series._defaults;
40
- var color = series.color;
41
-
42
- if (isFunction(color) && defaults) {
43
- color = defaults.color;
44
- }
45
-
46
- this.visual = new draw.Group({
47
- zIndex: series.zIndex
48
- });
49
-
50
- this.createArea(color);
51
- this.createLine(color);
52
- },
53
-
54
- createLine: function(color) {
55
- var series = this.series;
56
- var lineOptions = deepExtend({
57
- color: color,
58
- opacity: series.opacity
59
- }, series.line);
60
-
61
- if (lineOptions.visible !== false && lineOptions.width > 0) {
62
- var line = draw.Path.fromPoints(this._linePoints(), {
63
- stroke: {
64
- color: lineOptions.color,
65
- width: lineOptions.width,
66
- opacity: lineOptions.opacity,
67
- dashType: lineOptions.dashType,
68
- lineCap: "butt"
69
- }
70
- });
71
-
72
- this.visual.append(line);
73
- }
74
- },
75
-
76
- createArea: function(color) {
77
- var series = this.series;
78
-
79
- var area = draw.Path.fromPoints(this.points(), {
80
- fill: {
81
- color: color,
82
- opacity: series.opacity
83
- },
84
- stroke: null
85
- });
86
-
87
- this.visual.append(area);
88
- }
89
- };
90
-
91
- export default AreaSegmentMixin;
@@ -1,91 +0,0 @@
1
- import { drawing as draw, geometry as geom } from '@progress/kendo-drawing';
2
-
3
- import { X, Y } from '../../common/constants';
4
- import { deepExtend, isFunction, last, limitValue } from '../../common';
5
-
6
- const AreaSegmentMixin = {
7
- points: function() {
8
- const chart = this.parent;
9
- const plotArea = chart.plotArea;
10
- const invertAxes = chart.options.invertAxes;
11
- const valueAxis = chart.seriesValueAxis(this.series);
12
- const valueAxisLineBox = valueAxis.lineBox();
13
- const categoryAxis = plotArea.seriesCategoryAxis(this.series);
14
- const categoryAxisLineBox = categoryAxis.lineBox();
15
- const stackPoints = this.stackPoints;
16
- const points = this._linePoints(stackPoints);
17
- const pos = invertAxes ? X : Y;
18
- let end = invertAxes ? categoryAxisLineBox.x1 : categoryAxisLineBox.y1;
19
-
20
- end = limitValue(end, valueAxisLineBox[pos + 1], valueAxisLineBox[pos + 2]);
21
- if (!this.stackPoints && points.length > 1) {
22
- const firstPoint = points[0];
23
- const lastPoint = last(points);
24
-
25
- if (invertAxes) {
26
- points.unshift(new geom.Point(end, firstPoint.y));
27
- points.push(new geom.Point(end, lastPoint.y));
28
- } else {
29
- points.unshift(new geom.Point(firstPoint.x, end));
30
- points.push(new geom.Point(lastPoint.x, end));
31
- }
32
- }
33
-
34
- return points;
35
- },
36
-
37
- createVisual: function() {
38
- const series = this.series;
39
- const defaults = series._defaults;
40
- let color = series.color;
41
-
42
- if (isFunction(color) && defaults) {
43
- color = defaults.color;
44
- }
45
-
46
- this.visual = new draw.Group({
47
- zIndex: series.zIndex
48
- });
49
-
50
- this.createArea(color);
51
- this.createLine(color);
52
- },
53
-
54
- createLine: function(color) {
55
- const series = this.series;
56
- const lineOptions = deepExtend({
57
- color: color,
58
- opacity: series.opacity
59
- }, series.line);
60
-
61
- if (lineOptions.visible !== false && lineOptions.width > 0) {
62
- const line = draw.Path.fromPoints(this._linePoints(), {
63
- stroke: {
64
- color: lineOptions.color,
65
- width: lineOptions.width,
66
- opacity: lineOptions.opacity,
67
- dashType: lineOptions.dashType,
68
- lineCap: "butt"
69
- }
70
- });
71
-
72
- this.visual.append(line);
73
- }
74
- },
75
-
76
- createArea: function(color) {
77
- const series = this.series;
78
-
79
- const area = draw.Path.fromPoints(this.points(), {
80
- fill: {
81
- color: color,
82
- opacity: series.opacity
83
- },
84
- stroke: null
85
- });
86
-
87
- this.visual.append(area);
88
- }
89
- };
90
-
91
- export default AreaSegmentMixin;