How to achieve Drill up (Back To 'Chart 1'

2019-08-19 13:46发布

I am implementing HighCharts Drill Down feature using GWT ('highcharts-1.7.0.jar') ,with the help of the javascript reference

http://jsfiddle.net/ffc4jhb7/

and GWT API reference

http://www.moxiegroup.com/moxieapps/gwt-highcharts/apidocs/org/moxieapps/gwt/highcharts/client/Drilldown.html#setDrillUpButtonRelativeTo(org.moxieapps.gwt.highcharts.client.MapNavigation.AlignTo)

I am able to achieve 'Drill Down' but 'Back To' (Drill Up) option is not working. I am getting 'Back To XXX'Button, but when I click on it, it is clearing the plots in the graph and the graph remains the same and not going backward.

I am using the following APIs.

    chart.setDrilldown( new Drilldown().setSeries( drillSeries ) );
    chart.addSeries( series ); 
    // 'series' variable is loaded with Points[] which has drilldown Id references

Not sure why 'Drill Up' is not working after Drill Down. Please Help.

Observed Few Things:

When the Parent is 'Column' chart and Drill-down(child) chart is 'Line' chart, then it clears the plots , stays there and throws the below error in Browser Console(FireFox v.24)

NS_ERROR_FAILURE: Failure highcharts.js:"57"

When I make both the Parent and Drill-down(child) chart as 'Column',then Pressing Back button is taking back to the Parent chart Again I do drill down the columns are not proper(only one column appears).

< Errors in Console log... >

When I do inspect element then I get the proper chart with all columns.

I have given the PlotOptions as SeriesPlotOptions and didn't set the chart type to 'Chart' instance, instead I am setting the chart type as 'Column' or 'Line' in the 'Series'.

0条回答
登录 后发表回答