You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "saminaali (via GitHub)" <gi...@apache.org> on 2023/11/21 05:47:04 UTC
[I] Multiple dataset in gauge overlaps or show big gap while screen changes [echarts]
saminaali opened a new issue, #19316:
URL: https://github.com/apache/echarts/issues/19316
### Version
5.4.3
### Link to Minimal Reproduction
https://codepen.io/kikondo/pen/OJdNqNO
### Steps to Reproduce
` const series: any[] = [
{
type: chartProps?.chartType,
radius: '100%',
min: chartProps?.series[0]?.minValue,
max: chartProps?.series[0]?.maxValue,
center: ['50%', '80%'],
axisLine: {
show: true,
lineStyle: {
width: 18,
}
},
splitLine: {
show: false
},
axisTick: {
show: false,
},
axisLabel: {
show: !chartProps.options?.showThreshold,
distance: 4,
color: theme.palette.designTokens.element.text.textSecondary,
fontWeight: '400',
fontFamily: 'Siemens Sans',
fontSize: 12,
},
progress: {
show: true,
overlap: false,
},
pointer: {
show: false,
},
data: [
{
value: datasetData[0],
name: chartProps?.series[0]?.label,
title: {
show: false,
},
detail: {
show: true,
offsetCenter: ['-5%', '-5%'],
color: 'black',
overflow: 'truncate',
fontSize: 26,
lineHeight: 16,
formatter: function (value: any) {
return chartProps?.series[0]?.unit ? '{value|' + value + '}{unit|' + chartProps?.series[0]?.unit + '}' : '{value|' + value + '}';
},
rich: {
value: {
fontSize: 48,
fontFamily: "Siemens Sans",
fontWeight: '400',
color: theme.palette.designTokens.element.text.textPrimary ,
},
unit: {
fontSize: 12,
fontFamily: "Siemens Sans",
fontWeight: '400',
color: theme.palette.designTokens.element.text.textPrimary,
padding: [0, 0, -18, 10]
}
}
},
itemStyle: {
color: chartProps.options?.showThreshold ? getProgressColor(datasetData, thresholdList) : chartProps?.series[0]?.points[0]?.progressColor,
},
}
],
},
{
type: chartProps.chartType,
min: chartProps?.series[0]?.minValue,
max: chartProps?.series[0]?.maxValue,
axisLine: {
show: chartProps.options?.showThreshold,
lineStyle: {
width: 5,
color: getThresholdList(thresholdList, chartProps.series[0].maxValue),
}
},
radius: '87%',
center: ['50%', '80%'],
splitLine: {
show: false
},
axisTick: {
show: false,
},
axisLabel: {
show: chartProps.options?.showThreshold,
distance: -9,
color: theme.palette.designTokens.element.text.textSecondary,
fontWeight: '400',
fontFamily: 'Siemens Sans',
fontSize: 12,
},
}
];`
### Current Behavior


### Expected Behavior

### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### 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
Re: [I] Multiple dataset in gauge overlaps or show big gap while screen changes [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19316: Multiple dataset in gauge overlaps or show big gap while screen changes
URL: https://github.com/apache/echarts/issues/19316
--
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
Re: [I] Multiple dataset in gauge overlaps or show big gap while screen changes [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19316:
URL: https://github.com/apache/echarts/issues/19316#issuecomment-3591938421
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. 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
Re: [I] Multiple dataset in gauge overlaps or show big gap while screen changes [echarts]
Posted by "saminaali (via GitHub)" <gi...@apache.org>.
saminaali commented on issue #19316:
URL: https://github.com/apache/echarts/issues/19316#issuecomment-1820543601
> this is by design - [progress.width](https://echarts.apache.org/en/option.html#series-gauge.progress.width) is in pixels (=constant), but you set the [radius](https://echarts.apache.org/en/option.html#series-gauge.radius) as percentage (=variable), thus the **overlap** effect on zoom.
@helgasoft How to fix zoom-in/out issue in my case
--
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
Re: [I] Multiple dataset in gauge overlaps or show big gap while screen changes [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19316:
URL: https://github.com/apache/echarts/issues/19316#issuecomment-3567048263
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
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
Re: [I] Multiple dataset in gauge overlaps or show big gap while screen changes [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19316:
URL: https://github.com/apache/echarts/issues/19316#issuecomment-1820316673
this is by design - [progress.width](https://echarts.apache.org/en/option.html#series-gauge.progress.width) is in pixels (=constant), but you set the [radius](https://echarts.apache.org/en/option.html#series-gauge.radius) as percentage (=variable), thus the **overlap** effect on zoom.
--
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
Re: [I] Multiple dataset in gauge overlaps or show big gap while screen changes [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19316:
URL: https://github.com/apache/echarts/issues/19316#issuecomment-1824761158
A suggestion: set _z:0_ on the **second** gauge to make it background, and change _progress.color_ to 'magenta' on **first** one for better visibility. Zoom overlap is by design and will remain.
--
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