score:1
Accepted answer
You are converting a date to a string when populating line_data
.
var parser = d3.time.format("%m/%d/%Y %H:%M:%S");
abc[i]['date'] = parser(dateLabel);
line_data[counter] = abc;
Just use the date here.
abc[i]['date'] = dateLabel;
Source: stackoverflow.com
Related Query
- d3 Xscale returning nan even on setting scale properly
- d3.time scale returning NaN
- Scale of chart generated by using dc.js is returning NaN
- Logarithmic scale returns NaN
- How can I dispatch a 'zoom' event after setting scale (d3, zoom.behavior)
- D3.js scale returning wrong values from dataset
- D3 ordinal scale only returning extremes. Why isn't it interpolating between range and domain?
- X scale function in D3.js keeps returning undefined
- setting the base for log scale in d3.js
- d3.js linear scale returns NaN
- Drag behavior returning NaN in D3
- D3 timescale with date object returning NaN
- scale.linear() is returning NaN
- D3's scale not working properly
- D3: Properly Scale and Turn Map Right-Side-Up
- Hierarchy is returning heights and lengths that are NaN
- Scale returning value larger than domain
- D3 line() setting d attribute returns NaN
- Setting ticks on a time scale during zoom
- Returning default color for items not in domain, using d3.js scale ordinal
- Colorbrewer scale only returning lightest values on D3 map
- NaN node positions after setting initial position in d3 force-directed network
- d3 force not applying x scale properly
- D3 .bandwidth() returning NaN
- Update zoom state in d3 v4 after manually setting translation and scale
- dc.js: cannot scroll past chart even after setting mouseZoomable to false
- In D3 bar graph, y-axis ordinal scale is not aligning properly with bars
- d3 time scale setting initial zoom level and domain
- d3 reduce method is returning NaN
- D3.time scale keeps returning default value
More Query from same tag
- Update pattern with path line selections
- Raphaƫl and D3.JS - Better Browser Compatibility
- d3 transitions not working in multiple browsers
- How to project several scatter plots over a background element?
- vuejs + d3: select returns element, but attr() returns null
- "Mouseup" event not fired after migrating from D3 v3 to v5
- How to get the x-axis interval using d3.js?
- Design Pattern in A-Frame to reuse geometries
- Getting a Map of arrays by grouping the records
- How to convert object JSON to a d3.js array data
- Clicking on node in dagre-d3
- d3.js force directed graph search
- j query context menu for d3 rect
- D3js, particular format for Time axis labels
- Why does my D3js line chart fail to render values and x-axis?
- import {legend} from "@d3/color-legend" What is this in a html code? is there a <script src="***"> available?
- D3 update data on the wrong bars
- Gathering some data for a network graph in D3. How should I format it?
- how to change x-axis length of dimple chart
- I am using SVG style to apply the css property to an element. The code snippet is below:
- Plot d3 chart on to Leaflet / Mapbox map
- D3.js vs Raphael.js
- Loading JavaScript libraries and css in a typescript Angular 2 webpack project
- d3js force node starting position
- js document conflicting with D3.js - no d3js tools are working
- c3 js bar chart - setting a minimum bar height
- Porting D3.js to other languages
- How to set pattern origin at the top left point of each bar of a barchart in d3.js?
- Finding threshold intersection in a D3 chart
- D3 not able to show line