Thanks to visit codestin.com
Credit goes to github.com

Skip to content

customview instead of lines and labels in pieChart view ? Possible #5230

Description

@iosdev4rnd

Hi,

Image

is it possible to have custom xib (view) instead of these lines and label only ? i want to create my own view for this purpose. i tried to search and i could not find anything related to piechart, but there are ballonmarkers and xyMarkerView present, but they dont refelect anything even if i add a custom view there.

let marker = BalloonMarker(color: UIColor(white: 180/255, alpha: 1), font: .systemFont(ofSize: 12), textColor: .white, insets: UIEdgeInsets(top: 8, left: 8, bottom: 20, right: 8)) marker.chartView = chartView marker.minimumSize = CGSize(width: 80, height: 40) chartView.marker = marker

this is how i tried. not sure if i did a mistake or what i am suppose to do. can someone please help me out ?

PS: i dont want to show a custom view on click, i want to replace these lines so that i can show my own custom view always.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions