Last active
September 3, 2017 10:26
-
-
Save haldarmahesh/37b13532fe3902d0d0eeee5ff7590796 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
componentDidMount() { | |
if (this.props.modules) { | |
this.props.modules.forEach(function (module) { | |
module(Highcharts); | |
}); | |
} | |
// Set container which the chart should render to. | |
this.chart = new Highcharts[this.props.type || "Chart"]( | |
this.props.container, | |
this.props.options | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment