From 5ebdd68f507d7f0a79c22c4198747227a9fd439f Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Tue, 12 Sep 2023 19:07:23 +0530 Subject: [PATCH] resize barchart card --- src/components/TestAnalyticsGraph.css | 8 ++++---- src/components/TestAnalyticsGraph.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/TestAnalyticsGraph.css b/src/components/TestAnalyticsGraph.css index 2f2fdbf..89038bc 100644 --- a/src/components/TestAnalyticsGraph.css +++ b/src/components/TestAnalyticsGraph.css @@ -61,15 +61,15 @@ } div#tests-count-graph { - height: 180px; - width: 430px; + height: 250px; + width: 450px; /* border: 2px solid #000; */ overflow-y: auto; } svg#bargraph { - height: 160px; /* 500px; */ - width: 400px; /* 1100px; */ + height: 240px; /* 500px; */ + width: 450px; /* 1100px; */ /* border: 1px dotted #ccc; */ /* background-color: #ccc; */ } \ No newline at end of file diff --git a/src/components/TestAnalyticsGraph.js b/src/components/TestAnalyticsGraph.js index 0b49d92..f52eb3a 100644 --- a/src/components/TestAnalyticsGraph.js +++ b/src/components/TestAnalyticsGraph.js @@ -26,8 +26,8 @@ class TestAnalyticsGraph extends Component { // data.reverse(); var margin = { top: 30, right: 20, bottom: 50, left: 55 }, - width = 400 - margin.left - margin.right, - height = 180 - margin.top - margin.bottom; + width = 440 - margin.left - margin.right, + height = 250 - margin.top - margin.bottom; var svg = d3.select("#tests-count-graph").append('svg') .attr("id", "bargraph")