D3 - 2
SVG
<svg width="400" height="60">
<rect x="0" y="0" width="50" height="50" fill="green"></rect>
<circle cx="90" cy="25" r="25" fill="red"></circle>
<ellipse cx="145" cy="25" rx="15" ry="25" fill="grey"></ellipse>
<line x1="185" y1="5" x2="230" y2="40" stroke="blue" stroke-width="5"></line>
<text x="260" y="25" font-size="20px" fill="orange">Hello World</text>
</svg>
<svg width="190" height="160" xmlns="http://www.w3.org/2000/svg">
<path d="M10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80" stroke="black" fill="transparent"/>
</svg>Everything outside svg.width & svg.height will be hided.
<line>color is controlled by stroke.
Select


Binding data
Load data
Scale -> create scale func
scaleLinearscaleLogscaleTimescaleBand




min, max, extent


Translation

Last updated
Was this helpful?