ChartsOrg / ChartsOrg/Charts

CandleStick Charts not resizing properly

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

Description

### What I expected:
To add 12 data points and have them size accordingly

### What happened:
The CandleStick boxes became the width of the wicks

## Explanation:

In my application I am displaying 12 data points with 3 data entries. A total of 36 possible candles could be on the screen at any given time. They are all spaced out evenly with each point based on a range. When displaying 12 points the boxes go from boxes to sticks.

When I trim the number of points down to 7, it displays properly. Is there anyway to keep the ratio the same while adding as many points as we want?

*Notice the orange points

![image uploaded from ios](https://user-images.githubusercontent.com/7225808/36385926-1b14b79e-1562-11e8-95b4-83073b3bb382.png)
![img_0699 1](https://user-images.githubusercontent.com/7225808/36385927-1b2943b2-1562-11e8-8c2e-2fdd1ba14a61.PNG)

Contributor guide

Open the contributing guide

Research direction

The issue names no source files, tests, or entry points. Reproduce the CandleStick chart with 12 data points and compare it with the seven-point case, then trace the chart's candle-width and spacing calculation. Done means candle boxes retain the expected proportion as more points are displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data-visualization, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.