Skip to content

Commit 03f6152

Browse files
committed
tweaks to network plot #59
1 parent 9d368ae commit 03f6152

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: repometrics
22
Title: Metrics for Your Code Repository
3-
Version: 0.1.3.051
3+
Version: 0.1.3.052
44
Authors@R:
55
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/repometrics",
99
"issueTracker": "https://github.com/ropensci-review-tools/repometrics/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "0.1.3.051",
11+
"version": "0.1.3.052",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

inst/extdata/quarto/network.qmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ network = FileAttachment("results-user-network.json").json()
4040
```
4141

4242
```{ojs ForceGraph-plot}
43+
import {Swatches} from "@d3/color-legend"
4344
Swatches(chart.scales.color)
4445
chart = {
4546
@@ -54,15 +55,15 @@ chart = {
5455
5556
const simulation = d3.forceSimulation(nodes)
5657
.force("link", d3.forceLink(links).id(d => d.id))
57-
.force("charge", d3.forceManyBody().strength(-400))
58+
.force("charge", d3.forceManyBody().strength(-1000))
5859
.force("x", d3.forceX())
5960
.force("y", d3.forceY());
6061
6162
const svg = d3.create("svg")
6263
.attr("viewBox", [-width / 2, -height / 2, width, height])
6364
.attr("width", width)
6465
.attr("height", height)
65-
.attr("style", "max-width: 100%; height: auto; font: 12px sans-serif;");
66+
.attr("style", "max-width: 100%; height: auto; font: 14px sans-serif;");
6667
6768
// Per-type markers, as they don't inherit styles.
6869
svg.append("defs").selectAll("marker")
@@ -159,5 +160,4 @@ drag = simulation => {
159160
.on("drag", dragged)
160161
.on("end", dragended);
161162
}
162-
import {Swatches} from "@d3/color-legend"
163163
```

0 commit comments

Comments
 (0)