Custom Axis Labels
Posted: Mon Aug 18, 2008 1:12 pm
Hello,
Using costum axis labels with the following code
AxisLabelItem lbl = new AxisLabelItem(tChartBars.Chart);
string labeltext = row.ItemArray[1].ToString();
lbl.Text = labeltext;
lbl.Transparent = true;
lbl.Pen.Visible = false;
lbl.Value = i;
tChartBars.Chart.Axes.Bottom.Labels.Items.Add(lbl);
produces the correct labels in a bar chart under the horizontal axis, but leaves a lot of blank area below the labels (appr. the same area as the labels cover). How can I get rid of the blank area?
Using costum axis labels with the following code
AxisLabelItem lbl = new AxisLabelItem(tChartBars.Chart);
string labeltext = row.ItemArray[1].ToString();
lbl.Text = labeltext;
lbl.Transparent = true;
lbl.Pen.Visible = false;
lbl.Value = i;
tChartBars.Chart.Axes.Bottom.Labels.Items.Add(lbl);
produces the correct labels in a bar chart under the horizontal axis, but leaves a lot of blank area below the labels (appr. the same area as the labels cover). How can I get rid of the blank area?