Skip to content

Commit 497fbbe

Browse files
author
Pascal Martin
committed
Added option "data-graph-xaxis-labels-font-size".
=> Allows one to specify the font-size that is to be used for labels on the X-axis. (Useful if you have labels that are too long, and, hence, take too much space on your graph)
1 parent 79988a0 commit 497fbbe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jquery.highchartTable.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@
347347
{
348348
rotation: $table.data('graph-xaxis-rotation') || 0,
349349
align: $table.data('graph-xaxis-align') || 'center',
350-
enabled: typeof xAxisLabelsEnabled != 'undefined' ? xAxisLabelsEnabled : true
350+
enabled: typeof xAxisLabelsEnabled != 'undefined' ? xAxisLabelsEnabled : true,
351+
style: {
352+
fontSize: $table.data('graph-xaxis-labels-font-size') || '100%'
353+
}
351354
},
352355
startOnTick: $table.data('graph-xaxis-start-on-tick'),
353356
endOnTick: $table.data('graph-xaxis-end-on-tick'),

0 commit comments

Comments
 (0)