如何将参数传递给react-highcharts?

问题描述 投票:0回答:1

documentation中,我看到我可以通过配置,我这样做:

render() {
        let config = this.config;

        return (
            <div className="column">
                <div className="ui segment">
                    <ReactHighcharts config = {config} options = {options}> </ReactHighcharts>

                </div>
            </div>
        )
    }

但在标准高图中也存在.theme()方法,其中我们可以传递额外的参数。如何在react-highcharts组件中传递这些参数?

javascript reactjs highcharts
1个回答
0
投票

从文档中我看到config是一个将用于配置HighCharts的对象。你有没有尝试过这样的事情:

const config = {
  theme: {
    zIndex: 6,
  },
}
© www.soinside.com 2019 - 2024. All rights reserved.