score:1
I can't think of a clean way to do this. Not sure why you want to do it TBH - it looks a bit weird. But anyway - here's a hacky solution for NVD3 that you can port to AngularNVD3.
chart.rectClass('shift-right')
and then after you've done
d3.select('#chart svg')
.datum(exampleData())
.transition().duration(350)
.call(chart);
Put
d3.selectAll('.shift-right').attr('x', '30');
This will shift all of the bars over by 30px.
Source: stackoverflow.com
Related Query
- How to draw bar chart with range x-axis?
- How to line up x axis on stacked bar chart with a line overlay in d3.js
- How to draw multiple bars in a row in a bar chart with spaces in between with d3v5?
- d3.js How to draw line chart with vertical x axis labels
- How can I create a basic bar chart with unique counts on the y axis and a category on the x axis?
- How to draw a 3d bar chart on a world map with d3.js?
- d3 Plus bar chart how to force fixed max y axis range independent of the max data value
- How to make bar chart with additional vertical lines below the x axis
- How to make X axis timescale with equal interval between elements on chart independent of time range
- How to draw a Bar Chart with time on xAxis and one or more numeric data for yAxis in d3js?
- How to update d3.js bar chart with new data
- Make simple bar chart using C3 with separate columns on the x axis
- d3 bar chart with range selector in x-axis (like dygraphs)
- d3.js bar chart sorting: can't figure out how to sort x-axis labels along with bars
- How to use x and width in a bar chart with scaleTime?
- DC.js bar chart with date axis
- Need help lining up x axis ticks with bars in D3.js bar chart
- How to Make a bar chart with rounded corners with extended grid in d3.js?
- dc.js bar chart with ordinal x axis scale doesn't render correctly
- How to modify axis labels in d3 for a stacked bar chart when the axis labels are mapped as part of the scale's domain
- D3 - How to loop through an object with keys for a bar chart
- D3 how to draw chart with a x data between two y data
- how to draw nvd3 simple barchart with x and y axis in angularjs
- d3.js v4 bar chart with negative values on y axis
- d3 bar chart with fixed bar width and fixed spacing to align in center axis line
- D3 Bar and Linear Chart With Multiple Axis
- how to create a stacked bar chart with images in d3
- How to create a % difference arrow line with value in a bar chart using D3.js
- How can I use D3.js "onClick" event with an nvd3 bar when zoomed in on chart data?
- d3 bar chart with custom x axis and bar width
More Query from same tag
- IE8 Issue with R2D3
- Trouble with storing enter selections containing transitions
- Unable to dispaly line graph using d3
- Create hierarchy from row data
- Building a force-directed concentric circle graph with node ordering from inside out in D3.V4
- accessing D3 dynamical json object in Rails view
- d3 donut chart arc retrieves wrong data
- how to rotate any shape continuously in D3 js?
- How to use intro.js on d3.js elements
- HTML2Canvas not rendering D3 font and font size
- How do I make my chart bars align with the chart axis?
- Multiple series line chart
- D3 TypeError when using URL to reference mbostock.github.com/d3/d3.js
- Access nested data without appending in d3.js
- javascript / d3 - passing parameters to a function
- Change starting point of alongPath animation
- "Property _ does not exist on _ type" D3.js typescript errors in Ionic 2 project
- Type 'Area<X>' is not assignable to type 'String' using @types/d3
- Data view mapping in Power BI visuals
- no graph output for d3.js
- Insert D3 Graph into a div in CMS
- Show values on top of line graph
- D3 Dependency Wheel not rendering properly
- How to add an if condition in my d3js example
- Selecting duplicate id's from an SVG exported from Illustrator in d3.js
- D3 Visualization Questions
- Using d3js sort an array of arrays
- how to draw a d3 pie chart from a json file
- d3 selection issue offsetParent is null
- How to use d3.domain/range to have a custom domain