expand plot size
This commit is contained in:
@@ -8,8 +8,6 @@ import pandas as pd
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
|
||||||
print("pritimay")
|
|
||||||
|
|
||||||
# Initialize Firebase Admin SDK
|
# 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
|
cred = credentials.Certificate(r'C:\Users\smila\PycharmProjects\pythonProject\hpos-prod-firebase-adminsdk-bionp-5486f7becd.json') # Replace with your own service account key path
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ class ScatterPlot extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
drawChart(data) {
|
drawChart(data) {
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
if (!data) return;
|
if (!data) return;
|
||||||
|
|
||||||
// set the dimensions and margins of the graph
|
// set the dimensions and margins of the graph
|
||||||
@@ -37,11 +35,9 @@ class ScatterPlot extends Component {
|
|||||||
.attr("transform",
|
.attr("transform",
|
||||||
"translate(" + margin.left + "," + margin.top + ")");
|
"translate(" + margin.left + "," + margin.top + ")");
|
||||||
|
|
||||||
//Read the data
|
|
||||||
|
|
||||||
// Add X axis
|
// Add X axis
|
||||||
var x = d3.scaleLinear()
|
var x = d3.scaleLinear()
|
||||||
.domain([0, 100])
|
.domain([0, 50])
|
||||||
.range([0, width]);
|
.range([0, width]);
|
||||||
svg.append("g")
|
svg.append("g")
|
||||||
.attr("transform", "translate(0," + height + ")")
|
.attr("transform", "translate(0," + height + ")")
|
||||||
@@ -49,7 +45,7 @@ class ScatterPlot extends Component {
|
|||||||
|
|
||||||
// Add Y axis
|
// Add Y axis
|
||||||
var y = d3.scaleLinear()
|
var y = d3.scaleLinear()
|
||||||
.domain([0, 2])
|
.domain([0, 1.2])
|
||||||
.range([height, 0]);
|
.range([height, 0]);
|
||||||
svg.append("g")
|
svg.append("g")
|
||||||
.call(d3.axisLeft(y));
|
.call(d3.axisLeft(y));
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class TestAnalyticsGraph extends Component {
|
|||||||
data.reverse();
|
data.reverse();
|
||||||
|
|
||||||
var margin = { top: 30, right: 20, bottom: 50, left: 15 },
|
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;
|
height = 180 - margin.top - margin.bottom;
|
||||||
|
|
||||||
var svg = d3.select("#tests-count-graph").append('svg')
|
var svg = d3.select("#tests-count-graph").append('svg')
|
||||||
|
|||||||
Reference in New Issue
Block a user