@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.
- package/dist/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/chart/bar-chart/bar.js +40 -16
- package/dist/es/chart/bubble-chart/bubble.js +10 -0
- package/dist/es/chart/bullet-chart/bullet.js +32 -11
- package/dist/es/chart/candlestick-chart/candlestick.js +37 -1
- package/dist/es/chart/categorical-chart.js +1 -1
- package/dist/es/chart/chart.js +307 -26
- package/dist/es/chart/constants.js +12 -1
- package/dist/es/chart/funnel-chart/funnel-chart.js +5 -3
- package/dist/es/chart/funnel-chart/funnel-segment.js +62 -3
- package/dist/es/chart/heatmap-chart/heatmap-chart.js +2 -1
- package/dist/es/chart/heatmap-chart/heatmap-point.js +68 -29
- package/dist/es/chart/legend/legend-item.js +32 -2
- package/dist/es/chart/legend/legend.js +6 -1
- package/dist/es/chart/line-chart/line-point.js +109 -26
- package/dist/es/chart/mixins/accessibility-attributes-mixin.js +36 -0
- package/dist/es/chart/pie-chart/pie-chart.js +1 -1
- package/dist/es/chart/pie-chart/pie-segment.js +50 -14
- package/dist/es/chart/plotarea/categorical-plotarea.js +53 -2
- package/dist/es/chart/plotarea/funnel-plotarea.js +8 -0
- package/dist/es/chart/plotarea/heatmap-plotarea.js +66 -1
- package/dist/es/chart/plotarea/plotarea-base.js +71 -1
- package/dist/es/chart/plotarea/radar-plotarea.js +8 -0
- package/dist/es/chart/radar-bar-chart/radar-segment.js +4 -0
- package/dist/es/chart/range-area-chart/range-area-point.js +26 -1
- package/dist/es/chart/range-bar-chart/range-bar.js +3 -24
- package/dist/es/chart/scatter-charts/scatter-chart.js +1 -1
- package/dist/es/common/constants.js +6 -0
- package/dist/es/common/cycleDown.js +5 -0
- package/dist/es/common/cycleIndex.js +13 -0
- package/dist/es/common/cycleUp.js +3 -0
- package/dist/es/common.js +3 -0
- package/dist/es/core/chart-element.js +31 -3
- package/dist/es/core/shape-builder.js +1 -1
- package/dist/es/core/shape-element.js +3 -0
- package/dist/es/core/utils/add-accessibility-attributes-to-visual.js +8 -0
- package/dist/es/core/utils/guid.js +17 -0
- package/dist/es/map/layers/shape.js +0 -2
- package/dist/es/map/navigator.js +0 -1
- package/dist/es/map/scroller/user-events.js +0 -2
- package/dist/es/map/utils.js +0 -18
- package/dist/es/map/zoom.js +0 -1
- package/dist/es2015/chart/bar-chart/bar.js +40 -16
- package/dist/es2015/chart/bubble-chart/bubble.js +10 -0
- package/dist/es2015/chart/bullet-chart/bullet.js +32 -11
- package/dist/es2015/chart/candlestick-chart/candlestick.js +37 -1
- package/dist/es2015/chart/categorical-chart.js +1 -1
- package/dist/es2015/chart/chart.js +295 -26
- package/dist/es2015/chart/constants.js +12 -1
- package/dist/es2015/chart/funnel-chart/funnel-chart.js +5 -3
- package/dist/es2015/chart/funnel-chart/funnel-segment.js +62 -3
- package/dist/es2015/chart/heatmap-chart/heatmap-chart.js +2 -1
- package/dist/es2015/chart/heatmap-chart/heatmap-point.js +68 -29
- package/dist/es2015/chart/legend/legend-item.js +32 -2
- package/dist/es2015/chart/legend/legend.js +6 -1
- package/dist/es2015/chart/line-chart/line-point.js +110 -26
- package/dist/es2015/chart/mixins/accessibility-attributes-mixin.js +36 -0
- package/dist/es2015/chart/pie-chart/pie-chart.js +1 -1
- package/dist/es2015/chart/pie-chart/pie-segment.js +50 -14
- package/dist/es2015/chart/plotarea/categorical-plotarea.js +49 -2
- package/dist/es2015/chart/plotarea/funnel-plotarea.js +8 -0
- package/dist/es2015/chart/plotarea/heatmap-plotarea.js +60 -1
- package/dist/es2015/chart/plotarea/plotarea-base.js +67 -1
- package/dist/es2015/chart/plotarea/radar-plotarea.js +8 -0
- package/dist/es2015/chart/radar-bar-chart/radar-segment.js +4 -0
- package/dist/es2015/chart/range-area-chart/range-area-point.js +26 -1
- package/dist/es2015/chart/range-bar-chart/range-bar.js +3 -24
- package/dist/es2015/chart/scatter-charts/scatter-chart.js +1 -1
- package/dist/es2015/common/constants.js +6 -0
- package/dist/es2015/common/cycleDown.js +5 -0
- package/dist/es2015/common/cycleIndex.js +13 -0
- package/dist/es2015/common/cycleUp.js +3 -0
- package/dist/es2015/common.js +3 -0
- package/dist/es2015/core/chart-element.js +31 -3
- package/dist/es2015/core/shape-builder.js +1 -1
- package/dist/es2015/core/shape-element.js +3 -0
- package/dist/es2015/core/utils/add-accessibility-attributes-to-visual.js +8 -0
- package/dist/es2015/core/utils/guid.js +17 -0
- package/dist/es2015/map/layers/shape.js +0 -2
- package/dist/es2015/map/navigator.js +0 -2
- package/dist/es2015/map/scroller/user-events.js +0 -2
- package/dist/es2015/map/utils.js +0 -18
- package/dist/es2015/map/zoom.js +0 -2
- package/dist/npm/main.js +1098 -156
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
- package/dist/es/chart/area-chart/area-segment-mixin.js +0 -91
- 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.
|
|
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;
|