Skip to content

Commit b208df2

Browse files
committed
Merge pull request #33 from BenoitLeveque/patch-1
fix issue #32 default value must be undefined
2 parents 2315f25 + 6e3135e commit b208df2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

jquery.highchartTable.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
var vlinex = $th.data('graph-vline-x');
129129
if (typeof vlinex == 'undefined') {
130130
thGraphConfig.scale = typeof columnScale != 'undefined' ? parseFloat(columnScale) : 1;
131-
thGraphConfig.graphType = serieGraphType;
131+
thGraphConfig.graphType = serieGraphType == 'column' && isGraphInverted ? 'bar' : serieGraphType;;
132132
thGraphConfig.stack = serieStackGroup;
133133
thGraphConfig.unit = $th.data('graph-unit');
134134
columns[indexTh] = thGraphConfig;
@@ -157,10 +157,9 @@
157157
enabled: false
158158
},
159159
dataLabels: {
160-
x: isGraphInverted ? 15 : 0,
161160
enabled: column.dataLabelsEnabled,
162161
color: column.dataLabelsColor,
163-
align: $table.data('graph-datalabels-align') || 'center'
162+
align: $table.data('graph-datalabels-align') || (globalGraphType == 'column' && isGraphInverted == 1 ? undefined : 'center')
164163
}
165164
};
166165

0 commit comments

Comments
 (0)