score:1
Accepted answer
you need to modify the way the domain is set, not the range. so instead of
x.domain(d3.extent(data, function (d) { return d.date; }));
you would do
x.domain([mindate, maxdate]);
Source: stackoverflow.com
Related Query
- How can I add extra range to d3.js line graph
- D3.js - How can I add a new line to the text in this Collapsible Tree?
- How to add a fixed range vertical line to a D3.js chart
- How to add a line graph to a scatterplot using d3?
- d3.js line and area graph - want to add a extra line defined by two points and representing a threshold/minimum value (for ease of viewing)
- how can i get a label on my lines in a line graph using d3.js
- How can I append text to and render that text from a line in a force directed graph in D3.js?
- How can i add another line to make this a multi line chart?
- NVD3 line chart - how can I add on-graph series labels?
- How can I add more time-series data after drawing a D3 line chart?
- How to add a single data point to a line graph in D3 without redrawing
- How can I properly aggregate / group multiple line graphs into one overall graph with d3.js when the x-values aren't matching exactly?
- D3.js How to add tooltip in my legend using line graph
- How can I add text to edges in a force directed graph d3?
- How can I make an svg circle always appear above my graph line path?
- How to add a click event on nvd3.js graph
- d3.js: How to add labels to scatter points on graph
- How can I show a graph using d3 force layout with initial positions set and no movement at all?
- How to add horizontal line over y-axis in Plottable.js
- How to show a tooltip with value when mouseover a svg line graph using d3.js?
- How to add a title for a NVD3.js graph
- How to limit a d3 line-chart from showing the line outside of the range of the axis?
- How to add label to edges in d3 graph
- How can I set the each line color or width in SVG path
- How to as mouseover to Line Graph Interactive in D3
- Add timestamp format to line graph x-axes
- How can I draw one axis frequency distribution graph in d3?
- How can I use D3.js to take an array of Javascript objects use them in a line graph?
- How to add a line on x-axis on a horizontal bar chart in d3
- How do i add two different shapes to D3 forced directed graph based on shape field value?
More Query from same tag
- How to add an image to an svg container using D3.js
- d3.js inline-block elements are failing in Firefox and IE
- D3 Scale SVG children
- Wrong result in dimplejs scatterplot
- Dimple JS - Removing gap between the y-axis and the chart
- Putting a function in a return statement
- d3.time scale returning NaN
- What are invalid values when setting style properties in IE9?
- Performant ways of loading a huge image into the background of a D3 map
- Oval/circular shape of the Jason Davies D3 Word Cloud generator
- BI stack: Mondrian, Pivot4J and d3.js
- d3 height function returns NaN
- Integrating button to change divergent bar chart in d3.js?
- Could not reference properly d3js (4.7) from TypeScript (2.4.2)
- How can I access one single row of a csv file to populate my d3.js chart?
- D3.js create an outline to the clipath shape
- Why does the callback function called at the end and how to test the function?
- d3.js Chart - QQ Plot - different colors for each part of the chart
- how to compute the size of polygon in svg by d3.js
- d3 drag works but appear Uncaught TypeError: a.target.className.indexOf is not a function
- How do you import a user module in D3?
- Applications does not take parameters with scala.js or type
- How to choose which JSON file to use in your D3 force directed graph
- Generate a shadow on circle click with D3.js
- d3.js get JSON from url
- Format Y axis values, original figures in millions, only want to show first three digits
- Force layout nodes filled with images
- How to change (transition) radius of each circle by pressing an update button in scatter plot?
- D3 js tooltip violin plot
- Crossfilter Row Chart Top 10