答案 0 :(得分:0)
我得到了解决方案,如果有人想要相同的功能,我会发布答案。 我们可以覆盖默认的系列视觉
this.$('.chartview').kendoChart({
series.visual = this.overrideSeries.bind(this),
...
});
funtion overrideSeries(e){
let origin = e.center;
let radius = e.radius;
var draw = kendo.drawing;
var geom = kendo.geometry;
var circleGeometryOuter = new geom.Circle(origin, radius + 5);
var circleOuter = new draw.Circle(circleGeometryOuter).stroke(CssConst.DONUT_BORDER_COLOR, .5);
var circleGeometryInner = new geom.Circle(origin, radius - 5);
var circleInner = new draw.Circle(circleGeometryInner).stroke('#cdcdcd', .5);
var visual = new draw.Group();
visual.append(circleOuter, e.createVisual(), circleInner);
return visual
}