-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legend has only one label #361
Comments
any ideas? |
@crabman448 public override func notifyDataSetChanged()
{
if (_dataNotSet)
{
return
}
calcMinMax()
if (_legend !== nil)
{
_legendRenderer.computeLegend(_data)
}
calculateOffsets()
setNeedsDisplay()
} |
@liuxuan30 |
@crabman448 hey usually you don't need to call this, when you change the dataSet, it will call it |
Hello.
I have pie chart. When it loads first time, then i can see my 6 labels in legend. But pieChart.legend.labels.count is equal 2 and labels are: "" and "myLabel".
Then i update my chart. The pie is perfect, but in the legend there is only one label exist.
pieChart.legend.labels.count is equal 2 and labels are: "" and "myLabel".
So, why in the first time i see 6 labels, but the real amount of labels is 2?
When i press the button on the pop controller the following code runs:
The text was updated successfully, but these errors were encountered: