From 03cf81cbb0c65168f50e8b6454a25279c1d00f47 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 10 Apr 2025 16:14:16 -0600 Subject: [PATCH] update line tension --- .../BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts | 2 +- .../charts/BusterChartJS/hooks/useTrendlines/useTrendlines.ts | 2 +- web/src/layouts/AppAssetCheckLayout/useGetAsset.tsx | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts b/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts index ff53b0497..d3583794f 100644 --- a/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts +++ b/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts @@ -152,7 +152,7 @@ const getLabelPosition = (isStackedArea: boolean) => { const getLineTension = (lineType: ColumnSettings['lineType']) => { switch (lineType) { case 'smooth': - return 0.125; + return 0.375; default: return 0; } diff --git a/web/src/components/ui/charts/BusterChartJS/hooks/useTrendlines/useTrendlines.ts b/web/src/components/ui/charts/BusterChartJS/hooks/useTrendlines/useTrendlines.ts index f001bc328..018f8d081 100644 --- a/web/src/components/ui/charts/BusterChartJS/hooks/useTrendlines/useTrendlines.ts +++ b/web/src/components/ui/charts/BusterChartJS/hooks/useTrendlines/useTrendlines.ts @@ -92,7 +92,7 @@ export const useTrendlines = ({ pointRadius: 0, yAxisID: 'y', stack: id, - tension: 0.35, + tension: 0.25, order: -1, datalabels: showTrendlineLabel ? { diff --git a/web/src/layouts/AppAssetCheckLayout/useGetAsset.tsx b/web/src/layouts/AppAssetCheckLayout/useGetAsset.tsx index 06f51f019..17687ce9b 100644 --- a/web/src/layouts/AppAssetCheckLayout/useGetAsset.tsx +++ b/web/src/layouts/AppAssetCheckLayout/useGetAsset.tsx @@ -111,8 +111,6 @@ const getAssetAccess = ({ const status = error?.status; - console.log(error, status); - if (status === 418) { return { hasAccess: false,