Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =======HOW TO DEFINE AND APPEND THE SVG
- //Create the SVG Viewport selection
- var svgContainer = d3.select("body").append("svg")
- .attr("width", 400)
- .attr("height", 100);
- =======HOW TO DEFINE AND APPEND A SHAPE
- =======HOW TO GRAB DATA
- =======HOW TO ESTABLISH A SCALE
- //Create the Scale we will use for the Axis
- var axisScale = d3.scale.linear()
- .domain([0,100])
- .range([0,100]);
- //Create the Scale we will use for the Axis
- var xAxis = d3.svg.axis()
- .scale(axisScale);
- //Create the Axis
- var xAxis = d3.svg.axis()
- .scale(axisScale);
- //Create a group Element for the Axis elements and call the xAxis function
- var xAxisGroup = svgContainer.append("g")
- .call(xAxis);
- =======
Add Comment
Please, Sign In to add comment