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.

Customise min and max values on chart

See original GitHub issue

I’d like to be able to change the minimum and maximum value of the ticks on the chart axes.

User acceptance criteria:

  • By default, the range on the chart is: [min value, max value]
  • if you toggle off auto-range, you get the min + max values that pop up (pre-filled with the auto-range values)
  • I can set the Min + Max values for my y-axes and my x-axes
  • I can only set the Min + Max values when I have numeric types on my axes (decimal, integer, float)
  • I can set only my max or only my min value. If I only set the min value, then the max stays at the default max value, if I only set my max, then the min stays at the default min value.
  • If a value has been formatted to a %, then I would need to set min = 0.2 to get a min value at 20%. Or, if it’s easier to have a min value = 20 to limit the % to 20%, then let’s do it that way! Basically, don’t feel like we have to add any more complexity to setting min + max values for percentages. Just use whichever of the two is easiest.

Other tasks:

  • add documentation for customizing min/max values
  • add tracking for customizing min/max values
    • added to lightdash_server_saved_chart_created + lightdash_server_saved_chart_updated (custom_axis_range as TRUE/FALSE)
    • created new event: lightdash_webapp_custom_axis_range_toggle_clicked

Internal design ticket: https://github.com/lightdash/lightdash-internal-work/issues/299

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
owlascommented, Mar 29, 2022
Screenshot 2022-03-29 at 17 00 48

I like the way metabase does this!

1reaction
TuringLovesDeathMetalcommented, May 18, 2022

Let’s say that:

  • auto-range sets the range to be: [min value, max value]
  • auto-range is used by default as the range in the chart
  • if you toggle off auto-range, you get the min + max values that pop up (pre-filled with the auto-range values) (I’ll update the first comment with this)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Format for Chart Minimum and Maximum
This example shows you how to highlight the minimum and maximum values of a series by using a different marker for each, and...
Read more >
Simple Min Max and Average Chart in Excel - YouTube
Learn how to create a simple chart to display min max and average values in Excel using a modified line chart. Check out...
Read more >
Min Max Chart in Excel - YouTube
In Excel, we often wish Charts had conditional Formatting to enable us to guide a viewer's eyes to parts of the chart that...
Read more >
Highlight Max & Min Values in an Excel Line Chart - Xelplus
For the MAX data label: Select the MAX data point. Right-click on the MAX data point and select Add Data Labels.
Read more >
How to display Min and Max bar in a chart - Excel Exercise
This article will explain how to highlight the min and max in a chart with a different color. ... Original chart. Let's start...
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