Ovilia commented on issue #20980:
URL: https://github.com/apache/echarts/issues/20980#issuecomment-2893427650

   ```js
   color: {
     type: 'linear',
     x: ...,
     y: ...,
     x2: ...,
     y2: ...,
     global: true,
     colorStops: [
       {
         offset: 0,
         color: ...
       },
       {
         offset: 1,
         color: ...
       }
     ]
   }
   ```
   
   When `global: true`, you can pass the position of the start node to `x` and 
`y` and that of end node to `x2` and `y2`. Note that you need to calculate the 
layout by yourself, otherwise, there is no way to get the position of nodes.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to