Have a look at the documentation for axes, in particular the
ticks() function. You can use it (or
tickValues()) to control how many (and what) values you want to show.
If you're working with dates, you might want to use a time scale instead of the ordinal one. In particular it will allow you to control the ticks in a more meaningful way, e.g. specify that you want ticks every five years.
- D3 linechart, can't edit the amount of ticks with an ordinal scale?
- Drawing multiple horizontal lines with the same value on ordinal scale in d3.js
- D3.js xy linechart with ordinal scale
- Inversion with ordinal scale
- D3: Create a continuous color scale with many strings/inputs for the range and dynamically changing values of the domain
- Using an ordinal scale ('d3.scale.ordinal') for the x-axis in a bar chart
- Creating a Text Labeled x-Axis with an Ordinal Scale in D3.js
- nvd3 scatter plot with ordinal scale
- d3.js - Time scale with ticks in milliseconds
- dc.js bar chart with ordinal x axis scale doesn't render correctly
- D3.js zoom with Ordinal axis not working - Issue with setup of scale in zoom behavior?
- D3 - ordinal scale labels with same names
- How to use d3.symbols with an ordinal scale
- d3js gantt chart with date/time scale at the top and current day blue line
- DC.js original ordering of ordinal scale on lineChart
- DC JS: remove outer padding for line charts with an ordinal scale x-axis?
- d3JS Histogram with ordinal scale
- Can't set the number of ticks on time-based x-axis to custom amount for bar chart
- Create scatter plot with ordinal scale in d3 version 4
- D3 decennial time scale ticks with data formatted as years
- How to sort bar charts synchronous with the ticks of x axis
- d3 xAxis with ordinal scale and a click event?
- limit number of tick marks in d3.js x axis with ordinal scale
- Creating a d3 v4 histogram with an ordinal scale
- In D3 bar graph, y-axis ordinal scale is not aligning properly with bars
- ticks with an ordinal scale?
- Variable band sizes with ordinal scale
- D3: ordinal scale not working with array of objects
- How do I place my self-made triangle on a specific location with my ordinal scale in D3?
- SI ticks formatting with a decimal scale domain
More Query from same tag
- D3.js append circle to the GROUP based on the JSON value
- Datamaps is giving me a Cannot read property 'albersUsa' of undefined
- D3 force layout - How to achieve 3D look of nodes?
- Split D3 Graph Y Axis vertical color lines
- Adding Pan Zoom to d3js force directed
- D3JS Plotting Line Graph From Array Data (Data is undefined error)
- Issue creating overlapping multiple pie charts (circular progress bars)
- D3js working with unknown: headers/number of columns/number of rows
- How to plot animated line chart using d3 while the data table is required to be updated every 1 second?
- How to Set Initial State of Gear Example without Using User Input Forms
- How can I put a clickable link in an NVD3 tooltip?
- d3 js boxplot with log scale
- D3 create buttons from an array of string containing names
- contour figure working with d3.js and Three.js
- How to display just the weekdays on x-axis?
- Date format issue in d3 js
- Can't add title to stacked bar graph on D3
- NVD3 line chart with realtime data
- D3.js Cannot read property 'length' of undefined
- Zoom axis works but stem lines and circle not work
- Adding an event listener to a d3 brush
- how to select parent div of svg in D3.js
- Adding clickable links or onClick handler in a D3 force directed diagram?
- How to translate all text in svg container that are already rotated
- LeafletJs only show one country
- Select the children of a node from a tree in d3.js
- Behavior of chaining syntax in axes generation
- Disable node drag in force layout
- Angular, d3.js, test inner functions with Jasmine
- how to display the small value arcs in the d3.js pie chart?