diff --git a/resources/views/widgets/trend.blade.php b/resources/views/widgets/trend.blade.php index b3ebb5b8..f708158e 100644 --- a/resources/views/widgets/trend.blade.php +++ b/resources/views/widgets/trend.blade.php @@ -9,6 +9,16 @@ @endif
+
+
+ + +
+
diff --git a/src/Widgets/Metric.php b/src/Widgets/Metric.php index 865e5fed..c3f000f7 100644 --- a/src/Widgets/Metric.php +++ b/src/Widgets/Metric.php @@ -143,6 +143,7 @@ public function data(Request $request): array { return array_merge(parent::data($request), [ 'ranges' => $this->ranges(), + 'currentRange' => $this->getCurrentRange($request), 'data' => (! $this->async || $request->isTurboFrameRequest()) ? $this->calculate($request) : [], ]); }