How to achieve Drill up (Back To 'Chart 1') using GWT highcharts

南楼画角 提交于 2019-12-24 23:26:54

问题


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'.

来源:https://stackoverflow.com/questions/56577678/how-to-achieve-drill-up-back-to-chart-1-using-gwt-highcharts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!