score:1
Accepted answer
The problem was that the y values were strings. I changed
monthlyData.push({x: data[i].Month, y: data[i].Data});
to
monthlyData.push({x: data[i].Month, y: +data[i].Data});
so that the y value becomes a number. Here's the updated version.
Source: stackoverflow.com
Related Query
- NVD3 Sparkline not rendering correctly from CSV file
- NVD3 Charts not rendering correctly in hidden tab
- Javascript - Can not access array elements of an array created from a csv file
- ScatterChart in NVD3 – Reading the data from csv file
- Take input for treemap using json objects not to read from csv file
- NVD3 chart fails to calculate legend text length in Chrome, since Window.getComputedStyle does not return font-size correctly
- How to load data from a CSV file in D3 v5
- Cannot import data from csv file in d3
- d3.js filter from csv file using multiple columns
- D3.js - load csv file from chrome
- Drawing voronoi diagram from a csv file with d3.js
- nvd3 displaying large black dots, and not fully rendering
- Why is date from CSV file being outputted as NaN?
- display data from csv file into BarGraph using d3.js
- Rendering D3 data from CSV
- D3.csv not loading the csv file
- How to use python pandas to get intersection of sets from a csv file
- Bootstrap in Dagre D3 is not correctly rendering
- Unable to reference d3.js data imported from a csv file with spaces in the header
- How to add links from CSV file to SVG elements generated with D3?
- D3 not rendering map data in JSON file
- Rendering GeoJson file in D3 v4 is not scaling properly
- queue.js pass data from local variable not from external file
- Circle Not Generating For All Value In csv File In ScatterPlot d3js
- How to load a csv file from static in django into javascript function
- D3 Noob: Cannot bind to data read from csv file
- graph the data from a csv file
- Parsing specific columns/data from multiple CSV file
- D3 Map not rendering Australian topojson file
- NVD3 not formatting dates correctly
More Query from same tag
- How to check whether a svg circle inside the svg path
- Javascript d3 heatmap calendar, how to append day of the month?
- click to zoom and scale bar in d3.js map
- Parameter d in AttrTween is coming as undefined in angular d3js?
- hovering on one class not working for classes defined before it
- add y axis label to NVD3 Multi-Bar Chart
- how to load json file using the latest d3?
- d3 v5 plotting simple line chart and mapping/casting to numbers using promise
- How to add updating labels in D3 Vertical Bar Chart in an Ember Application
- tooltip for a scatter plot matrix - using d3
- Passing a variable into d3.js function(d)
- D3 - transition after reading updated data from external file
- How to request data from json in d3?
- What does brush.event do when animating brush events?
- adding objects into an existing object
- D3.js color the node circles with a function using spectrum.js
- Can you use if statements in .nest(). If not what is the best way to assign labels to array elements so they fit in several groups
- svg zoom out text in Chrome
- Django JsonResponse with safe=False to D3
- Image flicker when user tries to pan
- c3js - change the initial date label in x-axis
- Transition between difference force 'center' in d3 v4
- Adding color dynamically to a multiple line chart but it is not working in d3.js
- d3.js: click event in a bubble/scatter chart
- D3 mercator function NaN
- D3 tree vertical separation
- How do I properly add transitions to D3 Polygons?
- Why can't I draw a line on this D3.js using angular code?
- D3.js Dropdown: Removing Line Chart Data
- Acessing selected points using lasso