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:47 UTC

[GitHub] [echarts] HSdiana opened a new issue, #17886: 折线使用visualMap多维度渐变[Bug]

HSdiana opened a new issue, #17886:
URL: https://github.com/apache/echarts/issues/17886

   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1.直接配置options代码如下
   ```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: [
           '1月',
           '2月',
           '3月',
           '4月',
           '5月',
           '6月',
           '7月',
           '8月',
           '9月',
           '10月',
           '11月',
           '12月'
         ]
       }
     ],
     yAxis: [{}],
     series: [
       {
         type: 'line',
         showSymbol: false,
         data: [
           ['1月', 100, 200],
           ['2月', 11, 300],
           ['3月', 200, 0],
           ['4月', 300, 300],
           ['5月', 2, 342],
           ['6月', 78, 12],
           ['7月', 53, 231],
           ['8月', 321, 31],
           ['9月', 453, 45],
           ['10月', 642, 64],
           ['11月', 11, 389],
           ['12月', 298, 89]
         ]
       }
     ]
   };
   ```
   2.我想按照data里面的最后一列渲染颜色,y轴展示第二列的数据
   
   ### Current Behavior
   
   我想按照data里面的最后一列渲染颜色,y轴展示第二列的数据
   
   ### Expected Behavior
   
   我想按照data里面的最后一列渲染颜色,y轴展示第二列的数据
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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.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] lin752537111 commented on issue #17886: [Bug] 折线使用visualMap多维度渐变

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

   你好 呀 可以做类似这样的图吗
   ![image](https://user-images.githubusercontent.com/84608271/200796188-5eefd891-e016-4e19-a21e-00b2a020ac99.png)
   


-- 
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 #17886: [Bug] 折线使用visualMap多维度渐变

Posted by GitBox <gi...@apache.org>.
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


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

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

   你好呀 可以做类型这样的图吗
   ![image](https://user-images.githubusercontent.com/84608271/200795795-571b94f9-eacc-428d-92dc-7a8849930344.png)
   


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