ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.52k stars 5.99k forks source link

Bg Colour for Axis #4406

Open Neelima-89 opened 4 years ago

Neelima-89 commented 4 years ago

ℹ Please fill out this template when filing an issue. All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

ℹ Please replace this with what you did.

What did you expect to happen?

ℹ Please replace this with what you expected to happen.

What happened instead?

ℹ Please replace this with of what happened instead.

Charts Environment

Charts version/Branch/Commit Number: Xcode version: Swift version: Platform(s) running Charts: macOS version running Xcode:

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

Neelima-89 commented 4 years ago

I would like to have bg colour for xAxis and yAxis in chart view. I didn't find any solution. Is there any way to do it?

Planet30 commented 4 years ago

If it is not natively supported in Charts (I actually do not know), you might consider a ZStack in SwiftUI and use a colored background or a colored drawn objects.

https://www.youtube.com/watch?v=9Vs4YDSpzHA

image