data limits
Moderators: heatherlaine, BvG
data limits
I have csv files with more than 6K lines of data and when I use chartsengine to create a chart nothing appears. I do not have any problems on smaller files, just the larger ones (above 3K lines). What is the upper limit of chartsengine to process data? Is there a way to overcome this limit?
I'm running RunRev Media 3.5 on a MBP 2.53 GHz, 4 Mb RAM, ChartsEngine 1.04
Thanks!
I'm running RunRev Media 3.5 on a MBP 2.53 GHz, 4 Mb RAM, ChartsEngine 1.04
Thanks!
Dear t-rex22,
As far as I know, ChartsEngine's limits depend on the amount of memory available. I know for sure that 6000 lines of data is peanuts for ChartsEngine. Obviously, you're doing something wrong. You might want to give a precise description of what you're doing and post your scripts here. Maybe someone can come up with a solution to help you.
Best regards,
Mark
As far as I know, ChartsEngine's limits depend on the amount of memory available. I know for sure that 6000 lines of data is peanuts for ChartsEngine. Obviously, you're doing something wrong. You might want to give a precise description of what you're doing and post your scripts here. Maybe someone can come up with a solution to help you.
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
[quote="malte"]Dear t-rex,
which chart type do you want to draw?
All the best,
Malte[/quote]
Hi Malte,
I'm attempting to draw line charts for large (varying) sets of CSV data. I believe that, as Mark suggested, I'm running out of memory. Smaller (3K lines) data sets plot without problem.
Is there a way to create a plot without storing the data set in memory?
Thanks for your response!
which chart type do you want to draw?
All the best,
Malte[/quote]
Hi Malte,
I'm attempting to draw line charts for large (varying) sets of CSV data. I believe that, as Mark suggested, I'm running out of memory. Smaller (3K lines) data sets plot without problem.
Is there a way to create a plot without storing the data set in memory?
Thanks for your response!
Malte looked at my data file and found that there was a problem. He added the following code to my script:
-- create chart
replace "time, Probe Accel" with empty in tChartdata
replace "milliseconds, m/s^2" with empty in tChartData
set the charts["data"] of tChart to tChartData
My graphing script now works perfectly even with files that are 16K lines.
Thanks Malte!!
-- create chart
replace "time, Probe Accel" with empty in tChartdata
replace "milliseconds, m/s^2" with empty in tChartData
set the charts["data"] of tChart to tChartData
My graphing script now works perfectly even with files that are 16K lines.
Thanks Malte!!
Your savest bet is to check the data, if any item is a number. Set the itemDel to the same itemdelimiter as the one you use for the chart (comma by default)
The fastest routine to strip out any non numeric items would take me some thinking. However, if one item on a line is not a number then the whole line should be deleted.
All the best,
Malte
Code: Select all
repeat for each item theItem in tChartData
if theItem is not a number then
-- there is a problem
end if
end repeat
All the best,
Malte