Skip to content
Snippets Groups Projects
Commit 40c2e5d1 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

formatting

parent 5b51efc7
No related branches found
No related tags found
1 merge request!34Rework to use a common font config across graphs and add x-axis and legends on top and bottom of graphs
...@@ -12,9 +12,7 @@ import { ...@@ -12,9 +12,7 @@ import {
Tooltip, Tooltip,
Legend, Legend,
} from 'chart.js'; } from 'chart.js';
import {BasicDataset} from "../../Schema"; import { BasicDataset } from "../../Schema";
ChartJS.defaults.font.size = 16;
ChartJS.register( ChartJS.register(
...@@ -45,10 +43,10 @@ const options = { ...@@ -45,10 +43,10 @@ const options = {
}; };
interface inputProps { interface inputProps {
data: BasicDataset data: BasicDataset
} }
function LineGraph({data}: inputProps): ReactElement { function LineGraph({ data }: inputProps): ReactElement {
return ( return (
<Line data={data} options={options} /> <Line data={data} options={options} />
); );
......
...@@ -4,4 +4,4 @@ export enum Sections { ...@@ -4,4 +4,4 @@ export enum Sections {
ConnectedUsers = 'CONNECTED USERS', ConnectedUsers = 'CONNECTED USERS',
Network = 'NETWORK', Network = 'NETWORK',
Services = 'SERVICES', Services = 'SERVICES',
}; }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment