ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  overlapping label
Posted by james on Sep-17-2012 12:25
Attachments:
Hi
Pls can you help me with this
i am trying to create a pie chart with some labels but the labels are overlapping. can you help me fix this

i have posted a picture of what i have (1.jpg) and what it should look like (2.jpg)

this are the functions i used.

james <-function() { #open function

#Function to graph a pie chart
drivers <- c(4,21,3,2,7,13,13,10,4,23)

names(drivers) <- c("Using two parking spots 4%", "Using cellphone 21%", "Ignoring signals 3%",
"Too cautious 2%", "Speeding 7%", "Driving slow 13%", "No signals 13%", "Other 10%", "Bright lights 4%", "Tailgating 23%")

#draw a pie chart of data
pie(drivers)

} #close function


thanks.
1.jpg.jpg
2.jpg.jpg

  Re: overlapping label
Posted by Daniel on Sep-17-2012 19:08
You can check the "Side Label Layout" in the samples. It does what you require:

MyPieChart.setLabelLayout(0)

By the way I discovered it works quite fine and implemented it on a few of my own production routines:)