mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
parent
fe33906ef0
commit
aec618793f
2
plugins/tiddlywiki/d3/barwidget.js
vendored
2
plugins/tiddlywiki/d3/barwidget.js
vendored
@ -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)
|
||||
|
2
plugins/tiddlywiki/d3/cloudwidget.js
vendored
2
plugins/tiddlywiki/d3/cloudwidget.js
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user