feat(dashboard): set initial drill down period
Change default drill down period from LAST_7_DAYS to LAST_24_HOURS and preserve current period when drilling down on chart click
This commit is contained in:
parent
d3b8c35058
commit
5ca97ceedd
2 changed files with 2 additions and 1 deletions
|
|
@ -83,6 +83,7 @@ function WidgetWrapperNew(props: Props & RouteComponentProps) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const onChartClick = () => {
|
const onChartClick = () => {
|
||||||
|
dashboardStore.setDrillDownPeriod(dashboardStore.period);
|
||||||
// if (!isWidget || isPredefined) return;
|
// if (!isWidget || isPredefined) return;
|
||||||
props.history.push(
|
props.history.push(
|
||||||
withSiteId(
|
withSiteId(
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ export default class DashboardStore {
|
||||||
|
|
||||||
comparisonFilter: Filter = new Filter();
|
comparisonFilter: Filter = new Filter();
|
||||||
|
|
||||||
drillDownPeriod: Record<string, any> = Period({ rangeName: LAST_7_DAYS });
|
drillDownPeriod: Record<string, any> = Period({ rangeName: LAST_24_HOURS });
|
||||||
|
|
||||||
selectedDensity: number = 7; // depends on default drilldown, 7 points here!!!;
|
selectedDensity: number = 7; // depends on default drilldown, 7 points here!!!;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue