tickFormat does not format the displayed values
See original GitHub issueHello everybody,
I’m using a ‘discreteBarChart’ with:
showValues: true, yAxis: { tickFormat: function(d) { return myLocale.numberFormat('.,4f')(d); } }
‘myLocale’ has the following attributes:
var myLocale = d3.locale({ decimal: ',', thousands: '.', ... });
The values on the yAxis are well formated and displayed with ‘,’ as decimal separator, but the Y values on the top of the bars are not formatted and displayed with ‘.’ as decimal separator and ‘,’ as thousands separator.
Do you have an idea how can I get the Y values on the top of the bars formatted as I want?
Thank you!
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Format tick values in D3 - Stack Overflow
This works just fine for me in your fiddle. yAxisR = d3.axisRight(y3).tickFormat(d3.format(".2f")). Make sure that you add more of a margin ...
Read more >Formatting ticks in Python - Plotly
How to format axes ticks in Python with Plotly. ... If "linear" , the placement of the ticks is determined by a starting...
Read more >D3.js axis.tickFormat() Function - GeeksforGeeks
Parameters : This function accepts the following parameter. format: These parameters are format to set the tick format function. Return Value: ...
Read more >SVG Axes - Axis - D3 wiki
If the specified orientation is not one of the supported values, the axis ... tickFormat(d3.format(",.0f")) will display integers with comma-grouping for ...
Read more >Date formatted tick labels - MATLAB datetick - MathWorks
datetick selects a label format based on the minimum and maximum limits of the specified axis. The axis data values should be serial...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
add one more option
Dear @krispo Here I am trying to remove the decimals every where on the chart. I tried the above , But I Cannot.
For Example : 11.0000 to only 11
Here is my Code :