You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "MikkoSteerpath (via GitHub)" <gi...@apache.org> on 2024/02/21 17:17:27 UTC

[I] [Bug] Pie chart roseType='area' incorrect when startAngle and endAngle given [echarts]

MikkoSteerpath opened a new issue, #19634:
URL: https://github.com/apache/echarts/issues/19634

   ### Version
   
   5.5.0
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=pie-roseType-simple&lang=ts&code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANprrLkWxgCeIWxA5CPkwDRUUZgCGOYAILQA5gBtGsAIwAOAAztYXdFmgATYeMkBmAGwLlsAPRHYAWwjRNE4noPV0OYNgAq9SU35ZeHQ2t58xGQOFEiwAG68YgCuklJyCrDQvGYeABJRAGawgkywAL6cIehhkTGSAKyJyanMGWLZAEJ5hYYlEVGxxABMCYo16VmwAMIthgC6XPnkk_kA3EA
   
   ### Steps to Reproduce
   
   Create a `roseType = 'area'` chart and set `startAngle` and `endAngle` so that `Math.abs(startAngle - endAngle) < Math.PI * 2`. Add at least two items.
   
   ### Current Behavior
   
   Both the angles and radiuses of the pie chart's items are different.
   
   ### Expected Behavior
   
   Only the radius of the items should be different, each item should have the same angle. Here is what the graph should look like https://echarts.apache.org/examples/en/editor.html?c=pie-roseType-simple&lang=ts&code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANprrLkWxgCeIWxA5CPkwDRUUZgCGOYAILQA5gBtGsAIwAOAAztYXdFmgATYeMkBmAGwLlsALYRomicT0Hq6HMGwAVepKb8svDobW8-xMjYokWAA3XjEAV0kpOQVYaF4jFwAJMIAzWEEmWABfTgD0INCIyQBWWPjE5hSxdIAhLNzDApCwyOIAJhjFCuS02ABhBsMAXS5s8lHsgG4gA
   
   ### Environment
   
   _No response_
   
   ### Any additional comments?
   
   A workaround is to set minAngle to be some large number like 360 in which case it seems the fixed angle is respected again. This technique was used to get the "expected behavior".


-- 
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] [Bug] Pie chart roseType='area' incorrect when startAngle and endAngle given [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19634:
URL: https://github.com/apache/echarts/issues/19634#issuecomment-3981027691

   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] [Bug] Pie chart roseType='area' incorrect when startAngle and endAngle given [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19634:
URL: https://github.com/apache/echarts/issues/19634#issuecomment-3939495918

   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] [Bug] Pie chart roseType='area' incorrect when startAngle and endAngle given [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19634: [Bug] Pie chart roseType='area' incorrect when startAngle and endAngle given
URL: https://github.com/apache/echarts/issues/19634


-- 
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] [Bug] Pie chart roseType='area' incorrect when startAngle and endAngle given [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19634:
URL: https://github.com/apache/echarts/issues/19634#issuecomment-1958308107

   > Both the angles and radiuses of the pie chart's items are different. Only the radius of the items should be different, each item should have the same angle.
   
   Agree. And I'll throw a guess that ```roseType:'area'``` is not even implemented.  It behaves exactly like ```roseType:'radius'``` before being fixed by _minAngle_. BTW in order to work _minAngle_ needs to be (minAngle >= total angle / total sectors) .
   ![image](https://github.com/apache/echarts/assets/13038071/75e7ecc6-4a18-4005-9a93-e3d9a3497fa0)
   
   


-- 
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