Skip to content

Commit

Permalink
fix: add series label
Browse files Browse the repository at this point in the history
  • Loading branch information
sampov2 committed Apr 3, 2024
1 parent 8522d78 commit 2c60977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/MathMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ startAppListening({
effect: async (_action, listenerApi) => {
const { facility: { intakeVolume, temperatureDelta, facilityEffectivenessFactor } } = listenerApi.getState()

const series = { values: [] as Array<number> };
const series = { label: "Monthly output", values: [] as Array<number> };
const xAxis = { label: 'Month', values: [] as Array<string> }

Array(12).fill(0).forEach((_v, month : number) => {
Expand Down
1 change: 1 addition & 0 deletions src/types/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ interface Axis <T>{


export interface Series {
label: string,
values: Array<number>
}

Expand Down

0 comments on commit 2c60977

Please sign in to comment.