score:1
Accepted answer
Given your date
key/value pair...
date: "2014"
... your specifier is incorrect. It should be:
d3.timeParse("%Y");
Here is the updated plunker: https://plnkr.co/edit/k8aZSlyCCtpWArOO0mki?p=preview
PS: You don't even need to parse the dates. Since your y scale uses a categorical variable, just use the dates as they are right now, that is, simple strings.
Source: stackoverflow.com
Related Query
- Stacked Bar chart not displaying correctly
- Stacked bar chart not updating correctly d3js
- First 2 entries on stacked bar chart not displaying in dc.js / d3.js
- d3 stacked bar chart not updating correctly
- D3: Stacked Bar Chart not parsing data correctly
- X axis not displaying on bar chart using d3.js
- Stacked Bar Chart using d3.js stack layout; the bar sections not always in correct place
- D3 Stacked Bar chart : issue calculating and displaying sum/total of each bar
- D3js responsive stacked bar chart - other topics solutions not working
- d3.js axis labels not displaying in responsive bar chart
- D3: Stacked bar chart exit().remove() not removing bars
- d3.js Stacked Bar Chart working for one dataset but not the other
- Stacked bar chart not showing and no errors in console log either
- D3.js bar chart animation not exiting correctly
- D3.js bar chart not animating correctly and leaving behind artifacts after animation
- x position of tooltip in d3 stacked bar chart not working
- d3 stacked bar chart values not showing up on chart
- D3 bar chart axis not scaling correctly
- dc.js Stacked Bar Chart having only one column and with elastic X Axis is not rendered properly
- d3 Stacked Bar Chart - Bars not rendering
- d3 - stacked bar chart, bars not displaying
- d3js stacked bar chart not updating
- Tooltip not populating: D3 stacked Bar Chart
- dc.js - Stacked bar chart with empty bin filter displaying in strange way
- d3 stacked bar chart - start at y0, not yMax
- Graph Not Working: Stacked Bar Chart - Date versus Values
- Bars not plotted in D3 stacked bar chart
- Right Axis not displaying on Dual Axis Grouped Bar and Line Chart D3
- D3 stacked bar chart not able to see full x axis lables
- NVD3 stacked bar chart option not working
More Query from same tag
- Backbone event trigger not being picked up.
- Collapisible Tree
- Suitable library for combining with D3js , to allowing drawing to webgl (2D)
- D3: use .map() to rearrange an array of data
- Find a point on an SVG path
- D3.select ID returning null despite existing element with ID
- Given an object where the value is an array, what is the most efficient way to return the pair [key, array.length]?
- With d3.js, how do you modify corresponding nodes when you have multiple selections for the same data?
- Can I use d3.scales to evenly distribute circles of varying size
- Looking for a D3 layout that functions like a tree, but begins and ends with one point
- Get data from rest service using D3
- D3 force layout: links and nodes --- z-index(?)
- How to prevent bubbles from touching the svg frame/border when using D3.js force?
- D3.js - Cannot read property 'axis' of undefined
- Truncate text in d3
- Page displaying only 1 of 2 charts
- D3js sorting issue on transition applied
- D3 .bandwidth() returning NaN
- Making a D3 widget scrollable
- How to escape all special characters in a string?
- Does d3.timer wait for the callback to complete before re-running it?
- Moving connected rectangles in d3js
- d3 - Rotate x-axis labels
- Individual zoom on two separate D3 tree in one browser window but different svg
- Specifically translating data into colors in D3.js
- Update D3 tree when some nodes are removed
- How to resize rectangle in d3 js
- Creating animated GIF files out of D3.js animations
- Change bar width in D3 Crossfilter example
- D3 new data at .data() makes svg to redraw instead of updating nodes position