Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
huss committed Jul 11, 2023
1 parent f86670e commit 28bbff7
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 46 deletions.
44 changes: 22 additions & 22 deletions src/client/app/containers/BarChartContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,41 +168,41 @@ function mapStateToProps(state: State) {
if (raw) {
// This is a raw type graphing unit so cannot plot
layout = {
"xaxis": {
"visible": false
'xaxis': {
'visible': false
},
"yaxis": {
"visible": false
'yaxis': {
'visible': false
},
"annotations": [
'annotations': [
{
"text": `<b>${translate('bar.raw')}</b>`,
"xref": "paper",
"yref": "paper",
"showarrow": false,
"font": {
"size": 28
'text': `<b>${translate('bar.raw')}</b>`,
'xref': 'paper',
'yref': 'paper',
'showarrow': false,
'font': {
'size': 28
}
}
]
}
} else if (datasets.length === 0) {
// There is not data so tell user.
layout = {
"xaxis": {
"visible": false
'xaxis': {
'visible': false
},
"yaxis": {
"visible": false
'yaxis': {
'visible': false
},
"annotations": [
'annotations': [
{
"text": `${translate('select.meter.group')}`,
"xref": "paper",
"yref": "paper",
"showarrow": false,
"font": {
"size": 28
'text': `${translate('select.meter.group')}`,
'xref': 'paper',
'yref': 'paper',
'showarrow': false,
'font': {
'size': 28
}
}
]
Expand Down
24 changes: 12 additions & 12 deletions src/client/app/containers/CompareChartContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,23 +145,23 @@ function mapStateToProps(state: State, ownProps: CompareChartContainerProps): an
if (selectUnitState.unitRepresent === UnitRepresentType.raw) {
// This is a raw type graphing unit so cannot plot
layout = {
"xaxis": {
"visible": false
'xaxis': {
'visible': false
},
"yaxis": {
"visible": false
'yaxis': {
'visible': false
},
"annotations": [
'annotations': [
{
"text": `<b>${translate('compare.raw')}</b>`,
"xref": "paper",
"yref": "paper",
"showarrow": false,
"font": {
"size": 18
'text': `<b>${translate('compare.raw')}</b>`,
'xref': 'paper',
'yref': 'paper',
'showarrow': false,
'font': {
'size': 18
}
}
],
]
}
} else {
layout = {
Expand Down
24 changes: 12 additions & 12 deletions src/client/app/containers/LineChartContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function mapStateToProps(state: State) {
// may not yet be in state so verify with the second condition on the if.
// Note the second part may not be used based on next checks but do here since simple.
if (byMeterID !== undefined && byMeterID[timeInterval.toString()] !== undefined) {
let meterArea = state.meters.byMeterID[meterID].area;
const meterArea = state.meters.byMeterID[meterID].area;
// We either don't care about area, or we do in which case there needs to be a nonzero area.
if (!state.graph.areaNormalization || (meterArea > 0 && state.meters.byMeterID[meterID].areaUnit != AreaUnitType.none)) {
// Convert the meter area into the proper unit if normalizing by area or use 1 if not so won't change reading values.
Expand Down Expand Up @@ -231,20 +231,20 @@ function mapStateToProps(state: State) {
if (datasets.length === 0) {
// There is not data so tell user.
layout = {
"xaxis": {
"visible": false
'xaxis': {
'visible': false
},
"yaxis": {
"visible": false
'yaxis': {
'visible': false
},
"annotations": [
'annotations': [
{
"text": `${translate('select.meter.group')}`,
"xref": "paper",
"yref": "paper",
"showarrow": false,
"font": {
"size": 28
'text': `${translate('select.meter.group')}`,
'xref': 'paper',
'yref': 'paper',
'showarrow': false,
'font': {
'size': 28
}
}
]
Expand Down

0 comments on commit 28bbff7

Please sign in to comment.