New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drilldown: data points set as array with keys used prevents successful drilldownCategory #8008

Closed
KacperMadej opened this Issue Mar 14, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@KacperMadej
Contributor

KacperMadej commented Mar 14, 2018

Behaviour

When point data is loaded as array with defined keys and drilldownFromPoint is disable then drilldownCategory cannot find the drilldown property on data point (because it's not there) in getDDPoints.

Relevant code:

series.options.data[i].drilldown

In:

H.Axis.prototype.getDDPoints = function (x) {
var ret = [];
each(this.series, function (series) {
var i,
xData = series.xData,
points = series.points;
for (i = 0; i < xData.length; i++) {
if (
xData[i] === x &&
series.options.data[i] &&
series.options.data[i].drilldown
) {
ret.push(points ? points[i] : true);
break;
}
}
});
return ret;
};

Live demo with steps to reproduce

Edited default demo for allowPointDrilldown: false
http://jsfiddle.net/BlackLabel/69wytk5x/

Steps:

  1. click on a column to try drilling down
  2. only an empty drill up button is added

@KacperMadej KacperMadej added the Bug label Mar 14, 2018

TorsteinHonsi added a commit that referenced this issue Mar 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment