You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/06/12 09:54:05 UTC

[GitHub] [incubator-echarts] pissang edited a comment on issue #12489: Improve theme documentation

pissang edited a comment on issue #12489:
URL: https://github.com/apache/incubator-echarts/issues/12489#issuecomment-643185207


   Hi @linssen, sorry for the late reply.
   
   The configuration of the theme is very similar to the option. The only difference is series in theme is described in a map.
   
   For example:
   
   A typical option is : 
   ```js
   option = {
     series: [{
        type: 'bar',
        itemStyle: { color:  }
     }]
   }
   ```
   
   In theme, it needs to be:
   ```js
   theme = {
     bar: {
        itemStyle: { color:  }
     }
   }
   ```
   
   Besides this tiny difference, all the configurations in option can be described in theme, it will override the default value provided by echarts. Also, it can be override by the user option.
   
   PS: @Ovilia did a visual theme builder https://www.echartsjs.com/theme-builder/. But currently, the UI is still in Chinese.


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

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