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/11/08 01:16:52 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #17886: [Bug] 折线使用visualMap多维度渐变

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

   @HSdiana 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] Polyline uses visualMap multi-dimensional gradient
   
   **BODY**
   
   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Directly configure the options code as follows
   ````json
   option = {
     // Make gradient line here
     visualMap: [
       {
         type: 'continuous',
         seriesIndex: 0,
         min: 0,
         max: 400,
         // dimension: 1
         dimension: 2
       }
     ],
     title: [
       {
         left: 'center',
         text: 'Gradient along the y axis'
       }
     ],
     tooltip: {
       trigger: 'axis'
     },
     xAxis: [
       {
         data: [
           'January',
           'February',
           'March',
           'April',
           'May',
           'June',
           'July',
           'August',
           'September',
           'October',
           'November',
           'December'
         ]
       }
     ],
     yAxis: [{}],
     series: [
       {
         type: 'line',
         showSymbol: false,
         data: [
           ['January', 100, 200],
           ['February', 11, 300],
           ['March', 200, 0],
           ['April', 300, 300],
           ['May', 2, 342],
           ['June', 78, 12],
           ['July', 53, 231],
           ['August', 321, 31],
           ['September', 453, 45],
           ['October', 642, 64],
           ['November', 11, 389],
           ['December', 298, 89]
         ]
       }
     ]
   };
   ````
   2. I want to render the color according to the last column in data, and the y-axis shows the data of the second column
   
   ### Current Behavior
   
   I want to render the color according to the last column in data, and the y-axis shows the data of the second column
   
   ### Expected Behavior
   
   I want to render the color according to the last column in data, and the y-axis shows the data of the second column
   
   ### 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