|
@@ -3,7 +3,6 @@ import "nouislider";
|
|
|
|
|
|
const template = `<div>
|
|
const template = `<div>
|
|
<div class="line-heatmap-controls">
|
|
<div class="line-heatmap-controls">
|
|
- <p>Cade o tempo no log?</p>
|
|
|
|
<div id="line-heatmap-slider"></div>
|
|
<div id="line-heatmap-slider"></div>
|
|
</div>
|
|
</div>
|
|
<div id="line-heatmap-canvas">
|
|
<div id="line-heatmap-canvas">
|
|
@@ -51,12 +50,13 @@ function init (elementId, logString) {
|
|
function updateLogString (logString) {
|
|
function updateLogString (logString) {
|
|
const logData = logTransform(logString);
|
|
const logData = logTransform(logString);
|
|
stateObject['data'] = logData;
|
|
stateObject['data'] = logData;
|
|
- stateObject['heatmap'].noUiSlider.updateOptions({
|
|
|
|
|
|
+ stateObject['slider'].noUiSlider.updateOptions({
|
|
range: {
|
|
range: {
|
|
'min': 1,
|
|
'min': 1,
|
|
'max': logData.length
|
|
'max': logData.length
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ stateObject['heatmap'].setTrackData(logData);
|
|
}
|
|
}
|
|
|
|
|
|
function logTransform (logString) {
|
|
function logTransform (logString) {
|