text data source loads slow. Is my code optimum?

TeeChart for ActiveX, COM and ASP
Post Reply
JT
Newbie
Newbie
Posts: 3
Joined: Fri Nov 15, 2002 12:00 am
Contact:

text data source loads slow. Is my code optimum?

Post by JT » Mon Jan 26, 2004 10:28 am

Hi,
My chart is fed from a 9K text file. It takes 45 seconds to load on a fast computer with a fast internet. Is there a way I can speed up the chart using my existing Apache/1.3.27 Server?
Here is the chart.
http://www.grovision.com/tchartserver/chart252.html
Many thanks.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Jan 27, 2004 11:23 am

Hi,

have you tried using the following code ? :

Code: Select all

    SeriesTextSource1.FileName = "http://www.grovision.com/tchartserver/GVE252.txt"

    SeriesTextSource1.HeaderLines = 0
    SeriesTextSource1.FieldSeparator = ","

    SeriesTextSource1.Series = Chart1.Series(0)
    SeriesTextSource1.AddField "X", 1
    SeriesTextSource1.Active = False

    SeriesTextSource1.Series = Chart1.Series(1)
    SeriesTextSource1.AddField "Y", 3
    SeriesTextSource1.Active = True

    SeriesTextSource1.Series = Chart1.Series(2)
    SeriesTextSource1.AddField "Y", 4
    SeriesTextSource1.Active = True

    SeriesTextSource1.Series = Chart1.Series(3)
    SeriesTextSource1.AddField "Y", 5
    SeriesTextSource1.Active = True

    SeriesTextSource1.Series = Chart1.Series(4)
    SeriesTextSource1.AddField "Y", 6
    SeriesTextSource1.Active = True

    SeriesTextSource1.Series = Chart1.Series(5)
    SeriesTextSource1.AddField "Y", 7
    SeriesTextSource1.Active = True

    SeriesTextSource1.Series = Chart1.Series(6)
    SeriesTextSource1.AddField "Y", 11
    SeriesTextSource1.Active = True

    SeriesTextSource1.Series = Chart1.Series(7)
    SeriesTextSource1.AddField "Y", 12
    SeriesTextSource1.Active = True

Post Reply