score:43
Accepted answer
you should add .tickformat(d3.format("d"))
to your xaxis:
var xaxis = d3.svg.axis().scale(x).orient("bottom").tickformat(d3.format("d"));
Source: stackoverflow.com
Related Query
- D3 remove comma delimiters for thousands
- d3 tickFormat, remove comma as thousands separator
- Remove comma to separate groups of thousands of axis labels in D3
- How to check d3 js force graph for nodes with no links and remove them?
- JS- how to remove duplicate JSON nodes and add one link for all nodes that get merged
- How to remove the comma in D3 axis ticks and remove the last tick?
- nvd3 remove tooltip content for empty points
- DC JS: remove outer padding for line charts with an ordinal scale x-axis?
- Remove animations for d3 force layout
- How can I control the date format for d3 scaleTime and remove unwanted clock time ticks?
- how to remove gridlines for subticks for log scale
- D3 - how do I remove comma separator from my xAxis?
- Remove svg onclick for d3.js wordcloud
- Remove comma delimitter along xaxis D3
- How can I remove or replace SVG content?
- D3.js: How to get the computed width and height for an arbitrary element?
- A good book for learning D3.js
- How do I remove all children elements from a node and then apply them again with different color and size?
- What is the d3.js v4.0 equivalent for d3.scale.category10()?
- How to remove an attribute in D3.js?
- Appending multiple non-nested elements for each data member with D3.js
- How to set text color for my d3 chart title?
- How to disable double click zoom for d3.behavior.zoom?
- How do I display dates on the x-axis for nvd3 / d3.js?
- Learning d3.js for data visualisation
- Remove end-ticks from D3.js axis
- Styles in component for D3.js do not show in angular 2
- d3 selector for immediate children
- D3 Differentiate between click and drag for an element which has a drag behavior
- How/Where do I get geoJSON data for states, provinces, and administrative regions of non-US countries?
More Query from same tag
- Trouble Shooting Cannot Read Property 'length' of Undefined
- Style a d3 element with jQuery and CSS
- Size of a filtered dimension in Crossfilter?
- D3.js: Need help grabbing data for tooltip
- Is there a way to parse times and be able to plot them directly using javascript and d3?
- D3 JS - GeoJson (US Map) - not loading
- How to have tooltip follow cursor when hovering on bar
- D3 arcTween - Updating transitions for multiple pie charts
- Using plugins for d3 in angular2
- How can I pass json data returned from a webservice into D3.json(...)?
- idiomatic way of drawing a triangle in d3
- Why is the window resize event appending the g element repeatedly?
- Convert array of values to array of objects (key-value) pairs in JavaScript
- How to create a D3 Bubble Chart in straigth line path?
- d3 read .csv header programmatically
- D3 Change color and scale based on radio button
- Issue with mouse over and mouse out d3.js
- Move a line through a given direction in D3 js?
- d3js - custom axis tick format - hexadecimal
- dc.js with crossfilter and d3, how to load multiple csv files at once, without knowing how many files the user will upload
- D3 colour gradient not forming mathematical circle around centre of area
- accessing and updating different objects of an array in d3
- Transform mouse svg to polar plot coordinates using d3.js
- D3 CSV Import With "%"
- Tick marks on both sides of axis on d3 scale
- Error in data.frame: (list) object cannot be coerced to type 'logical'
- D3- understanding the calling object for the d3 call() method
- D3 js line chart shows dot on mouse over and mouse out
- Adding color to Voronoi Seeds based on condition from data
- d3js Dendrogram hiding Root node when graph become large