Skip to content

Commit

Permalink
fix: Add appropriate default resolution for bar chart (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
diehbria authored Feb 28, 2022
1 parent 80b7c4e commit ddce235
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
ProviderWithViewport,
TimeSeriesData,
TimeSeriesDataRequest,
HOUR_IN_MS,
DAY_IN_MS,
} from '@iot-app-kit/core';

@Component({
Expand All @@ -35,6 +37,11 @@ export class IotBarChart {

private defaultSettings: TimeSeriesDataRequestSettings = {
fetchFromStartToEnd: true,
resolution: {
[0]: '1m',
[HOUR_IN_MS]: '1hr',
[DAY_IN_MS * 5]: '1day',
},
};

buildProvider() {
Expand Down

0 comments on commit ddce235

Please sign in to comment.