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/06/20 08:15:38 UTC

[GitHub] [echarts] jianxinliu commented on issue #15078: markLine的位置有偏差

jianxinliu commented on issue #15078:
URL: https://github.com/apache/echarts/issues/15078#issuecomment-1160120872

   @ssthouse  Hello, I have a similar problem. An example of this can be found in the echarts editor:
   Echarts version: **5.3.3**
   <img width="1438" alt="image" src="https://user-images.githubusercontent.com/16288450/174555013-4ef1114d-bb20-4068-9da9-21de3d920f60.png">
   <img width="1437" alt="image" src="https://user-images.githubusercontent.com/16288450/174555038-a423e2a8-2291-469e-87a9-c7445ca8597c.png">
   
   **This seems to be a rounding result, how can I get the specified value?**
   
   there is the option setting: 
   ```js
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value',
       scale: true,
       interval: 0.005
     },
     series: [
       {
         symbol: 'pin',
         symbolSize: 18,
         data: [0.345, 0.375],
         type: 'line'
       },
       {
         type: 'line',
         // data: [0.345, 0.375],
         markLine: {
           data: [
             {
               yAxis: 0.366
             }
           ]
         }
       }
     ]
   };
   ```


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