Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
TAChart
(Moderator:
Ask
) »
adding text to line chart points
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
TDBDateEdit component def...
by
1HuntnMan
[
Today
at 07:43:22 pm]
Local Vars often inspect ...
by
SandyG
[
Today
at 07:41:12 pm]
Any support for Perpendic...
by
SandyG
[
Today
at 07:32:22 pm]
7zip DLL is super broken
by
rvk
[
Today
at 07:18:58 pm]
programming with Lazarus
by
MarkMLl
[
Today
at 07:07:51 pm]
environment variables
by
cousinp
[
Today
at 07:06:41 pm]
Listview how to custom or...
by
jenson
[
Today
at 06:10:31 pm]
Hints.
by
wp
[
Today
at 06:03:36 pm]
CLI | Wildcard parameters...
by
MarkMLl
[
Today
at 05:53:49 pm]
Browser User Agent & Frie...
by
MarkMLl
[
Today
at 05:49:58 pm]
How to use newer macOS SD...
by
Hansaplast
[
Today
at 05:42:07 pm]
TStateMachine
by
Thaddy
[
Today
at 05:13:06 pm]
Disable localisation for ...
by
Nitorami
[
Today
at 05:09:21 pm]
Problem with pasting text...
by
zeljko
[
Today
at 03:48:54 pm]
Broken Icon Display on ma...
by
wp
[
Today
at 03:26:40 pm]
Cannot open Access databa...
by
ranny
[
Today
at 03:01:34 pm]
Problems with Gitlab
by
Joanna
[
Today
at 02:27:28 pm]
Extended Module Player
by
Gigatron
[
Today
at 02:20:32 pm]
C++ porting: Is this real...
by
iLya2IK
[
Today
at 12:45:48 pm]
LazCAD – First Release!
by
maurog
[
Today
at 11:32:00 am]
Class designer/editor
by
dseligo
[
Today
at 11:19:16 am]
Searching for a safe alte...
by
Thaddy
[
Today
at 11:14:23 am]
GMP: multiple precision a...
by
Zvoni
[
Today
at 10:43:39 am]
order of evaluation of ov...
by
Thaddy
[
Today
at 10:30:30 am]
Child board for reporting...
by
Joanna
[
Today
at 04:02:52 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: adding text to line chart points (Read 792 times)
Firebird
New Member
Posts: 26
adding text to line chart points
«
on:
July 03, 2024, 03:17:32 pm »
Is there a way to "annotate" points in a line chart? I would like to add a string to each point as to "code" these points. In other words I would like to add data points as (x,y,text).
Logged
wp
Hero Member
Posts: 12279
Re: adding text to line chart points
«
Reply #1 on:
July 03, 2024, 04:49:09 pm »
That's what it's made for:
Code: Pascal
[Select]
[+]
[-]
Chart1LineSeries
.
AddXY
(
x
,
y
,
datapt_label
,
datapt_color
)
;
// title and color optional
In order to display the data point labels, you must switch the series' Marks.Style to smsLabel (if you do this by code you must add unit TAChartUtils). There are other Marks.Style values which select various aspects of a data point - see
https://wiki.lazarus.freepascal.org/TAChart_documentation#Mark_labels
Logged
Firebird
New Member
Posts: 26
Re: adding text to line chart points
«
Reply #2 on:
July 07, 2024, 06:54:56 pm »
Thanks wp that really helps.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
TAChart
(Moderator:
Ask
) »
adding text to line chart points
TinyPortal
© 2005-2018