You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/06/27 14:00:40 UTC
[GitHub] [incubator-echarts] partical commented on issue #10766: pie/funnel
legend can use visualMap color.
partical commented on issue #10766: pie/funnel legend can use visualMap color.
URL: https://github.com/apache/incubator-echarts/pull/10766#issuecomment-506358621
option like this:
`option = {
"dataset": [
{
"source": [
[
"Mark3",
"Mark3_desc",
"Role4",
"Role4_desc"
],
[
"01",
"高档",
61278,
"61278.00"
],
[
"03",
"中档",
108814,
"108814.00"
],
[
"04",
"低档",
242664,
"242664.00"
]
]
}
],
"series": [
{
"type": "pie",
"datasetIndex": 0,
"name": "销售数量",
"encode": {
"value": "Role4",
"itemName": "Mark3_desc"
}
}
],
"visualMap": [
{
"show": false,
"inRange": {
"color": [
"#6EB9FF",
"#99DFA2",
"#FDAD29"
]
},
"dataDefIndex": 0,
"field": "FA_XS_MONTH.JGDC",
"type": "piecewise",
"categories": [
"高档",
"中档",
"低档"
],
"dimension": "Mark3_desc",
"seriesIndex": [
0
]
}
],
"legend": {
"show": true
}
};`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org