Skip to content
Snippets Groups Projects
Commit e659a948 authored by Georgi's avatar Georgi
Browse files

Changed the colors used by the bubble graph, changed the size of the SVG, now...

Changed the colors used by the bubble graph, changed the size of the SVG, now it is 100% height and width, as previously it caused unintended behavior using the containers clientWidth and clientHeight
parent 1440ff5b
No related branches found
No related tags found
No related merge requests found
......@@ -7,12 +7,12 @@ function drawBubbleGraph(label, container) {
d3.json(url).then(data => {
data = data.slice(0, 100);
var colors = d3.scaleLinear().domain([0, 1]).range(["white", "red"]);
var colors = d3.scaleLinear().domain([0, 1]).range(["#ffffb3", "red"]);
var width = container.clientWidth;
var height = container.clientHeight;
svg.attr("width", width);
svg.attr("height", height);
svg.attr("width", "100%");
svg.attr("height", "100%");
svg.attr("font-size", 11)
.attr("font-family", "sans-serif")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment