Jack
Jack

Reputation: 1

EXTJS 4.2.1 Legend not fitting completely in panel

I have made a few piecharts and each piechart has its own panel. The problem is that the legends of each pie charts are not fully displaying they are being cut off as there is not much width available on the page.

is there any properties that allows the legend to be fitted in to a particular area or maybe the legend is not fully written in 1 line but split into 2 lines so that it doesnt require so much width.

currently I only have this code

legend { position : 'right' }

Upvotes: 0

Views: 118

Answers (1)

Subash .V
Subash .V

Reputation: 23

You can use legend: { docked: 'right'} instead of using legend { position: 'right' } by using this you will be able to set the legend to a particular area(ie: left, right, top, and bottom). Here is the working solution - enter link description here

Upvotes: 1

Related Questions