Skip to content

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

@Annyjain29

Description

@Annyjain29

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions