From c3ce644deea7bbcdb45ca6853f315fb13e08517f Mon Sep 17 00:00:00 2001
From: Akshita Goyal <36129505+gakshita@users.noreply.github.com>
Date: Mon, 21 Oct 2024 18:50:52 +0530
Subject: [PATCH] Fix: graph area fill issue (#1570)
* fix: graph smoothness
* fix: area chart smoothness
* fix: diff area
* fix: added ids for all area charts
---
.../cycles/active-cycle/cycle-chart/chart.tsx | 38 ++++++++++++-------
1 file changed, 25 insertions(+), 13 deletions(-)
diff --git a/web/ee/components/cycles/active-cycle/cycle-chart/chart.tsx b/web/ee/components/cycles/active-cycle/cycle-chart/chart.tsx
index a892333f69..1538f53c29 100644
--- a/web/ee/components/cycles/active-cycle/cycle-chart/chart.tsx
+++ b/web/ee/components/cycles/active-cycle/cycle-chart/chart.tsx
@@ -54,6 +54,7 @@ export const ActiveCycleChart = observer((props: Props) => {
let startDate: Date | string = new Date(cycle.start_date!);
const today = format(startOfToday(), "yyyy-MM-dd");
const { diffGradient, dataWithRange } = chartHelper(data, endDate, plotType, colors);
+ const cycleId = cycle.id;
endDate = endDate.toISOString().split("T")[0];
startDate = startDate.toISOString().split("T")[0];
@@ -74,7 +75,7 @@ export const ActiveCycleChart = observer((props: Props) => {
{/* Time left */}
{
{/* Beyond Time */}
{
{/* actual */}
-
+
{/* Started */}
-
+
{/* Scope */}
-
+
{/* Ideal */}
-
+
{/* Ideal - Actual */}
- {diffGradient}
+ {diffGradient}
{
{/* Line charts */}
{/* Time left */}
-
+
{
{/* Beyond Time */}
{/* Ideal - Actual */}
-
+
{/* Ideal */}
{
{
{
{