Skip to content
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
Labels

Comments

@KacperMadej
Copy link
Contributor

@KacperMadej 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant