d3-er
Installing
If you use NPM, npm install d3-er
.
and require it in file :
var d3 = ;d3style'background-color' 'red';
Download File
Test in browser
- To test clone https://github.com/EshwarRachala/d3-er.git
- run
npm install
to install dependencies - and
npm run dev
to run webpack dev server
Check examples
API Reference
d3 modules Reference
D3 modules exported
- d3-array
- d3-axis
- d3-line
- d3-scale
- d3-selection
- d3-shape
- d3-time-format
- d3-timer
- d3-transition
Svg element
- to create SVG element with default width(100%) and height(100) use d3.svg()
var svg = d3
- If any property needs to be changed/ added
svgstyle'background-color' 'lime'
Bullet Chart
- to create bullet chart use d3.bullet()
Bar Chart
- To create barchart follow below steps
var barchart = d3 x { return dage } y { return dname } datadata d3
- To update chart with new dataset
barchartdatanewdata
Line Chart
- To create Line Chart follow below steps
var chart = d3 x { return ; } y { return +dprice; } datastatetrend; d3 style'height' '250'
- To update chart with new dataset
chartdatanewdata