Skip to content

Instantly share code, notes, and snippets.

@yakuzaaaa
Created May 14, 2019 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yakuzaaaa/f71cf42498d1be31713a894f2fab5578 to your computer and use it in GitHub Desktop.
Save yakuzaaaa/f71cf42498d1be31713a894f2fab5578 to your computer and use it in GitHub Desktop.
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