Highcharts-ng with drilldown

前端 未结 2 395
情深已故
情深已故 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;
      }
    

提交回复
热议问题