expand plot size
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user