You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/01/06 00:57:20 UTC

[GitHub] [incubator-echarts] xiaojia117 commented on issue #13944: Stack-Bar handle exception with negative zero

xiaojia117 commented on issue #13944:
URL: https://github.com/apache/incubator-echarts/issues/13944#issuecomment-754995456


   > You can put the negative data in front of the positive data in series:
   > 
   > ```
   > series: [
   >   {
   >     name: 'bar2',
   >     type: 'bar',
   >     stack: '总量',
   >     barWidth: 18,
   >     label: {
   >       show: true,
   >       position: 'bottom',
   >       fontSize: 30,
   >     },
   >     data: [0, -2, -3, -5, -0],
   >   },
   >   {
   >     name: 'bar1',
   >     type: 'bar',
   >     stack: '总量',
   >     barWidth: '18',
   >     label: {
   >       show: true,
   >       position: 'top',
   >       fontSize: 30,
   >     },
   >     data: [8, 6, 3, 0, 0],
   >   }
   > ]
   > ```
   > 
   > ![image](https://user-images.githubusercontent.com/19756301/103666305-6eb29300-4faf-11eb-9778-2f15e2fde84c.png)
   
   solved,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.

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