Page 1 of 1
text data source loads slow. Is my code optimum?
Posted: Mon Jan 26, 2004 10:28 am
by 6926427
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.
Posted: Tue Jan 27, 2004 11:23 am
by Pep
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