Highcharts-ng with drilldown

前端 未结 2 393
情深已故
情深已故 2020-12-11 10:12

I\'ve been using highcharts-ng in my angularjs project. All was doing well but now I need to use some drilldowns to detail my information and it\'s not working using drilldo

相关标签:
2条回答
  • 2020-12-11 10:33

    Just checked code - that plugin doesn't support drilldown module for Highcharts.

    To allow drilldowns, edit sources, about ~104 line add drilldown property:

      // new code:
      if(config.drilldown) {
        mergedOptions.drilldown = config.drilldown;
      };      
      // old code:
      if(config.title) {
        mergedOptions.title = config.title;
      };
      if (config.subtitle) {
        mergedOptions.subtitle = config.subtitle;
      };
      if (config.credits) {
        mergedOptions.credits = config.credits;
      }
    
    0 讨论(0)
  • 2020-12-11 10:40

    The plugin use extend(defaultOptions, config.options) to override the default options. For options like 'title','subtitle', it will read the properties in your config. But for options like 'drilldown', it won't.

    So, you can just change the drilldown setting into config.options to make this work,and any other setting not working you can try this way first.

    0 讨论(0)
提交回复
热议问题