Yes, I updated the fiddle. https://jsfiddle.net/o7sj0jg5/3/
to the definition of your y-scale. https://github.com/mbostock/d3/wiki/Quantitative-Scales
The quick and easy way would be to bump the domain on the y axis by a small factor, like:
y = d3.scale.linear().domain([0, d3.max(dataset) * 1.2]).range([h, 0])
- d3 line chart cutting off at the top
- d3js gantt chart with date/time scale at the top and current day blue line
- D3.js Draw vertical line after every 2 bar and draw x-axis label on the top of bar chart
- d3 line chart runs off the chart when threshold values are applied
- Draw a vertical line representing the current date in d3 gantt chart
- How to plot animated line chart using d3 while the data table is required to be updated every 1 second?
- How to change the viewfinder (focus chart) of a NVD3 line chart programmatically?
- NVD3 line chart - legend text cut off
- D3.js: plot dots on the existing line in a multiseries line chart with long formatted data
- Live updating line chart - Wont smoothly scroll off screen (wiggles)
- d3 adding circles on the highest and lowest value on line chart
- D3 line chart line selected on hoover even if opacity of the line is zero
- Dashed line transforms the null values into zeros on the chart
- how to make the x axis scrollable in a d3 line chart graph
- d3js - line chart `circle` placement to the lines are not properly sets
- Why is the line in my D3 chart inverting?
- Getting the scale right for a line chart for a simple CSV in D3 v4
- Why the line in this D3 chart isn't properly displayed when updated?
- d3js multi-line chart is being drawn off the plot area - is update pattern to the issue?
- Increasing font size in C3 charts without cutting off the text
- Why does the NVD3.js line plus bar chart example render two charts instead of one?
- D3 - Getting text on the top of rectangles in Vertical Bar chart
- Line chart not hitting the right value on chart and has a smooth line
- dc/d3 line chart crashing down to 0 on the y axis after filtering
- How to change the X-axis line from top to bottom in d3.js
- issue in re-rendering the path in a line chart based on user selection
- D3.js line chart using the wrong keys when using general update pattern
- How to make the grids of a chart be in line with axes
- Why doesn't the same group render a correct line chart and corresponding range chart?
- How do you add multiple lines to a D3JS line chart where the depedent variable data sources start at different positions along the range?
More Query from same tag
- D3.js - Animation breaking after some time
- dc.js line chart is not showing anything
- d3.js - determining nested depth (or children of children)
- Bootstrap popover on svg element repositions itself incorrectly when page is scrolled
- d3 transition begins on page load instead of on modal popup load
- d3js version 3 to 4 for toggling barcharts
- Simple d3 line not working with Angular 8
- Line chart with D3 - AngularJS
- How to do thIs diagram with force-directed graph in D3.js?
- graph not change when scale changing in d3.js
- d3 axis label cut off in chrome and firefox
- Highlight parent path to the root
- d3.js brush() inherits incorrect height and width From svg parent using viewBox
- Multiline chart, can't get line data
- Combining two charts in one div - d3 / css
- How to get color of current selected object using d3
- put 2 first letters in bold in c3.js - d3.js
- tickValues() in d3.js
- d3: tooltips on multi series line chart at each line when mouse hover event
- Save D3 chart as image
- How can I create and use dynamic hierarchical JSON?
- How to zoom in/out d3.time.scale without scaling other shapes bound to timeline
- How do I add my own data to a responsive US states map?
- Parallel coordinates multidimensional data not visualised in D3
- In d3.js, skip append() for null data
- Establish the extent of an axis in d3 post-render
- Loading data from MySQL to use in D3 for creating line graph
- Queue of transitions in d3.js; one by one
- Specifically on mobile, scroll a div from anywhere (w/out using jQuery plugins)?
- Data refresh issue with D3 burnup chart