2016-11-02 4 views
0

IOS 차트가있는 막대 차트에서 각 막대 위에있는 값의 글꼴 크기와 색을 설정하려고합니다. 아무도 이것으로 도울 수 있습니까?iOS 차트가 막대 글꼴 위에있는 값

레이블은 작지만 어둡습니다.

enter image description here

+0

데모 프로젝트를 만들고 여기에 드라이브 URL을 제공하면 누구나 다운로드하여 도움을받을 수 있습니다. – Hasya

답변

0

글쎄, 당신은으로 사용 BarChartDataSet의 properties.Such하여 변경할 수 있습니다

/// Sets/get a single color for value text. 
/// Setting the color clears the colors array and adds a single color. 
/// Getting will return the first color in the array. 
open var valueTextColor: NSUIColor 

/// the font for the value-text labels 
open var valueFont: NSUIFont 

그리고 참으로 drawValuesEnabled을 설정하는 것을 잊지 마세요.