Skip to content

Commit a7b806e

Browse files
author
Agnès Haasser
committed
Mod: allow many theme colors
1 parent aee5b68 commit a7b806e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery.highchartTable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@
315315
var lineShadow = $table.data('graph-line-shadow');
316316
var lineWidth = $table.data('graph-line-width') || 2;
317317

318-
for(var i=0; i<9; i++) {
318+
var nbOfColors = Math.max(defaultColors.length, themeColors.length);
319+
for(var i=0; i < nbOfColors; i++) {
319320
var dataname = 'graph-color-' + (i+1);
320321
colors.push(typeof $table.data(dataname) != 'undefined' ? $table.data(dataname) : typeof themeColors[i] != 'undefined' ? themeColors[i] : defaultColors[i]);
321322
}

0 commit comments

Comments
 (0)