Skip to content

Commit f886791

Browse files
committed
readme update
1 parent c11759e commit f886791

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1-
# json-to-svg
1+
# JSON to SVG
2+
23
Generate SVG from JSON
4+
5+
6+
```javascript
7+
8+
import * as d3 from "d3";
9+
10+
const { svgen } = require('json-to-svg')
11+
12+
console.log( svgen(d3,{"target":"histogram","color":"blue","barwidth":20,"intergap":5,"dataset":[25,67,45,19,89],"size":2,"animate":true}) )
13+
14+
```

0 commit comments

Comments
 (0)