app/assets/javascripts/highcharts/modules/drilldown.js in highcharts-rails-4.1.6 vs app/assets/javascripts/highcharts/modules/drilldown.js in highcharts-rails-4.1.7
- old
+ new
@@ -640,10 +640,14 @@
if (point.drilldown) {
// Add the click event to the point
H.addEvent(point, 'click', function () {
- point.doDrilldown();
+ if (series.xAxis && series.chart.options.drilldown.allowPointDrilldown === false) {
+ series.xAxis.drilldownCategory(x);
+ } else {
+ point.doDrilldown();
+ }
});
/*wrap(point, 'importEvents', function (proceed) { // wrapping importEvents makes point.click event work
if (!this.hasImportedEvents) {
proceed.call(this);
H.addEvent(this, 'click', function () {