Custom tick and label formatter (Bar chart)
See original GitHub issueIs there a way to format tick and label values? I noticed there is sliceLabel
and radialLabel
which can be a function
in pie charts. Can we have a similar option for bar chart? The tick and label values I have is high 1000s. So I would like to display them with a K
suffix. For example. 130K
instead of 130000
which it would display by default
Issue Analytics
- State:
- Created 6 years ago
- Comments:24 (6 by maintainers)
Top Results From Across the Web
Custom tick formatter for time series - Matplotlib
Custom tick formatter for time series#. When plotting daily data, e.g., financial time series, one often wants to leave out days on which...
Read more >8.8 Changing the Text of Tick Labels - R Graphics Cookbook
Scatter plot with automatic tick labels (left); With manually specified labels ... to this format, rounding to the nearest second (it can be...
Read more >Specify Axis Tick Values and Labels - MATLAB & Simulink
Customize the tick values and labels along an axis, such as editing the tick value placement or modifying the tick label text and...
Read more >Labeling Axes - Chart.js
The category axis, which is the default x-axis for line and bar charts, uses the index as internal data format. For accessing the...
Read more >xAxis.labels.formatter | highcharts API Reference
The axis labels show the number or category for each tick. ... To add custom numeric or datetime formatting, use {value} with formatting, ......
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
Yes you can, for example:
You can also pass a function to
labelFormat
, and if a string is given it uses d3-format.That would be really helpful to have in the docs 😃