[solved] TA Chart / BarSeries: Which setting will say "no data - no draw"? lazarus / 55-TAChart ---------------------------------------------------------------------- Nicole · 2023-06-21 08:10 I have a chart, in which I add data by code. The x-axes holds dates. Which setting will make that only those dates are drawn, where there are figures for? Please see at the screenshot, how it looks and how I want it to look. ---------------------------------------------------------------------- wp · 2023-06-21 08:59 Do not assign an x value to the series; this way you use the equidistant point index --> Use Series.Add(y) rather than Series.AddXY(x, y). Convert the date to a string and apply is as additional parameter in the Add call: Add(y, DateToStr(date)). In order to get the dates to the horizontal axis you additionally must assign the ChartSource used by the series to the Source property of the BottomAxis.Marks. And you must also set BottomAxis.Marks.Style to smsLabel in order to see the labels defined by the Add calls: 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 uses  TAChartUtils; procedure TForm1.FormCreate(Sender: TObject);begin  Chart1BarSeries1.Add(Random*1000, DateToStr(EncodeDate(2000, 1, 1)));  Chart1BarSeries1.Add(Random*1000, DateToStr(EncodeDate(2020, 1, 1)));  Chart1BarSeries1.Add(Random*1000, DateToStr(EncodeDate(2022, 1, 1)));  Chart1BarSeries1.Add(Random*1000, DateToStr(EncodeDate(2022, 6, 21)));  Chart1.BottomAxis.Marks.Source := Chart1BarSeries1.Source;  Chart1.BottomAxis.Marks.Style := smsLabel;end; ---------------------------------------------------------------------- Nicole · 2023-06-21 12:23 This worked at sudden, thank you so much!