Page 1 of 1

Unable to set font size of custom labels

Posted: Tue Sep 01, 2015 7:20 am
by 9526439
Hi Steema Support

We are using Custom labels in our chart but we are unable to set their font size of axis labels.
We are attaching a demo file for the same.

Please provide any solution asap.

Thanks
PlanoResearch

Re: Unable to set font size of custom labels

Posted: Tue Sep 01, 2015 9:48 am
by Christopher
Hello,
amol wrote:We are using Custom labels in our chart but we are unable to set their font size of axis labels.
We are attaching a demo file for the same.
Try:

Code: Select all

      while ((labelvalueBottom) <= tChart1.Axes.Bottom.Maximum)//tChart1.Axes.Bottom.Minimum ++ incr
      {
        AxisLabelItem item = tChart1.Axes.Bottom.Labels.Items.Add(labelvalueBottom, labelvalueBottom.ToString());
        item.Font.Size = 4;
        labelvalueBottom += incrBottom;
      }