Placing items at exact position on Bottom axis
Posted: Mon Nov 03, 2008 3:59 pm
I have a simple one series chart with the bottom axis ranging from 0 to 8760 (the number of hours in the year).
I am trying to add my on items, to control the labeling. I have tried the following:
chart2.Axes.Bottom.Items.Add(2000);
chart2.Axes.Bottom.Items.Add(6000);
or
chart2.Axes.Bottom.Items.Add(2000, '2K') ;
chart2.Axes.Bottom.Items.Add(6000, '6K') ;
Regardless of which way I do it, I get one mark at 4,000. I am working with a small graph, so I have to control the location and I know space is an issue. If I do not try to add the items as above, I get one item at 4,000.
I have also tried one item only say:
chart2.Axes.Bottom.Items.Add(3500);
I still get the mark at 4,000.
Anything I am doing wrong?
I am trying to add my on items, to control the labeling. I have tried the following:
chart2.Axes.Bottom.Items.Add(2000);
chart2.Axes.Bottom.Items.Add(6000);
or
chart2.Axes.Bottom.Items.Add(2000, '2K') ;
chart2.Axes.Bottom.Items.Add(6000, '6K') ;
Regardless of which way I do it, I get one mark at 4,000. I am working with a small graph, so I have to control the location and I know space is an issue. If I do not try to add the items as above, I get one item at 4,000.
I have also tried one item only say:
chart2.Axes.Bottom.Items.Add(3500);
I still get the mark at 4,000.
Anything I am doing wrong?