You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "devjyoti3110 (via GitHub)" <gi...@apache.org> on 2023/06/05 08:07:06 UTC

[GitHub] [echarts] devjyoti3110 commented on issue #18709: [Feature] Maintaining dynamic bar width based on the series data

devjyoti3110 commented on issue #18709:
URL: https://github.com/apache/echarts/issues/18709#issuecomment-1576297441

   > Any example of "_series data availability_" ?
   
   Example 1 - 
   series: [
       {
         name: 'Max',
         type: 'bar',
         data: [40,10,15,67,50,34,23,28]
       }
     ]
   
   Series array has 8 number of data. So, the bar count increase, gap between two bars adjusted as per this, bar width also maintained automatically.
   
   ![image](https://github.com/apache/echarts/assets/52210784/0da6566a-f745-4cca-876a-e168aab058c8)
   
   Now if I remove some of the data from the series data array. As example below,
   Example 2 -
   series: [
       {
         name: 'Max',
         type: 'bar',
         data: [40,10,15]
       }
     ]
   
   ![image](https://github.com/apache/echarts/assets/52210784/a874078c-2c2e-463e-a9af-19540f190fed)
   
   
   Bar width increased. gap between bar also maintained proportionally. I want to keep the bar width maintained same in all the cases where ever data increase/decrease inside the series array. and the gap between bars can maintain a such way so that bars can be spread throughout the chart body all the time. Not only the left/right/center aligned. 
   
   


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