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 2020/10/21 03:47:14 UTC

[GitHub] [incubator-echarts] GangLx edited a comment on issue #13462: 可是我设置了barMinHeight高度为1,应该第一个 series应该显示一点点

GangLx edited a comment on issue #13462:
URL: https://github.com/apache/incubator-echarts/issues/13462#issuecomment-713279432


   目前看来这个方法不对
   function getValueAxisStart(baseAxis, valueAxis, stacked) {
   return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? 1 : 0));
   }
   
   4.1正常的版本是这么写的
   function getValueAxisStart(baseAxis, valueAxis, stacked) {
   return (
   indexOf(baseAxis.getAxesOnZeroOf(), valueAxis) >= 0
   || stacked
   )
   ? valueAxis.toGlobalCoord(valueAxis.dataToCoord(0))
   : valueAxis.getGlobalExtent()[0];
   }


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