You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to remove one entry from the legend and I've used the following lines of code:
scatterChartView.data = data
scatterChartView.legend.entries.remove(at: 1)
This works the first time the Chart is rendered, but if i switch the orientation of my iPhone the legend displays all the entries.
In the pictures you can see that the first one does not show the "Cluster" DataSet, but in the second one it appears.
Can you maybe tell me what I am doing wrong?
Thank you very much
The text was updated successfully, but these errors were encountered:
My theory is you manually removed one legend entry, however the data entry is still there. When rotating, the legend is re-calculated, so it adds back the removed legend entry.
You should be careful when doing this unless you know how it works.
On the other hand, legend shows the data label on your chart, however, I don't see the reason just to delete one legend entry: why add the specific data but not showing its own legend?
Hi,
I am trying to remove one entry from the legend and I've used the following lines of code:
scatterChartView.data = data
scatterChartView.legend.entries.remove(at: 1)
This works the first time the Chart is rendered, but if i switch the orientation of my iPhone the legend displays all the entries.
In the pictures you can see that the first one does not show the "Cluster" DataSet, but in the second one it appears.
Can you maybe tell me what I am doing wrong?
Thank you very much
The text was updated successfully, but these errors were encountered: