Skip to content

Commit

Permalink
Update app.js better graph (#42)
Browse files Browse the repository at this point in the history
Changed graph type for better visibility.
  • Loading branch information
ricariel authored Apr 9, 2024
1 parent 740bace commit a6c4ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $(document).ready(function () {
fillGradient.addColorStop(1,'rgba(192, 224, 248, 1)')

const homeUsage = new Chart(homeUsagectx, {
type: "bar",
type: "line",
data: {
datasets: [{
label: "Home Power Consumption (W)",
Expand Down Expand Up @@ -276,7 +276,7 @@ $(document).ready(function () {
const batteryPowerctx = document.getElementById("batteryPower").getContext("2d");
const timeseries_labels = getTimeSeriesLabels();
const batteryPower = new Chart(batteryPowerctx, {
type: "bar",
type: "line",
data: {
datasets: [
{
Expand Down

0 comments on commit a6c4ff1

Please sign in to comment.