You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "BobXLiu (via GitHub)" <gi...@apache.org> on 2023/06/14 00:52:29 UTC

[GitHub] [echarts] BobXLiu commented on issue #18755: [Feature] After adding the x-axis to set the polyline offset, the visualMap setting fails

BobXLiu commented on issue #18755:
URL: https://github.com/apache/echarts/issues/18755#issuecomment-1590263408

   @Ovilia ,
   
   Thank you for your reply.
   I checked the sample code. Now, I need to set the polyline offset.
   I have two series in my option, please check the follow content:
   ```
   series: [
           {
               xAxisIndex: 1,
               type:'line',
               label: {
                       show: true,
                       position: 'top',
                       color: '#000000',
                       fontSize: 18,
                       formatter: function (params) {
                           return (params.value[1])+"%"
                       }
                   },
               data: [43, 18, 90, 26, 15, 80, 92,76, 53, 28, 76, 82,91],
           }
       ]
   ```
   
   ```
   option.series[0].data = option.series[0].data.map((x, i) => [0 + i * 100, x])
   ```


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