wrong bar highlight colors

darkwebdev avatardarkwebdev created an issue

I use $.jqplot.CategoryAxisRenderer with colored bar series and want to highlight them with custom colors. Part of my config: seriesDefaults: { renderer: $.jqplot.BarRenderer, rendererOptions: { highlightColors: ['red', 'green', 'blue'] } }, seriesColors: ['lightred', 'lightgreen', 'lightblue'],

So when I move mouse over any of three (different-colored) bars of the first group they are highlighted with lightred (instead of three colors - 'lightred', 'lightgreen', 'lightblue').

That's because there's a bug in line https://bitbucket.org/cleonello/jqplot/src/15f3fbfd032f/src/plugins/jqplot.barRenderer.js#cl-634 , we must replace

var opts = {fillStyle: s.highlightColors[pidx]};

with

var opts = {fillStyle: s.highlightColors[sidx]};

Sorry that I couldn't make a patch.

Comments (1)

  1. 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.