Page 1 of 1

Graph type change

Posted: Thu Nov 13, 2008 12:11 pm
by 8119859
Hi,

Whenever I change my graph type from 2D/3D Bar to 2D/3D Line (or Area), the Y axis is re-based to start at the lowest value in the data set, not 0. Hence at first sight it appears as though the values have dropped to zero.

Is it a way to force the graph to start at zero when the type is Line (or Area)?

Regards,
Liviu

Posted: Thu Nov 13, 2008 12:14 pm
by narcis
Hi Liviu,

Sorry but I don't understand which is your exact problem. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Thu Nov 13, 2008 3:22 pm
by 8119859
Hi Narcis,

You might be able to figure out what I mean from the two attachments I've posted on your upload page (DSCallards_Bar_Graph.jpg and DSCallards_Line_Graph.jpg). Both attachments were produced using the same data set, first one using 2D Bar and the second one using 2D Line.

What I'd like to see, is the second graph (2D Line) to start at 0 on the Y axis and not at the lowest value in my data set (i.e. 4.06). How can I achieve that?

Thanks.
Liviu

Posted: Thu Nov 13, 2008 3:36 pm
by narcis
Hi Liviu,

Thanks for the information. In that case you can try this:

Code: Select all

			tChart1.Axes.Left.AutomaticMinimum = false;
			tChart1.Axes.Left.Minimum = 0;
For further axes information please read Tutorial 4 - Axis Control. You'll find tutorials at TeeChart's program group.

Posted: Thu Nov 13, 2008 4:13 pm
by 8119859
Thanks Narcis,

That was exactly what I was after.

Liviu