Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add the label on each curve point of chart #7

Open
Annyjain29 opened this issue May 16, 2020 · 0 comments
Open

How to add the label on each curve point of chart #7

Annyjain29 opened this issue May 16, 2020 · 0 comments

Comments

@Annyjain29
Copy link

Annyjain29 commented May 16, 2020

Hi i am new to swiftui , i really like your chart but how to add lables on each pickpoints of chart

Chart(data: [0.0, 0.2, 0.5, 0.4, 0.3, 0.5, 0.1])
.chartStyle(
AreaChartStyle(.quadCurve, fill:
LinearGradient(gradient: .init(colors: [Color.orange.opacity(0.7), Color.orange.opacity(0.7)]), startPoint: .top, endPoint: .leading)
)

            )

I want to show lable of each curve point of label

Thanks

@Annyjain29 Annyjain29 changed the title What is the dependency url for this How to add the label on each curve point of chart May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant