Skip to content

Commit b0df9fa

Browse files
committed
Merge pull request #61 from TEA-ebook/dev/allow-many-theme-colors
Allow many theme colors
2 parents aee5b68 + a7b806e commit b0df9fa

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)