100pah commented on issue #9491: Need example for category based coloring of 
lines
URL: 
https://github.com/apache/incubator-echarts/issues/9491#issuecomment-442954151
 
 
   > this is not the same. I saw this one. The difference is, that all y values 
refer to a common set of x values, which is not the case for the vega-lite 
example. I wonder if you can specify x and y together in the series arrays, not 
just the y values.
   
   ```js
   option = {
       legend: {},
       xAxis: {type: 'category'},
       yAxis: {},
       series: [
           {
               name:'A',
               type:'line',
               data: [
                   ['x', 120], 
                   ['z', 132], 
                   ['a', 101]
               ]
           },
           {
               name:'B',
               type:'line',
               data: [
                   ['y', 130], 
                   ['a', 32], 
                   ['z', 61]
               ]
           }
       ]
   };
   ```
   
   
   > Can this be achieved with dimensions, where the third dimension is driving 
the color and creating a new line for each new entry in the 3rd dimension?
   
   Using 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to