You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/06/14 07:24:45 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #18759: [Bug] 关于echart折线图只有2个点时的平滑曲线问题, smoothMonotone 无效

echarts-bot[bot] commented on issue #18759:
URL: https://github.com/apache/echarts/issues/18759#issuecomment-1590624565

   @wangchaoren It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] Regarding the smooth curve problem when the echart line chart has only 2 points, smoothMonotone does not work
   
   **BODY**
   
   ### Version
   
   5.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=line-simple
   
   ### Steps to Reproduce
   
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [150, 530], 
         type: 'line',
         smooth: true,
         smoothMonotone: 'x' // This parameter does not take effect
       }
     ]
   };
   
   ### Current Behavior
   
   Line chart When there are only 2 points for smoothing curve problems, setting smoothMonotone does not take effect
   
   ### Expected Behavior
   
   Older versions are supported, new versions are not
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_
   </details>


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