lundi 23 mars 2015

Setting Highcharts piechart chartDefaults from calling jsx file in React


I am using the following syntax to render a Highcharts PieChart.



var ContainingClass = React.createClass({
render: function() {
return (
<PieChart
title={this.props.title}
series={this.props.series}
/>
);
},
});


This works well, but I need to overwrite the tooltip field in PieChart. What can I change in ContainingClass to make this happen?


Edit: Here is a sample fiddle with PieChart - http://ift.tt/1jomOGV I know that I need to set the tooltip field and could do it in plain javascript or jquery. I don't know how to pass my desired tooltip value from ContainingClass in React.





Aucun commentaire:

Enregistrer un commentaire