Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Gráficos (https://www.clubdelphi.com/foros/forumdisplay.php?f=8)
-   -   Grafico de Barras en TChart (https://www.clubdelphi.com/foros/showthread.php?t=7325)

agonzalez 11-02-2004 20:23:50

Grafico de Barras en TChart
 
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:

Cita:

Empezado por Tee chart help
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.

;)


La franja horaria es GMT +2. Ahora son las 12:02:47.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi