You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "abdurrahmanyildirim (via GitHub)" <gi...@apache.org> on 2023/04/18 12:02:16 UTC
[GitHub] [echarts] abdurrahmanyildirim opened a new issue, #18527: Gauge chart doesn't support inherit color with multiple pointers
abdurrahmanyildirim opened a new issue, #18527:
URL: https://github.com/apache/echarts/issues/18527
### Version
5.4.2
### Link to Minimal Reproduction
https://codepen.io/abdurrahmanyildirim/pen/JjmKgQr
### Steps to Reproduce
Just use that chart options. You will understand what I mean.
```
option = {
series: [
{
type: 'gauge',
startAngle: 180,
endAngle: 0,
center: ['50%', '75%'],
radius: '90%',
min: 0,
max: 1,
splitNumber: 8,
axisLine: {
lineStyle: {
width: 6,
color: [
[0.25, '#FF6E76'],
[0.5, '#FDDD60'],
[0.75, '#58D9F9'],
[1, '#7CFFB2']
]
}
},
data: [
{
value: 0.75,
name: 'Grade Rating1',
title: {
color: 'inherit',
offsetCenter: [0, '10%']
},
detail: {
show: true,
color: 'inherit',
offsetCenter: [0, '15%'],
overflow: 'truncate'
},
itemStyle: {
show: true,
color: 'inherit'
},
},
{
value: 0.2,
name: 'Grade Rating2',
title: {
color: 'inherit',
offsetCenter: [0, '25%']
},
detail: {
show: true,
color: 'inherit',
offsetCenter: [0, '30%'],
overflow: 'truncate'
},
itemStyle: {
show: true,
color: 'inherit'
}
}
]
}
]
};
```
### Current Behavior
I use 2 pointers. I wanna use 'inherit' for color. Gauge set same color for all pointers.
### Expected Behavior
I expected that gauge set color by value and should inherit color according to current axisLine color
### Environment
```markdown
- OS: Win 11
- Browser: Chrome
- Framework:Angular
```
### Any additional comments?
_No response_
--
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.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
[GitHub] [echarts] abdurrahmanyildirim closed issue #18527: Gauge chart inherit color has bug when there is multiple data
Posted by "abdurrahmanyildirim (via GitHub)" <gi...@apache.org>.
abdurrahmanyildirim closed issue #18527: Gauge chart inherit color has bug when there is multiple data
URL: https://github.com/apache/echarts/issues/18527
--
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
[GitHub] [echarts] helgasoft commented on issue #18527: Gauge chart inherit color has bug when there is multiple data
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18527:
URL: https://github.com/apache/echarts/issues/18527#issuecomment-1513483453
workaround: use 'auto' instead of 'inherit' for [itemStyle.color](https://echarts.apache.org/en/option.html#series-gauge.data.itemStyle.color).
[Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeBYAULWBnApgJwhywC5YBtdTTVDKzMATxB1IHIBzAQwFd2dWANJTqxOADwhYAMhGgtkwkbAA2snAGVGy-TSV0A7hAAmYABakAjAAZYQ2ntgBjYMuB5SivRXsPyVgHQATACsArCsAMQAYlEAbACiAOyxrAC6dr5UZAGh4dEAIoWxVmkZmX7-ibmRwQAc-QCcUQ2lng5kFmGRiQDCMQBCgWltIqmwI5gAviOTZXRGnGCcpN4Our4AbpzK3PLFc3rQnAC28qwA4nicRjiwAEqLsuwWghNUkGDapOuZzq7u4VkpnwEDArx8DmAADMobgwD0cNAwPgVlYutYAKTDCEiWZvTA3JYQZTffFUP5uNhAkFgg6QmFwhFIlF-dHBLHpMmYYAbfBQ1z6NhgPDcaCORb8Ml4nF0UE4Y6aBhfBQykQUgGsHhgYCsKV0qjStZkrY7eSBNFko6nNiXa63B6QaDsIb6ugfZU_XzqqnQYEEWlc2DQ2E4eGI5EA7JdEIcvVkwmcYmk1V0b2A3008HlIMM0NMiOoroAZisHNdIh5fIFQpFYolupTsENvjlCq0OkDac13G1Dcy01VA6UqU8Q9gI7QkwA3EA)

--
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
[GitHub] [echarts] abdurrahmanyildirim commented on issue #18527: Gauge chart inherit color has bug when there is multiple data
Posted by "abdurrahmanyildirim (via GitHub)" <gi...@apache.org>.
abdurrahmanyildirim commented on issue #18527:
URL: https://github.com/apache/echarts/issues/18527#issuecomment-1514258828
> workaround: use 'auto' instead of 'inherit' for [itemStyle.color](https://echarts.apache.org/en/option.html#series-gauge.data.itemStyle.color). [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeBYAULWBnApgJwhywC5YBtdTTVDKzMATxB1IHIBzAQwFd2dWANJTqxOADwhYAMhGgtkwkbAA2snAGVGy-TSV0A7hAAmYABakAjAAZYQ2ntgBjYMuB5SivRXsPyVgHQATACsArCsAMQAYlEAbACiAOyxrAC6dr5UZAGh4dEAIoWxVmkZmX7-ibmRwQAc-QCcUQ2lng5kFmGRiQDCMQBCgWltIqmwI5gAviOTZXRGnGCcpN4Our4AbpzK3PLFc3rQnAC28qwA4nicRjiwAEqLsuwWghNUkGDapOuZzq7u4VkpnwEDArx8DmAADMobgwD0cNAwPgVlYutYAKTDCEiWZvTA3JYQZTffFUP5uNhAkFgg6QmFwhFIlF-dHBLHpMmYYAbfBQ1z6NhgPDcaCORb8Ml4nF0UE4Y6aBhfBQykQUgGsHhgYCsKV0qjStZkrY7eSBNFko6nNiXa63B6QaDsIb6ugfZU_XzqqnQYEEWlc2DQ2E4eGI5EA7JdEIcvVkwmcYmk1V0b2A3008HlIMM0NMiOoroAZisHNdIh5fIFQpFYolupTsENvjlCq0OkDac13G1Dcy01VA6UqU8Q9gI7QkwA3EA) 
That worked. Thanks
--
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