adding text to line chart points lazarus / 55-TAChart ---------------------------------------------------------------------- Firebird · 2024-07-03 13:17 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). ---------------------------------------------------------------------- wp · 2024-07-03 14:49 That's what it's made for: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i 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 ---------------------------------------------------------------------- Firebird · 2024-07-07 16:54 Thanks wp that really helps.