huang-xiao-jian / echarts-ng

angularjs decoration for Baidu echarts.
MIT License
78 stars 23 forks source link

Change theme and import new ones #5

Closed sbokorna closed 8 years ago

sbokorna commented 8 years ago

Hello,

I would like to change the theme with one from the original echarts site (the blue one).

How can I do it?

Thanks

huang-xiao-jian commented 8 years ago

I suppose you already import the theme script, then try the code below. I hope it helpful.

angular.module('application').config(function($echartsProvider) {
  $echartsProvider.setGlobalOption({
    theme: 'theme name here'
  });
});
sbokorna commented 8 years ago

Thanks, this is the good way!