How can I prevent labels from overlapping each other in ZedGraph?

1.2k Views Asked by At

I have a ZedGraph stacked bar graph, and I want each bar to show its value on a label. So far no problem.

But is there any built-in function to prevent labels from overlapping?

Here is a screenshot showing the problem:

enter image description here

1

There are 1 best solutions below

2
On BEST ANSWER

I would suggest just changing the angle property for your labels' FontSpec. Use i.e. about 30-45 degrees and you have your problem solved.

See:
http://zedgraph.sourceforge.net/documentation/html/T_ZedGraph_TextObj.htm