TableRender({
table: w.general,
style: w.style,
columns: w.data.columns,
records: w.data.records,
editMask: w.data.editMask,
rowNames: w.data.rowNames,
colNames: w.data.colNames,
showToolbar: false
});
var td;
let table = document.getElementById('table-'+w.general.renderTo);
for ( let i = 3; i < table.rows.length; i ++){
let data = [];
for (let n = 1; n <table.rows[i].cells.length-1; n++){
if (isNaN(parseInt(table.rows[i].cells[n].innerHTML))) { data.push(0)}
else {data.push(parseInt(table.rows[i].cells[n].innerHTML))}
}
table.rows[i].cells[table.rows[i].cells.length-1].innerHTML= '<div style="height: 65px"></div>'
Highcharts.chart(table.rows[i].cells[table.rows[i].cells.length-1].firstChild,{
xAxis: {
labels: {
enabled: false
},
title: {
text: null
},
startOnTick: false,
endOnTick: false,
tickPositions: []
},
yAxis: {
endOnTick: false,
startOnTick: false,
labels: {
enabled: false
},
title: {
text: null
},
tickPositions: [0]
},
plotOptions: {
series: {
animation: false,
lineWidth: 1,
shadow: false,
states: {
hover: {
lineWidth: 1
}
},
marker: {
radius: 1,
states: {
hover: {
radius: 2
}
}
},
fillOpacity: 0.25
},
column: {
negativeColor: '#910000',
borderColor: 'silver'
}
},
series: [{
data: data,
pointStart: 1
}],
chart: {
backgroundColor: "#ffffff"},
legend: {
enabled: false
},
tooltip: {
hideDelay: 0,
outside: true,
shared: true
},
});
}