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
"Show Compiler Dialog"
by
JuhaManninen
[
Today
at 02:04:04 am]
Incorrect FPC/Lazarus bui...
by
Seenkao
[
Today
at 01:47:00 am]
Bitmap 16bit R5G6B5
by
wp
[
Today
at 01:16:23 am]
Loading text data from a ...
by
carl_caulkett
[
Today
at 01:10:53 am]
Game Music Emulator
by
Fred vS
[
Today
at 12:28:56 am]
Recommended way to build ...
by
carl_caulkett
[
Today
at 12:13:25 am]
Is there a better web-bro...
by
QEnnay
[September 17, 2024, 11:50:29 pm]
LazReport / FreeReport qu...
by
dseligo
[September 17, 2024, 11:37:59 pm]
Complex objects and JsonO...
by
Flea
[September 17, 2024, 11:02:28 pm]
Best way to exchange data...
by
cdbc
[September 17, 2024, 10:16:27 pm]
TListView.OnChange Event ...
by
msintle
[September 17, 2024, 10:11:04 pm]
Broken Icon Display on ma...
by
msintle
[September 17, 2024, 10:09:18 pm]
Compiler error when check...
by
ASerge
[September 17, 2024, 08:57:07 pm]
how to convert pdf to png...
by
zeljko
[September 17, 2024, 08:35:54 pm]
Simple multithreading cod...
by
MarkMLl
[September 17, 2024, 08:31:05 pm]
Golang vs free pascal
by
gidesa
[September 17, 2024, 08:27:08 pm]
Extended Module Player
by
TRon
[September 17, 2024, 06:32:25 pm]
Listview how to custom or...
by
VisualLab
[September 17, 2024, 05:48:48 pm]
Non-OS dependent way to u...
by
carl_caulkett
[September 17, 2024, 05:27:57 pm]
Problems with case statem...
by
MarkMLl
[September 17, 2024, 03:02:33 pm]
Tessellated Pattern: How ...
by
Boleeman
[September 17, 2024, 02:15:20 pm]
macOS 11 Cocoa headers
by
Hansaplast
[September 17, 2024, 12:44:49 pm]
How do you move a Procedu...
by
MarkMLl
[September 17, 2024, 12:40:14 pm]
Cross Fractal
by
Boleeman
[September 17, 2024, 12:27:53 pm]
Hashids that you need but...
by
Thaddy
[September 17, 2024, 12:19:14 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: adding text to line chart points (Read 902 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: 12299
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