Kozea / Kozea/pygal

Axis range should allow for a minimum value and still scale.

Open
#347 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.8k
Forks
419
PR merge metrics
No merged PRs in 30d

Description

Axis range requires min, max in tuple. Would be great to be able to just pass a min and have graph auto scale the max. Use case: I want all my charts y axis to to start at 0 but the y values I'm charting could range from 4-15 on some charts to 3-60 on others. Right now to start at 0 I have to set all my charts to 0-60 which leaves ton of wasted space on the 4-15 charts.

Contributor guide

Open the contributing guide

Research direction

Start by locating the axis-range handling and the code that computes automatic maximum values. Check how a supplied minimum currently interacts with tuple ranges and automatic scaling. Done means charts can keep a requested minimum, such as 0, while deriving the maximum from the plotted values without unnecessary empty space.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.