Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3800930
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:58:12+00:00 2026-05-19T13:58:12+00:00

Top post: I have accepted an answer,but it doesn’t work for me. I will

  • 0

Top post: I have accepted an answer,but it doesn’t work for me. I will post a new question, stressing Delphi 7. Thanks to all who gave some good input


I have measurements taken at one second intervals over an hour.

I had a previous question where it was taking 45 seconds to updates a TStringGrid and managed to get that down to “faster than the eye can see”. Partly by moving some computation and database related functionality of of the loop, but – surprisingly to me – the change that really made the difference was setting the strindgrid’s rowCount to 3600 before the loop rather than incrementing it inside the loop.

Now I have a similar problem with a TChart. Maybe if I try preallocating the chart? So, I could Chart1.Series[0].Count := 3600, but than I can’t use AddXy() or Add(), so how would I explicitly set the values in series?

I have a very simple chart, with Floats on the y-axis and hour:seconds on the x-axis

Can anyone help, or suggest another way to speed up chart drawing?


Update: several have suggested using TFastLineSeries, but I don’t see how.

Aha – double click on the Chart, to show all series, select one & click change

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T13:58:12+00:00Added an answer on May 19, 2026 at 1:58 pm

    I manage to draw millons of datapoints in a blink of an eye. Here’s how I do it:
    What you can do is to create two arrays for the X and Y Values, fill them with your values and then these arrays to your chart. For example:

    var
      XValues, YValues: array of double; 
    begin
    
      SetLength(XValues, numberofValues);
      SetLength(YValues, numberofValues);
    
      for ix := 0 to numberofValues - 1 do 
      begin
        XValues[ix] := ...your values
        YValues[ix] := ...your values
      end;
    
      Chart.Series[0].XValues.Value := TChartValues(XValues);
      Chart.Series[0].XValues.Count := high(XValues);
      Chart.Series[0].XValues.Modified := true;
      Chart.Series[0].YValues.Value := TChartValues(YValues);
      Chart.Series[0].YValues.Count := high(YValues);
      Chart.Series[0].YValues.Modified := True;
    

    What also speeds up the drawing is using the TFastLineSeries instead of the regular TLineSeries. When using the FastlineSeries you also have the property DrawAllPoints. When set to false the drawing is even faster. TChart will then skip datapoints that share the same X Position with other datapoints on the screen. It will only draw the first point of these.

    This is where you find it the DrawAllPoints option: alt text

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The current top-voted to this question states: Another one that's not so much a
I have a Posts class and that post can have one file and that
This is my first post and I have the feeling that this is something
I have a model that has ratings in it for an post. I want
I have a Windows program which generates forms. It takes the Top/Left properties at
I have seen numerous examples of the Command pattern But they all tend to
On top of a dual quad core physical host, I would like to run
The top of my web.xml file looks like this: <?xml version=1.0 encoding=UTF-8?> <web-app xmlns=http://java.sun.com/xml/ns/j2ee
On top of my head, especially for C/Linux developer: ack git-bz colorgcc colordiff moap
I often use the top command to see what is taking up resources. Mostly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.