score:1
Accepted answer
adjust margin here:-
var margin = { top: 10, right: 30, bottom: 50, left: 20 };
var svg = d3.select('#some-id').append('svg')
.attr('width', 500 + margin.right + margin.left)
.attr('height', 500 + margin.top + margin.bottom);
Source: stackoverflow.com
Related Query
- adding height or padding to d3 bottom axis
- Axis adding extra padding for large domains
- d3 Axis Bottom with Padding
- Plotly.js Adding markers adds padding to x-axis
- Height transitions go from top down, rather than from bottom up in D3
- Adding a specific tick to a D3.js axis
- adding padding to svg g element
- D3: How to remove tick marks at the top and bottom of Y axis
- Adding links to D3 axis labels
- Adding c3.js padding without cutting off graph
- Is it possible to make axis ticks with appended text to have dynamic padding in d3?
- D3js make y axis height 100
- D3 JS chart is cut off after adding labels for X and Y axis
- Adding a tooltip over different axis where the line goes through in d3
- d3.js extend bottom axis line to origin
- Extending the axis bar height in d3 js charts
- show the bottom most tick of y axis
- D3.js: Adding a time axis to a bar graph with negative values
- Bar Height change following Y Axis inversion in D3 Charts
- Adding new axis to Parallel Coordinates visualization in d3.js
- d3.js - Adding axis labels to hive plot
- Adding tooltip and x axis, y axis title to D3.js chart
- Adding axis to the dynamic line chart in d3
- C3: Adding y2 axis on the fly
- Adding all axis labels to a d3.js graph
- Adding a y axis horizonal line to a D3 scatter chart
- How to move the x axis to the bottom of a svg
- d3.js - adding One additional tick for the Y axis does not work
- How can I make a bar chart starting from the 0 point of the y axis and not from the bottom of the svg?
- How to add padding between bars and axis in d3?
More Query from same tag
- Plotting Great Circle Paths
- unable to get json feeds for Nvd3 chart
- Remove Non-SVG Slider
- D3js: Unable to rotate axis labels
- How to create d3.js Collapsible force layout with non tree data?
- change height and direction of triangles in D3
- Data processing with Dimple.js
- Line passing through another point before connecting to node d3.js
- dc.js - grouping data using UTC time
- Zooming and Brushing issues on D3 chart
- Crossfilter can't filter one dimension by another
- How to reset zoom.transform after zooming without reseting selections in D3?
- Using Rickshaw/D3 in Node.js,for server side, raw svg accessible?
- Breaking text from json into several lines for displaying labels in a D3 force layout
- Create Vertical Timeline from 01JAN15 -> 31DEC15 in D3.js
- Using d3-tip with require js modules
- Update table with key-value pair array as data
- Content of d3.js chart overflows margins when using brush
- D3 - Update Pattern and y axis
- How to change the position of Legends using D3.js
- add radio buttons and lables to d3.js
- d3.js linechart different interpolations for different lines
- Date Stacked Area Chart using dc.js
- d3.js dealing with non-svg browsers
- Separate the nodes and avoid overlapping in tree graph in d3.js
- D3 v6 how to join correctly?
- Update existing nodes in a d3 Force Layout
- D3.js Don't Overlapping line but linktext not show
- Adding Multiple shaped nodes to a force directed network diagram in d3v4
- redrawing polygon after adding points on edges and dragging those points draws weird lines