kirjs / react-highcharts

React wrapper for Highcharts library

Home Page:http://kirjs.github.io/react-highcharts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modifying seriesType and prototype

tsetenl2 opened this issue · comments

I need to modify the boxplot prototype to support multiple vertical lines instead of the single line for the median. This is demonstrated here http://jsfiddle.net/tw5h1rxf/. How can I achieve this override before rendering? Is it simply just wrapping like this:

import ReactHighCharts from 'react-highcharts'
import More from 'highcharts-more'
More(ReactHighCharts.Highcharts)

(function(H){
......
})(ReactHighCharts.Highcharts);

But boxplots are obtained from importing 'highcharts-more' so I don't think this would work. Do I pass More(ReactHighCharts.Highcharts) to the wrapper? Also, will this modify the boxplot globally? I need this toggle between different boxplot types on a given page so I'm not sure this would work correctly.

Closing and there has been no activity for a while, if this is still relevant, please feel free to reopen