Skip to content

Commit

Permalink
power label to uW
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-wu1 committed Aug 2, 2023
1 parent cd6033a commit 4698a69
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions frontend/src/charts/pwrChart/pwrChart.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { React } from "react";
import { Line } from "react-chartjs-2";
import "chartjs-adapter-luxon";
import { zoomOptions } from "../defaultChartOptions";
import PropTypes from "prop-types";
import { React } from 'react';
import { Line } from 'react-chartjs-2';
import 'chartjs-adapter-luxon';
import { zoomOptions } from '../defaultChartOptions';
import PropTypes from 'prop-types';

export default function PwrChart(props) {
const data = props.data;
Expand All @@ -11,12 +11,12 @@ export default function PwrChart(props) {
responsive: true,
scales: {
x: {
position: "bottom",
position: 'bottom',
title: {
display: true,
text: "Time",
text: 'Time',
},
type: "time",
type: 'time',
ticks: {
autoSkip: false,
autoSkipPadding: 50,
Expand All @@ -27,15 +27,15 @@ export default function PwrChart(props) {
},
time: {
displayFormats: {
day: "D",
day: 'D',
},
},
},
y: {
beginAtZero: true,
title: {
display: true,
text: "Power (µV)",
text: 'Power (µW)',
},
},
},
Expand Down

0 comments on commit 4698a69

Please sign in to comment.