You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/10/18 15:21:16 UTC
[GitHub] [echarts] retnag commented on issue #17785: [Bug] Unable to manually set decal pattern in sunburst chart per data
retnag commented on issue #17785:
URL: https://github.com/apache/echarts/issues/17785#issuecomment-1282570628
I read a bit of the code, trying to find differences in SunburstPiece (lib\chart\sunburst\SunburstPiece.js) and PiePiece (lib\chart\pie\PieView.js). I found that in the SunburstPiece on line 99 it uses `node.getVisual('decal')` to retrieve the decal information, there is no such call in PieView.js. I have compared the following values for the same sunburst chart:
```
echartsInstance._chartsViews[0].seriesModel.option.data[0].itemStyle.decal;
res = {
color: "rgba(0, 0, 0, 0.5)",
dashArrayX: (2)[(1, 0)],
dashArrayY: (2)[(2, 5)],
rotation: 0.5235987755982988,
symbol: "rect",
symbolSize: 1,
};
echartsInstance._chartsViews[0].seriesModel._viewRoot.getVisual("decal");
res = {
backgroundColor: null,
color: "rgba(0, 0, 0, 0.2)",
dashArrayX: 5,
dashArrayY: 5,
dirty: false,
maxTileHeight: 512,
maxTileWidth: 512,
rotation: 0,
symbol: "none",
symbolKeepAspect: true,
symbolSize: 1,
__ec_inner_2: {
repeat: "repeat",
image: canvas,
svgElement: false,
svgWidth: 10,
svgHeight: 10,
"...": null,
},
};
```
Now, with the disclaimer, that I have no idea, what I'm doing ;), this seems wrong. The values don't match.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org