ChartsOrg / ChartsOrg/Charts

Value labels on short graphs are clipped

Open
#3,118 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

## Bug
`chartView.frame.height = 60`

## Expected Behavior
`chartView.frame.height = 300`

## Workaround
add `extraTopOffset` to correct this behavior

## To Reproduce
gist: https://gist.github.com/iwllyu/e4b27e2263ca621ae473806fa102875b

replace AnotherBarChartViewController.swift, and set the height in AnotherBarChartViewController.xib -> ChartView

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction gist and inspect AnotherBarChartViewController.swift plus the ChartView settings in its XIB. Reproduce the clipped value labels with chartView.frame.height set to 60, compare with height 300 and the extraTopOffset workaround, and verify that short graphs display complete labels without requiring that workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data-visualization, mobile
Issue type
Bug
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.