score:1
Accepted answer
you need to pass min and max values as Date Formats on scaleTime.
d3.scaleTime()
.domain( new Date(timeData[0]), new Date(timeData[1]) )
.range( [0,400] )
Also note that min value is lesser than max value.
Reason its not working is that it is considering them as String values.
Source: stackoverflow.com
Related Query
- What is wrong with the way I input Dates with the scaleTime() function in d3?
- What is the best way to combine multiple csv files data input using d3.csv in d3.json ?
- Is it possible to use non-mouse, non-touch events to interact with a D3.js graph? If so, what is the most efficient way to go about it?
- What is the recommended way to refactor code written with d3.js like this?
- What is the best way to hide elements with a certain ID that doesn't effect the performance
- What is the most optimized way to use D3 with React?
- What is the best way to fill D3 node circles with images?
- What is the proper way to use D3's projection.stream()?
- What is the correct way to import and use d3 and its submodules in ES6?
- What is the best way to update d3 charts using - AJAX
- What is the standard way to get the active (running) D3 v3 Transition for a given element?
- What object type is the instance element parameter pass into the link function of an angular directive?
- What's the easy way to load d3-selection-multi along with d3 v4 in RequireJS?
- D3 updating graph with new elements create edges with the wrong nodes
- What is the shorthand in d3 for the identity function ("function(d) { return d; }")?
- What is the equivalent of `link` function in Angular to access DOM elements
- d3.geo.path rectangle wrapping the wrong way
- What is the proper way to both rotate and translate text in d3?
- How to update the contents of a text input with d3?
- What is the fastest way to get SVG element given a position (x,y)?
- My cities are being plotted with the wrong projection (quite small and to the left). Using d3.geo.albersUSA()
- d3 v4 TypeScript DefinitelyTyped Angular2 line with ScaleTime on the X axis
- What is the most efficient way to highlight a column, of a table, on mouseover in D3?
- Updating data values with HTML input and changing the data array
- What is wrong with this data visualization code?
- What is the original radius function for circle pack?
- What is the best way to create small multiples in d3.js v6?
- What is the correct way of doing a small multiples bar chart set in d3 v5?
- How to use the quantize function with my json data file
- How to fix the draggable function in a bubble chart with text inside?
More Query from same tag
- Path drawing with d3?
- Creating bidirectional graphs in D3.js
- Retrieve underlying values of a binned vega (lite) histogram?
- why doesn't d3.behavior.zoom().center() work?
- how to read path info from json file using d3
- SVG GaussianBlur quality
- How to add data labels to dimple.js bar charts?
- angular-nvd3 gives various errors saying that d3.scale is undefined
- how can i get selected path index in group using D3 control?
- is it possible to tweak the d3 bubble chart to obtain the bubbles at scattered positions instead of a circle pack?
- Remove NaN values from data in D3.js
- Stacked chart with keys in columns
- add country id from json to dorling map
- c3 chart not displaying changes on axis
- SVG not showing anything on browser
- D3.js multi-series line chart using csv file
- New/updated element inherits event handlers from old one, D3
- Use PhantomJS crowbar to extract D3-created SVG from webpage on local webserver
- trying to get svg paths to flow smoothly
- How to Create a path in svg for d3 brush
- D3 tree resize SVG in Angular
- d3js time scale same value but different results
- Making a multilayer map with D3
- D3 Pie Chart Label Data Not Working
- Updating data in a simple reusable D3 chart
- First d3 transition on update inside interval is not transitioning
- Adding d3 Label not working
- d3 force on removing a node remove associated edges
- Django JsonResponse with safe=False to D3
- Using D3, how can I transition a line one point at time?