dark mode and websockets
[kismet-logviewer.git] / logviewer / static / js / jquery.kismet.channeldisplay.js
index 40f30cb..5a3dfd5 100644 (file)
 
                     // Build the dataset record
                     var ds = {
+                        stack: 'bar',
                         label:  label,
                         fill: true,
                         lineTension: 0.1,
                     state.timegraph_chart.data.datasets = datasets;
                     state.timegraph_chart.data.labels = pointtitles;
 
-                    state.timegraph_chart.update(0);
+                    state.timegraph_chart.update();
                 }
             } else {
                 // 'now', but default - if for some reason we didn't get a
                             datasets: [
                                 {
                                     label: "Devices per Channel",
-                                    backgroundColor: 'rgba(160, 160, 160, 1)',
+                                    backgroundColor: kismet_theme.graphBasicColor,
                                     data: devnums,
                                     borderWidth: 1,
                                 }