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/10/31 18:58:25 UTC

[GitHub] 100pah edited a comment on issue #9171: fix #8009 & #5969, symbol symbolSize and opacity setting for category itemStyle in graph

100pah edited a comment on issue #9171: fix #8009 & #5969, symbol symbolSize and opacity setting for category itemStyle in graph
URL: https://github.com/apache/incubator-echarts/pull/9171#issuecomment-434807414
 
 
   > little confused about the relationship between model and data
   
   `data` is an instance of `echarts/src/data/List`, `model` is an instance of `echarts/src/model/Model`, or, specifically, `echarts/src/model/Series` in this case.
   
   
   
   Both of them contains user settings in echarts option, for example:
   ```js
   let option = {
       series: {
           name: 'asdf',
           type: 'line',
           itemStyle: { ... },
           data: [ ... ]
       }
   };
   ```
   The data properties is saved into a `data` instance, and the rest of the definitions of series is saved into a series model. And data is a propertied mounted on a series (model).
   ```js
   let data = model.getData();
   ```
   

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