You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Drevarr (via GitHub)" <gi...@apache.org> on 2023/01/24 20:56:53 UTC
[GitHub] [echarts] Drevarr commented on issue #18204: [Bug] series-boxplot.itemStyle.color doesn't handle function return as value properly
Drevarr commented on issue #18204:
URL: https://github.com/apache/echarts/issues/18204#issuecomment-1402644420
If the intent is not to be able to set color by function, then I will surely set this as a feature request.
Stack Overflow comment provided this tweak to allow setting color. Unfortunately I don't think I can use this solution in `tw5-echarts`, or I need to learn a bit more.
[Modified Chart](https://codesandbox.io/s/box-plot-chart-forked-goqqf2?file=/index.js)
```
const BoxplotSeriesModel = echarts.ComponentModel.getClassesByMainType(
"series"
).find((cls) => cls.type === "series.boxplot");
const BoxplotSeriesModelFill = function (...args) {
const _this = new BoxplotSeriesModel(...args);
_this.visualDrawType = "fill";
return _this;
};
BoxplotSeriesModelFill.type = BoxplotSeriesModel.type;
echarts.ComponentModel.registerClass(BoxplotSeriesModelFill);
```
--
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