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
Why isn't Lazarus / Free ...
by
Seenkao
[
Today
at 12:01:35 am]
TListView - please advis...
by
TRon
[
Today
at 12:01:23 am]
Randomally generated code
by
rvk
[April 28, 2025, 11:06:58 pm]
Updating and redrawing SV...
by
PawelO
[April 28, 2025, 11:00:19 pm]
Something kind of funny a...
by
Bart
[April 28, 2025, 10:23:09 pm]
coded DBUG?
by
440bx
[April 28, 2025, 10:20:02 pm]
EOF Problem
by
OC DelGuy
[April 28, 2025, 09:38:57 pm]
hwnd type error
by
TBMan
[April 28, 2025, 09:10:31 pm]
'Events' Quiry
by
J-G
[April 28, 2025, 07:31:06 pm]
New shader examples for r...
by
Guva
[April 28, 2025, 07:18:51 pm]
Liverpool's wins are fib...
by
Thaddy
[April 28, 2025, 05:47:57 pm]
Why there is no build-in ...
by
Seenkao
[April 28, 2025, 05:41:52 pm]
Lazarus Install Question
by
440bx
[April 28, 2025, 04:28:40 pm]
Spiral search of an image
by
user5
[April 28, 2025, 04:05:34 pm]
[SOLVED] Testing with SQL...
by
1HuntnMan
[April 28, 2025, 03:53:35 pm]
Fpcupdeluxe
by
Philippe1
[April 28, 2025, 03:09:12 pm]
[Solved] Check if URL is ...
by
d2010
[April 28, 2025, 02:23:01 pm]
"Object Oriented Programm...
by
d.ioannidis
[April 28, 2025, 02:22:24 pm]
[solved with GENIUS demo]...
by
Nicole
[April 28, 2025, 01:53:07 pm]
Ctrl-V doesn't work anymo...
by
TRon
[April 28, 2025, 12:30:26 pm]
TStringGrid: what is the ...
by
Handoko
[April 28, 2025, 12:08:57 pm]
UUIDv7 library and demo
by
Thaddy
[April 28, 2025, 11:38:15 am]
macOS 15.4 Breaks All Com...
by
Hansaplast
[April 28, 2025, 11:35:27 am]
ShowModal has a bug in Li...
by
TRon
[April 28, 2025, 11:34:11 am]
Reducing the saturation o...
by
MarkMLl
[April 28, 2025, 11:11:47 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: adding text to line chart points (Read 1354 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: 12773
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