pointLabels with hindeZeros and zooming

kikconnect avatarkikconnect created an issue

When pointLabels has HideZero set to true; zooming doesn't work.

This is because emptyForce() is being called on elements not being displayed. My fix is to use a for in loop instead of a normal for loop for emptyForce() in jqplot.pointLabels.js

Comments (1)

  1. itpark2

    I would vote to have this bug fixed asap as it causes not displaying the chart at all (and not the next charts I have on the same page because of this JS error) and the fix is pretty simple.

    In the meantime I fixed the issue this way: in jqplot.pointLabels.js, I replaced line 276: p._elems[i].emptyForce(); with: if(p._elems[i]) p._elems[i].emptyForce();

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.