ChartsOrg / ChartsOrg/Charts

customview instead of lines and labels in pieChart view ? Possible

Open
#5,230 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi,

![Image](https://github.com/user-attachments/assets/d16912ac-2156-442d-a4ad-e60fb3609f3a)

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.

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.