I am creating a simple bar chart using Teechart.
I need to plot very big values on y axes. The problem with big values is that legend values
appear too close to legend colors. Following is my code:
Code: Select all
TChart chart= new Steema.TeeChart.TChart();
System.Drawing.RectangleF r = new System.Drawing.RectangleF(0,0,this.View.Bounds.Width,this.View.Bounds.Height-42);
chart.Frame = r;
Steema.TeeChart.Styles.Bar seriesBar = new Steema.TeeChart.Styles.Bar(chart.Chart);
seriesBar.Add (20000000,"Aa");
seriesBar.Add (32000000,"Bb");
seriesBar.Add (90000000,"Cc");
seriesBar.Add (6000000,"Dd");
seriesBar.Add (40000000,"Ee");
seriesBar.Add (85600000,"Ff");
chart.Legend.Alignment = LegendAlignments.Bottom;
chart.Legend.LegendStyle = LegendStyles.Values;
chart.Legend.AutoSize = true;
chart.Legend.Width = 950;
chart.Legend.Transparent = true;
Please let me know how can i add space between legend color and their values.
Thanks