ChartsOrg / ChartsOrg/Charts

Inset data within Chart

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

Description

Hey guys,

I was wondering if there is a way to inset the data points itself to accomplish a layout as in the following design:

![screenshot 2017-08-04 14 04 49](https://user-images.githubusercontent.com/97770/28967958-fe8f4840-791d-11e7-9da3-418980e3d5a0.png)

The only thing I got so far is setting an extra offset (via setExtraOffset) but that insets the entire Chart. I'd like to only inset the first and last data point.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how setExtraOffset affects chart layout and where the first and last data points are positioned. Compare the current whole-chart inset with the requested layout, then determine how the chart can inset only those endpoints. Done means the first and last data points have the requested spacing without shifting the entire chart.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data-visualization, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.