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 2021/07/15 10:24:03 UTC

[GitHub] [echarts] Jieqizhong opened a new issue #15362: 5.0.0版本以上line系列的markPoint的symbolOffset不起作用

Jieqizhong opened a new issue #15362:
URL: https://github.com/apache/echarts/issues/15362


   ### Version
   5.1.2
   
   ### Steps to reproduce
   markPoint: {
                   symbol: 'triangle',
                   symbolRotate: '180',
                   symbolSize: [30, 40], // 容器大小
                   symbolOffset: [0, -20], // 位置偏移
                   data: [
                       {type: 'max', name: '最大值'},
                       {type: 'min', name: '最小值'}
                   ]
               },
   
   ### What is expected?
   设置symbolOffset位置能偏移
   
   ### What is actually happening?
   无偏移
   
   ---
   option = {
       title: {
           text: '未来一周气温变化',
           subtext: '纯属虚构'
       },
       tooltip: {
           trigger: 'axis'
       },
       legend: {
           data: ['最高气温', '最低气温']
       },
       toolbox: {
           show: true,
           feature: {
               dataZoom: {
                   yAxisIndex: 'none'
               },
               dataView: {readOnly: false},
               magicType: {type: ['line', 'bar']},
               restore: {},
               saveAsImage: {}
           }
       },
       xAxis: {
           type: 'category',
           boundaryGap: false,
           data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
       },
       yAxis: {
           type: 'value',
           axisLabel: {
               formatter: '{value} °C'
           }
       },
       series: [
           {
               name: '最高气温',
               type: 'line',
               data: [10, 11, 13, 11, 12, 12, 9],
               markPoint: {
                   symbol: 'triangle',
                   symbolRotate: '180',
                   symbolSize: [30, 40], // 容器大小
                   symbolOffset: [0, -20], // 位置偏移
                   data: [
                       {type: 'max', name: '最大值'},
                       {type: 'min', name: '最小值'}
                   ]
               },
               markLine: {
                   data: [
                       {type: 'average', name: '平均值'}
                   ]
               }
           },
           {
               name: '最低气温',
               type: 'line',
               data: [1, -2, 2, 5, 3, 2, 0],
               markPoint: {
                   data: [
                       {name: '周最低', value: -2, xAxis: 1, yAxis: -1.5}
                   ]
               },
               markLine: {
                   data: [
                       {type: 'average', name: '平均值'},
                       [{
                           symbol: 'none',
                           x: '90%',
                           yAxis: 'max'
                       }, {
                           symbol: 'circle',
                           label: {
                               position: 'start',
                               formatter: '最大值'
                           },
                           type: 'max',
                           name: '最高点'
                       }]
                   ]
               }
           }
       ]
   };
   
   <!-- 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.

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] kchjxxgh commented on issue #15362: 5.0.0版本以上line系列的markPoint的symbolOffset不起作用

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


   it should be a new regression. 
   it worked well in 5.0.2.
   this issue really block me.


-- 
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] plainheart closed issue #15362: 5.0.0版本以上line系列的markPoint的symbolOffset不起作用

Posted by GitBox <gi...@apache.org>.
plainheart closed issue #15362:
URL: https://github.com/apache/echarts/issues/15362


   


-- 
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] echarts-bot[bot] commented on issue #15362: 5.0.0版本以上line系列的markPoint的symbolOffset不起作用

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15362:
URL: https://github.com/apache/echarts/issues/15362#issuecomment-880580439






-- 
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] plainheart commented on issue #15362: 5.0.0版本以上line系列的markPoint的symbolOffset不起作用

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


   Hi, thanks for the feedback. It will be fixed in the next version 5.2.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.

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