Created
May 14, 2019 07:28
-
-
Save yakuzaaaa/f71cf42498d1be31713a894f2fab5578 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var themeObject = { | |
name: 'custom', | |
theme: { | |
base: { | |
chart: { | |
showlegend: '1' | |
}, | |
dataset: [{ | |
data: [{ | |
color: '#ff0000' | |
}] | |
}] | |
} | |
} | |
}; | |
// Now we create a theme extension with the above theme object | |
var theme = { | |
extension: themeObject, | |
name: 'customTheme', | |
type: 'theme' | |
}; | |
// We are now required to add the theme extension as a dependency to fusioncharts | |
FusionCharts.addDep(theme); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment