Skip to content

Commit

Permalink
fix: theme settings (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincendep authored Feb 19, 2021
1 parent c2ea603 commit 60782cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class ApexChartsWrapper extends PolymerElement {
this.config.subtitle = JSON.parse(this.subtitle);
}
if (this.theme) {
this.config.theme = this.theme;
this.config.theme = JSON.parse(this.theme);
} else if (!this.config.fill || !this.config.fill.type || !Array.isArray(this.config.fill.type) || this.config.fill.type[0] !== "gradient") {
if (backgroundColor && this.color(backgroundColor)) {
this.config.theme = {
Expand Down

0 comments on commit 60782cc

Please sign in to comment.