A plurality of data elements are analyzed, in one or more computers, to optimize an arrangement of slices in a pie chart, wherein a value for each of the data elements represents an area of a corresponding one of the slices in the pie chart, and the data elements are ordered by their values, so that labels and lines on placed on the pie chart without overlap.