You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/04/29 19:58:01 UTC

[GitHub] [incubator-superset] john-wormington-sp opened a new issue #7409: Min bar width for NVD3 charts not maintained on chart with few columns.

john-wormington-sp opened a new issue #7409: Min bar width for NVD3 charts not maintained on chart with few columns.
URL: https://github.com/apache/incubator-superset/issues/7409
 
 
   Bar Chart column width can become unusable when resizing browser.  Long x-axis names exacerbates the issue.  The issue appears to be tied to the number of columns in the bar chart and the allotted chart width.  To try and limit the ui issues the screen shots below make use of a change to truncate the long x-axis names: https://github.com/apache-superset/superset-ui-plugins/pull/21
   
   This issue seems similar: https://github.com/apache/incubator-superset/pull/629
   
   ### Expected results
   
   Minimum bar width maintained 
   
   ### Actual results
   
   Bar Chart columns squished
   
   #### Screenshots
   
   Bar Chart with few columns, squished down vs Bar Chart with more columns that overflow outside the container.
   
   ![bar chart column width](https://user-images.githubusercontent.com/43621310/56922199-3b56fb80-6a8d-11e9-997c-4c3d4b234e52.png)
   
   #### How to reproduce the bug
   
   1. Create a Dashboard with two bar charts, one with few columns, one with many columns.  
   2. Choose a chart width that is small, ex: chart position json meta width = 3
   3. Resize (decreasing) browser window to see the chart render smaller and smaller column width until they are unusable on the chart with few columns.  While the chart with many columns overflows
   
   ### Environment
   
   - superset version: [`v0.999.0dev`, `master`]
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't found one similar.  Added links to related issues or fixes but they differ or do not fix the issue related to the number of x-axis columns.
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org