MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Legend not displaying first time graph is created

Open ghost opened this issue 10 years ago • 6 comments

The legend is not displayed properly the first time the graph is created, but when i rotate the screen its shows up.. i am using latest version and cant seem to solve it... @PhilJay

ghost avatar Jul 23 '16 16:07 ghost

@PhilJay, When used Legend.setPosition(Legend.LegendPosition.RIGHT_OF_CHART) for PieChart, it doesn't work for the first draw. It is drawn over the slices.

Praveen2106 avatar Jul 25 '16 03:07 Praveen2106

I also met with this problem.

It seems this bug has been fixed. see #1969

leveme avatar Jul 26 '16 12:07 leveme

@leveme but the legend still no display ...

Sevenupboy avatar Jul 31 '16 13:07 Sevenupboy

i met this when i use LineChart legendCo2.setForm(Legend.LegendForm.SQUARE); legendCo2.setTextSize(11f); legendCo2.setTextColor(Color.GRAY);

Sevenupboy avatar Jul 31 '16 13:07 Sevenupboy

u can see #2064 , maybe can solve the problem u met

Sevenupboy avatar Jul 31 '16 14:07 Sevenupboy

Related to #1969, stable release containing the fix will be out soon.

PhilJay avatar Aug 13 '16 13:08 PhilJay