ChartsOrg / ChartsOrg/Charts

api of pie chart (entryLabelColor, entryLabelTextSize) does not match MpAndroidChart

Open
#2,380 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi

I am working on a react native chart wrapper base on MpAndroid and Charts, [link](https://github.com/wuxudong/react-native-charts-wrapper)

I found that there are following attributes in MpAndroidChart pie chart

`pieChart.setEntryLabelColor(color)`
`pieChart.setEntryLabelTextSize(size)`

In Charts, there are also entryLabelColor & entryLabelFont in pie chart, but they won't work.

In PieChartRender.swift, it use dataSet.entryLabelColor, dataSet.entryLabelFont instead.

let entryLabelColor = chart.entryLabelColor
let entryLabelFont = chart.entryLabelFont

.....

for i in 0 ..< dataSets.count
{

......

let entryLabelFont = dataSet.entryLabelFont

.......
}

but in MpAndroid, pieDataSet doesn't have such attributes.

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.