1. Chris Leonello
  2. jqplot
Issue #413 new

wrong bar highlight colors

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]};


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

Sorry that I couldn't make a patch.

Comments (1)

  1. Log in to comment