Closed Otoris closed 6 years ago
Looks like this is completely undocumented according to an email I received from the Fusioncharts team. Documentation needs updating as it appears it's showing older examples.
To use a theme see the following code:
import React from 'react';
import ReactDOM from 'react-dom'
import ReactFC from 'react-fusioncharts';
import FusionCharts from 'fusioncharts';
import charts from 'fusioncharts/fusioncharts.charts';
import theme from 'fusioncharts/themes/fusioncharts.theme.ocean';
charts(FusionCharts)
theme(FusionCharts)
import React from 'react';
import ReactDOM from 'react-dom'
import ReactFC from 'react-fusioncharts';
import FusionCharts from 'fusioncharts';
import Charts from 'fusioncharts/fusioncharts.charts';
import OceanTheme from 'fusioncharts/themes/fusioncharts.theme.ocean';
ReactFC.fcRoot(FusionCharts, Charts, OceanTheme);
Please refer the updated documentation to resolve dependencies, closing for now
Following examples in this project, I import the ocean theme as oceanIgnore:
However, I only get the default theme:
Is it being applied incorrectly? There are zero error messages or warnings in the console to suggest something isn't working. I've also tried manually including them with script tags, this hasn't worked either.