PDA

Ver la Versión Completa : Grafico de Barras en TChart


agonzalez
11-02-2004, 20:23:50
Temgo un TChart, en el cual voy a mostrar unos valores los cuales pueden ser positivos y negativos.
Necesito que el eje de origen sea el punto 0 y los valores positivos muestran la barra hacia arriba y los valores negativos muestren la barra hacia abajo.

Actual mente el toma como eje de origen el menor de los valores negativos los demas valores los muestra hacia arriba, dificultando la interpretacion de resultados.

Para los demas graficos(Puntos, Lineas, ...) no tengo problema, pero me piden que sea en barras.

Trabajo con D5


Exitos

jachguate
12-02-2004, 04:29:02
Usa las propiedades

YOrigin y UseYOrigin; de la ayuda de TeeChart:


property YOrigin : Double;
Description
Default Value: 0
The YOrigin property determines the axis value used as a common bottom for all Bar points.
The UseYOrigin property must be True (the default) to use the YOrigin property.
Bars with a value bigger than YOrigin are drawn in one direction and Bars with a lower value are drawn in the opposite direction.
This applies both to TBarSeries and THorizBarSeries components.
property UseYOrigin : Boolean;
Description
Default Value: True
The UseYOrigin property defines if Bars will be bottom aligned to the YOrigin property value.
When False, the minimum of all Bar values is used as the Bar origins value.
When True, the YOrigin property is used as the start point for Bars.


Hasta luego.

;)