Skip to content

Commit 8f135c8

Browse files
committed
remove default value for xaxis label font size
1 parent 81b654b commit 8f135c8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

jquery.highchartTable.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,14 @@
302302

303303
var xAxisLabelsEnabled = $table.data('graph-xaxis-labels-enabled');
304304

305+
var xAxisLabelStyle = {};
306+
var xAxisLabelFontSize = $table.data('graph-xaxis-labels-font-size');
307+
308+
if (typeof xAxisLabelFontSize != 'undefined')
309+
{
310+
xAxisLabelStyle.fontSize = xAxisLabelFontSize;
311+
}
312+
305313
var highChartConfig = {
306314
colors: colors,
307315
chart: {
@@ -348,9 +356,7 @@
348356
rotation: $table.data('graph-xaxis-rotation') || 0,
349357
align: $table.data('graph-xaxis-align') || 'center',
350358
enabled: typeof xAxisLabelsEnabled != 'undefined' ? xAxisLabelsEnabled : true,
351-
style: {
352-
fontSize: $table.data('graph-xaxis-labels-font-size') || '1em'
353-
}
359+
style: xAxisLabelStyle
354360
},
355361
startOnTick: $table.data('graph-xaxis-start-on-tick'),
356362
endOnTick: $table.data('graph-xaxis-end-on-tick'),

0 commit comments

Comments
 (0)