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 2022/08/30 17:42:48 UTC

[GitHub] [echarts] c3-anerishah opened a new issue, #17599: [Bug] Boxplot Squished to the top in Grid

c3-anerishah opened a new issue, #17599:
URL: https://github.com/apache/echarts/issues/17599

   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/qnxh0k64/
   
   ### Steps to Reproduce
   
   1. Create the box plot chart with the config in the attached JSFiddle
   2. The minimal config has been pasted here for convenience:
   `{
       "xAxis": [
           {
               "type": "category",
               "data": [
                   "thickness"
               ],
               "gridIndex": 0
           }
       ],
       "yAxis": [
           {
               "type": "value",
               "splitArea": {
                   "show": true
               },
               "gridIndex": 0
           }
       ],
       "series": [
           {
               "name": "Boxplot",
               "type": "boxplot",
               "data": [
                   [
                       12.01,
                       12.1325,
                       12.205,
                       12.255,
                       12.37
                   ]
               ],
               "xAxis": 0,
               "yAxis": 0,
               "color": "#253EB5",
           },
           {
               "name": "Mild Outlier",
               "type": "scatter",
               "data": [
                   [
                       0,
                       11.93
                   ]
               ],
               "xAxis": 0,
               "yAxis": 0,
               "color": "#E8B500"
           }
       ],
   }`
   
   ### Current Behavior
   
   See that the boxplot is squished to the top of the chart with a lot of whitespace under it. Since I am not providing any custom min max values for the y-axis, the built-in echart heuristics for these values are not performing correctly here.
   
   ### Expected Behavior
   
   I would expect the y-axis values to span a smaller range - perhaps 10-14 in this case - so that the box plot's features can be accurately identified in the chart rather than squished to one part of the chart with whitespace around it.
   
   ### Environment
   
   _No response_
   
   ### 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


[GitHub] [echarts] c3-anerishah commented on issue #17599: [Bug] Boxplot Squished to the top in Grid

Posted by GitBox <gi...@apache.org>.
c3-anerishah commented on issue #17599:
URL: https://github.com/apache/echarts/issues/17599#issuecomment-1235665191

   I see, but if I use `min: 'dataMin'`, the intervals on the y-axis get messed up since the gaps aren't consistent (i.e. the difference between the bottom two axis labels is 0.07, but the difference between the rest is 0.1. For small numbers, this isn't as big of a deal, but it makes a larger (more misleading) difference if the intervals are uneven when the range is very large.


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


[GitHub] [echarts] Ovilia commented on issue #17599: [Bug] Boxplot Squished to the top in Grid

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #17599:
URL: https://github.com/apache/echarts/issues/17599#issuecomment-1235217293

   This is not a bug but the expected behavior that axes always start from 0. You can set `min: 'dataMin'` to force using minimum data as the axis's starting value.


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


[GitHub] [echarts] Ovilia commented on issue #17599: [Bug] Boxplot Squished to the top in Grid

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #17599:
URL: https://github.com/apache/echarts/issues/17599#issuecomment-1236478774

   @c3-anerishah `min` and `max` can be a callback function so you can decide the logic. Please check [the doc](https://echarts.apache.org/en/option.html#xAxis.max) to know more.


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