You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "bandow (via GitHub)" <gi...@apache.org> on 2024/07/18 09:26:33 UTC

[I] [Feature] 能不能支持折线图根据数据的区间做不同的渐变颜色呢? [echarts]

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

   ### What problem does this feature solve?
   
   
   能不能支持折线图根据数据的区间做不同的渐变颜色呢?
   
   ### What does the proposed API look like?
   
   能不能支持折线图根据数据的区间做不同的渐变颜色呢?


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


Re: [I] [Feature] 能不能支持折线图根据数据的区间做不同的渐变颜色呢? [echarts]

Posted by "bandow (via GitHub)" <gi...@apache.org>.
bandow commented on issue #20176:
URL: https://github.com/apache/echarts/issues/20176#issuecomment-2236165662

     // areaStyle: {  
                 //   color: function(params) {  
                 //       // const value = params.value[1]; // 假设您正在处理的是折线图中的第二个数据点(索引为1)  
                 //       const value = params[params.length-1]; // 假设您正在处理的是折线图中的第二个数据点(索引为1) 
                 //       if (value > 26) {  
                 //           // 对于大于26的值,使用从红色到深红色的渐变  
                 //           return new echarts.graphic.LinearGradient(0, 0, 0, 1, [  
                 //               {offset: 0, color: 'rgb(255, 0, 0)'}, // 红色  
                 //               {offset: 1, color: 'rgb(128, 0, 0)'}  // 深红色  
                 //           ]);  
                 //       } else if (value >= 22) {  
                 //           // 对于大于等于22且小于等于26的值,使用从绿色到深绿色的渐变  
                 //           return new echarts.graphic.LinearGradient(0, 0, 0, 1, [  
                 //               {offset: 0, color: 'rgb(0, 255, 0)'}, // 绿色  
                 //               {offset: 1, color: 'rgb(0, 128, 0)'}  // 深绿色  
                 //           ]);  
                 //       } else {  
                 //           // 对于小于22的值,使用从蓝色到深蓝色的渐变  
                 //           return new echarts.graphic.LinearGradient(0, 0, 0, 1, [  
                 //               {offset: 0, color: 'rgb(0, 0, 255)'}, // 蓝色  
                 //               {offset: 1, color: 'rgb(0, 0, 128)'}  // 深蓝色  
                 //           ]);  
                 //       }  
                 //   }  
                 // }为什么不生效呢?


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


Re: [I] [Feature] 能不能支持折线图根据数据的区间做不同的渐变颜色呢? [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20176:
URL: https://github.com/apache/echarts/issues/20176#issuecomment-5080627417

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


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


Re: [I] [Feature] 能不能支持折线图根据数据的区间做不同的渐变颜色呢? [echarts]

Posted by "bandow (via GitHub)" <gi...@apache.org>.
bandow commented on issue #20176:
URL: https://github.com/apache/echarts/issues/20176#issuecomment-2236047152

   Can the line chart support different gradient colors based on the data range?


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


Re: [I] [Feature] 能不能支持折线图根据数据的区间做不同的渐变颜色呢? [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #20176: [Feature] 能不能支持折线图根据数据的区间做不同的渐变颜色呢?
URL: https://github.com/apache/echarts/issues/20176


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


Re: [I] [Feature] 能不能支持折线图根据数据的区间做不同的渐变颜色呢? [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #20176:
URL: https://github.com/apache/echarts/issues/20176#issuecomment-2236045168

   @bandow 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**
   
   [Feature] Can the line chart make different gradient colors according to the interval of the data?
   </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


Re: [I] [Feature] 能不能支持折线图根据数据的区间做不同的渐变颜色呢? [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20176:
URL: https://github.com/apache/echarts/issues/20176#issuecomment-5012962486

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


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