Page 1 of 1

Avoid Gap between DateTime Axis ....

Posted: Mon Dec 26, 2005 10:06 am
by 9638762
I searched forum and couldnt find solution ..I could only find trick ..
So i made trick as u point ...

Code: Select all

 void RasChart_BeforeDrawAxes(object sender, Steema.TeeChart.Drawing.Graphics3D g)
        {
            if (this.Series.Count != 0)
            {
                (sender as RasChart).Series[0].Labels = Program.sl;
//I store labels to Program.sl
            }
}
Will you plan add property like IgnoreNullDateTime....Or what is the best choice to implement this request to performance and maintenance..



And Extra question : I have three charts. and one of them is "Main Chart"..
All of them have to have same bottom axes..
How could i set gridlines of the other charts from gridlines of MainChart...

Posted: Tue Dec 27, 2005 9:27 am
by narcis
Hi glikoz,

You may be interested in the "Axis labels no weekends" example at TeeChart's features demo, available at its program group. The example can be found at All Features\Welcome !\Chart styles\Financial\Candle (OHLC)\Axis Labels no Weekends.
And Extra question : I have three charts. and one of them is "Main Chart"..
All of them have to have same bottom axes..
How could i set gridlines of the other charts from gridlines of MainChart...
You should copy each property value from one chart to the other like this:

Code: Select all

tChart1.Axes.Bottom.Grid.Style =tChart2.Axes.Bottom.Grid.Style;