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/02/28 03:26:49 UTC

[GitHub] [incubator-echarts] maicWorkGithub opened a new issue #12205: yAxis 宽度无效

maicWorkGithub opened a new issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205
 
 
   ### Version
   4.6.0
   
   ### Steps to reproduce
   ```
   option = {
       xAxis: {
           type: 'category',
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
           axisLine: {lineStyle: {width: 12}}
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [120, 200, 150, 80, 70, 110, 130],
           axisLine: {lineStyle: {width: 12}},
           type: 'bar'
       }]
   };
   
   ```
   
   ### What is expected?
   y轴和x轴宽度都变,而且一样宽
   
   ### What is actually happening?
   x轴宽度有变化,y轴没有
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] maicWorkGithub removed a comment on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub removed a comment on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-593744260
 
 
   echart gl的问题,能现在这里咨询一下吗?
   https://github.com/ecomfe/echarts-gl/issues/58#issuecomment-590181530
   有必要新开一个issue吗,或者只要再等等就好了?

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] maicWorkGithub opened a new issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub opened a new issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205
 
 
   ### Version
   4.6.0
   
   ### Steps to reproduce
   ```
   option = {
       xAxis: {
           type: 'category',
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
           axisLine: {lineStyle: {width: 12}}
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [120, 200, 150, 80, 70, 110, 130],
           axisLine: {lineStyle: {width: 12}},
           type: 'bar'
       }]
   };
   
   ```
   
   ### What is expected?
   y轴和x轴宽度都变,而且一样宽
   
   ### What is actually happening?
   x轴宽度有变化,y轴没有
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] maicWorkGithub commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-592324086
 
 
   还是不对,看这个示例,这俩宽度明显不一样
   ```
   option = {
             tooltip: {
               trigger: 'axis',
               axisPointer: {
                 type: 'shadow'
               },
               formatter: '{b}: <br/>{c}人'
             },
             grid: {
               left: 0,
               right: 0,
               top: '9%',
               bottom: 0,
               containLabel: true
             },
             yAxis: {
               type: 'value',
               show: true,
               axisLine: { show: true, lineStyle: { color: '#36445f', width: 8 } },
               splitLine: { show: false },
               axisTick: { show: false },
               axisLabel: { show: false }
             },
             xAxis: {
               type: 'category',
               data: ['a', 'b', 'c'],
               splitLine: {
                 show: false
               },
               axisTick: {
                 show: false,
               },
               axisLine: { show: true, lineStyle: { color: '#36445f', width: 8 } }
             },
             series: [
               {
                 name: '',
                 type: 'bar',
                 barWidth: 30,
                 itemStyle: {
                   color: new echarts.graphic.LinearGradient(
                     0, 0, 0, 1,
                     [
                       { offset: 0, color: '#51baf5' },
                       { offset: 1, color: '#5173f5' },
                     ]
                   ),
                 },
                 label: {
                   normal: {
                     show: true,
                     position: 'top',
                     color: '#eaa24e'
                   }
                 },
                 data: [1, 2, 3]
               },
             ]
           };
   ```

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] maicWorkGithub commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-592335190
 
 
   emmm……那这也算bug吧

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] maicWorkGithub commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-593744260
 
 
   echart gl的问题,能现在这里咨询一下吗?
   https://github.com/ecomfe/echarts-gl/issues/58#issuecomment-590181530
   有必要新开一个issue吗,或者只要再等等就好了?

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-592293859
 
 
   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] susiwen8 commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-592335401
 
 
   是bug

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] maicWorkGithub closed issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub closed issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205
 
 
   

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] susiwen8 commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-592327241
 
 
   axisLabel.show 设置成 false就有问题

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] susiwen8 commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-592303743
 
 
   @maicWorkGithub  you need to set axisLine for yAxis
   `            yAxis: {
                   type: 'value',
                   axisLine: {
                       lineStyle: {
                           width: 12
                       }
                   }
               },`

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] susiwen8 commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-592326466
 
 
   确实有问题

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] maicWorkGithub commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub commented on issue #12205: yAxis 宽度无效
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-592323097
 
 
   我复制错地方了,的确可以,但是为啥我项目里不行,我再看看,打扰了……
   

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] maicWorkGithub commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub commented on issue #12205:
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-651461152


   这个的确解决了这个问题,但是这个规则太隐晦了吧,我觉得应该设计一个更好一点的API?


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


[GitHub] [incubator-echarts] maicWorkGithub closed issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub closed issue #12205:
URL: https://github.com/apache/incubator-echarts/issues/12205


   


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


[GitHub] [incubator-echarts] maicWorkGithub edited a comment on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub edited a comment on issue #12205:
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-651461152


   这个的确解决了这个问题,但是这个规则太隐晦了吧,能不能设计一个更好一点的API?


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


[GitHub] [incubator-echarts] maicWorkGithub commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
maicWorkGithub commented on issue #12205:
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-651611134


   那文档上设置X Y轴的地方放上这些说明或者这个issue的链接好了


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


[GitHub] [incubator-echarts] susiwen8 commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #12205:
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-651182020


   Y axis will be cut into half by canvas container when there are no label. 
   Workaround: set `grid.left` value to half of y axis line width


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


[GitHub] [incubator-echarts] susiwen8 commented on issue #12205: yAxis 宽度无效

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #12205:
URL: https://github.com/apache/incubator-echarts/issues/12205#issuecomment-651463178


   这是 echarts 位置计算一个问题,也是用canvas绘图的一个头疼问题,绘制的图像在画布之外。因为绘制起点是定在 y轴中心线,设置宽度是从中心线往两边拓展,如果是设置`20px`, canvas 绘制从中心线往两边各绘制`10px`, 那么左边的`10px`就在画布之外了


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