score:5
Accepted answer
Try changing this line:
xScale = d3.scale.linear()....
Try using...
xScale = d3.time.scale()....
Source: stackoverflow.com
Related Query
- D3 tickFormat error stating n.getMonth is not a function
- d3v5 Angular 8 production mode - ERROR TypeError: (void 0) is not a function
- d3 v4 error this.setAttribute is not a function
- d3.js Error data.map is not a function
- d3 error from plotly: TypeError: e.getAttribute is not a function
- "Property does not exist on type {}" error when using anonymous function with D3 SVG Symbol
- error in d3.js : t.map is not a function
- D3.js - Error : d3.line() is not a function (changed from version 4 to 3)
- 'undefined is not a function' error at runtime with Angular 2/Typescript function
- d3 bar graph error says xScale.bandwidth() is not a function
- Angular 6, d3 v5 mouse event, ERROR TypeError: this.setAttribute is not a function
- Undefined is not a function error d3js
- a.map is not a function error nvd3 with ng-repeat
- n.getFullYear is not a function error in d3
- I want to remove the commas from the X axis with d3, but tickFormat does not work and instead, throws an error
- AJAX is not a function error in d3/flask interface
- "Interpolate" is not a function
- D3 transition looping throwing Uncaught TypeError: t.call is not a function
- d3.mouse is not a function
- d3js tree.nodes() is not a function
- Uncaught TypeError: xScale.rangeBand is not a function in d3.js
- Uncaught TypeError: t.rgb is not a function
- transitionDuration function does not exist in nvd3.js
- d3.js or rxjs error? this.svg.selectAll(...).data(...).enter is not a function
- d3.select(this) works on mouseover, but not on function called in mouseover
- d3 transition is not a function
- d3 v6 pointer function not adjusting for scale and translate
- D3 - forEach is not a function when upgrading from v3 to v4
- d3.js t.map is not a function
- Why are .domain, tickFormat and tickValues not recognised inside dimensions variable? (d3, parallel coordinates)
More Query from same tag
- d3.js: Zoom on click event
- d3 - see what is at a particular x,y position
- d3.event.y has strange values during drag behavior
- How to have a text label on links in d3 force directed graphs
- Trying to load a .tsv file from the front end. The file stays on my server. How do I do this using Express?
- d3-force Make nodes move slower on position update
- How do I correct the range in d3?
- Javascript heatmap.js plugin to show data step by step in D3.js
- Simple circle animation is only displayed the first time
- d3.js : Responding to Mousewheel zooms Appropriately
- How can I solve Error: Invalid value for <text> attribute transform="translate(NaN,NaN)" on arc.centroid(d)?
- How to align graph with respective rectangle node size in d3 js
- Getting the centroid of multiple paths in d3.js
- connect postgres with php and use d3.js to visualize
- How to make geoAlbersUSA projection straight(not curved) like geoMercator?
- d3js Circle Pack diagram with nested single child arrays
- D3 nodes not showing up shape type
- Combining stacked area chart and brushing in D3
- nvd3 angular-nvd3 d3 Displaying chart legend vertically
- Implementing Pie Chart labels as used by David Bueza
- How do I benchmark an algorithm implemented in D3?
- how to create zoomable icicle with lane name
- Mysterious syntax error converting a D3 vis from Javascript to Purescript
- $watchCollection parameters required returns error, when passed as an array
- how to restart (recover) a paused timer in a canvas animation using d3
- D3 axis label has to be added separately?
- Dynamically display images in D3
- Send two JSON via same HTTP message
- Get text of multiple DOM elements to reuse later in D3.js
- combining Aframe and d3.js: embed issue with different library source