You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/11/29 19:17:55 UTC

[GitHub] 100pah edited a comment on issue #9491: Need example for category based coloring of lines

100pah edited a comment 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?
   
   Built-in dynamic series is not supported yet.
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org