question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Displaying units on charts

See original GitHub issue

Is your feature request related to a problem? Please describe. When creating a chart, I would like to be able to specify the unit of the numbers plotted. For example to add the unit °C to the Y-axis values of a temperature over time chart created with the Time Series Line chart. Currently when customising numbers on charts it’s only possible to change the NUMBER FORMAT or Y/X AXIS FORMAT, which is limited to features built-in in the d3-format. This formatting doesn’t allow for pre/suffixes. So in my situation I can chose to display 37 or 37.6, but I can’t display 37.6 °C.

Would it be possible to introduce an additional option, which would allow to add a prefix and/or suffix to the numbers on charts? This would be useful for the static numbers and when hovering over the chart, also in most of the current existing charts.

Describe the solution you’d like Most convenient from my perspective would be to define the unit for specific columns at database level by adding an additional box in the Edit Dataset pop up (just like it’s already the case for the time dimensions). That would allow to automatically see the pre/sufix without repeating the process on each chart.

Describe alternatives you’ve considered Another solution would be to specify prefix and/or suffix alongside the D3 number formatting. This could be using the same input box, via a syntax like <my_prefix>{actual D3 formatting}<my_suffix> (e.g. {,.2f} °C).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
simonvanderveldtcommented, Oct 20, 2022

@mdeshmu Whilst that technically answers a specific version of this question it’s in no way comparable to Grafana, where pretty much all units you’ll ever need are all present and easily selectable (and you can also add a custom unit if need be). image

3reactions
mdeshmucommented, Aug 9, 2022

I want to display bytes (how much size an s3 prefix is using) and now it is misleading when it format it in billion or trillion like 900B or 1.5T which isn’t accurate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Chart Display Units | Quick Excel Tips - YouTube
In this video, we will learn to change display units on chart axis make it understandable by the user easily. So make sure...
Read more >
Change Axis Units on Charts in Excel - TeachExcel.com
You can change the size of the units on a chart axis, their interval, where they start, where they finish, and more. Sections:...
Read more >
How to Create a Unit Chart in Excel - simplexCT
Unit charts, also known as Wilkinson Dot Plots, are similar to bar charts and histograms. However, they display each unit of measure as...
Read more >
Change the display of chart axes - Microsoft Support
To change the interval between axis labels, under Interval between labels, click Specify interval unit, and then in the text box, type the...
Read more >
Excel charts: add title, customize chart axis, legend and data ...
Above Chart - the default option that displays the title at top of the chart ... type your numbers in the Major unit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found