@@ -26,7 +26,6 @@ function init (elementId, logString) {
start: [1, logData.length],
connect: true,
margin: 1,
- step: 1,
range: {
'min': 1,
'max': logData.length
@@ -18,9 +18,12 @@ export default class LineHeatmap {
setTrackData (data) {
this.heatmap.setData({
- max: Number.MAX_SAFE_INTEGER,
+ max: 0,
min: 0,
- data: data
+ data: []
+ });
+ data.forEach(point => {
+ this.heatmap.addData(point);
});
}