Skip to content

Commit

Permalink
Merge pull request #61 from TEA-ebook/dev/allow-many-theme-colors
Browse files Browse the repository at this point in the history
Allow many theme colors
  • Loading branch information
ratibus committed Jan 22, 2015
2 parents aee5b68 + a7b806e commit b0df9fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jquery.highchartTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@
var lineShadow = $table.data('graph-line-shadow');
var lineWidth = $table.data('graph-line-width') || 2;

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

0 comments on commit b0df9fa

Please sign in to comment.