[Lazarus] TAChart question

Alexander Klenin klenin at gmail.com
Sat Oct 2 05:34:56 CEST 2010


On Sat, Oct 2, 2010 at 10:33, José Mejuto <joshyfun at gmail.com> wrote:
> Hello Lazarus-List,
>
> I need to create a chart like:
>
>
> 5            *
> 4
> 3                 *
> 2       *
> 1  *
>  ONE  TWO THREE FOUR
>
> My source data is a database with 2 fields:
>
> X = string
> Y = integer
>
> How can I create this with TAChart ? It only allows me numerical
> values in both coordinates, or I was unable to find how to indicate
> that X axis is "autoincrement".

You should set BottomAxis.Marks.Source property to an appropriate
chart data source.

See demo/axis for an example.



-- 
Alexander S. Klenin




More information about the Lazarus mailing list