mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-08-05 18:38:54 +00:00
Vendored
+1
-1
@@ -85,7 +85,7 @@ BarWidget.prototype.createChart = function(parent,nextSibling) {
|
||||
.tickPadding(6)
|
||||
.orient("bottom");
|
||||
// Create SVG element
|
||||
var svgElement = d3.select(parent).insert("svg",nextSibling)
|
||||
var svgElement = d3.select(parent).insert("svg",function() {return nextSibling;})
|
||||
.attr("viewBox", "0 0 960 500")
|
||||
.attr("preserveAspectRatio", "xMinYMin meet")
|
||||
.attr("width", width + margin.left + margin.right)
|
||||
|
||||
Vendored
+1
-1
@@ -62,7 +62,7 @@ CloudWidget.prototype.createChart = function(parent,nextSibling) {
|
||||
});
|
||||
}
|
||||
// Create the svg element
|
||||
var svgElement = d3.select(parent).insert("svg",nextSibling)
|
||||
var svgElement = d3.select(parent).insert("svg",function() {return nextSibling;})
|
||||
.attr("width", 600)
|
||||
.attr("height", 400);
|
||||
// Create the main group
|
||||
|
||||
Reference in New Issue
Block a user