expand plot size

This commit is contained in:
Pritimay Sarkar
2023-08-23 20:15:55 +05:30
parent b86db17e88
commit 772db018ee
3 changed files with 3 additions and 9 deletions

View File

@@ -8,8 +8,6 @@ import pandas as pd
import datetime
print("pritimay")
# Initialize Firebase Admin SDK
cred = credentials.Certificate(r'C:\Users\smila\PycharmProjects\pythonProject\hpos-prod-firebase-adminsdk-bionp-5486f7becd.json') # Replace with your own service account key path

View File

@@ -19,8 +19,6 @@ class ScatterPlot extends Component {
}
drawChart(data) {
console.log(data);
if (!data) return;
// set the dimensions and margins of the graph
@@ -37,11 +35,9 @@ class ScatterPlot extends Component {
.attr("transform",
"translate(" + margin.left + "," + margin.top + ")");
//Read the data
// Add X axis
var x = d3.scaleLinear()
.domain([0, 100])
.domain([0, 50])
.range([0, width]);
svg.append("g")
.attr("transform", "translate(0," + height + ")")
@@ -49,7 +45,7 @@ class ScatterPlot extends Component {
// Add Y axis
var y = d3.scaleLinear()
.domain([0, 2])
.domain([0, 1.2])
.range([height, 0]);
svg.append("g")
.call(d3.axisLeft(y));

View File

@@ -26,7 +26,7 @@ class TestAnalyticsGraph extends Component {
data.reverse();
var margin = { top: 30, right: 20, bottom: 50, left: 15 },
width = 700 - margin.left - margin.right,
width = 900 - margin.left - margin.right,
height = 180 - margin.top - margin.bottom;
var svg = d3.select("#tests-count-graph").append('svg')