From 509c258b0707b6871ce7396105ff9112661ff2e2 Mon Sep 17 00:00:00 2001 From: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com> Date: Fri, 5 Jul 2024 14:55:48 +0530 Subject: [PATCH] chore: custom analytics charts (#5052) --- apiserver/plane/utils/analytics_plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/utils/analytics_plot.py b/apiserver/plane/utils/analytics_plot.py index 0d2564a041..eda3b30ac9 100644 --- a/apiserver/plane/utils/analytics_plot.py +++ b/apiserver/plane/utils/analytics_plot.py @@ -12,7 +12,7 @@ from django.db.models import ( Sum, Value, When, - IntegerField, + FloatField, ) from django.db.models.functions import ( Coalesce, @@ -98,7 +98,7 @@ def build_graph_plot(queryset, x_axis, y_axis, segment=None): # Estimate else: queryset = queryset.annotate( - estimate=Sum(Cast("estimate_point__value", IntegerField())) + estimate=Sum(Cast("estimate_point__value", FloatField())) ).order_by(x_axis) queryset = ( queryset.annotate(segment=F(segment)) if segment else queryset