ChartsOrg / ChartsOrg/Charts

Adding custom background gradient to gridBackground

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

Description

I am trying to add custom gradient to chart grid background, something like this:

![Screenshot 2020-08-11 at 14 11 14](https://user-images.githubusercontent.com/3833916/89895731-98bc8080-dbdc-11ea-86ea-23e168d02105.png)

I have done this by putting my view behind the chart view. I have printed _viewPortHandler.contentRect, and from there i positioned my view. Now, while this works, it is not most ideal solution. I would like to somehow at runtime have option to get gridview size, but since _viewPortHandler is internal, I see no option to do this.

Is there some better way to achieve this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.