Re: Dates in Smile's Graph - RESOLVED
Re: Dates in Smile's Graph - RESOLVED
- Subject: Re: Dates in Smile's Graph - RESOLVED
- From: Michael Ghilissen <email@hidden>
- Date: Sun, 3 Jul 2005 06:45:49 -0400
I've found a solution:
You must use xaxis labels ( containing the dates) and xaxis labels positions (containing the corresponding x values) properties to draw the graph as in this example:
set theValueP to {1, 2, 3} -- labels positions on x axis
set theValue0 to {"1/3/05", "1/4/05", "1/5/05"} -- labels date series to show on x axis
set theValue1 to {35, 35, 37} -- values series 1
set theValue2 to {33, 36, 38} -- values series 2
tell application "Smile"
set c to make new graphic window with properties {pagewidth:8.25 as inches, pageheight:3.0 as inches}
set c1 to QuickCurve({}, theValue1, c)
QuickCurve({}, theValue2, c1's container)
set v to c1's container
-- edit the graph presentation
set v's xaxis labels to theValue0
set v's xaxis labels positions to theValueP
set v's xlabel to "trading days"
set v's ylabel to "prices $"
set v's name to "Open and High prices for stock A"
draw v's window
end tell
On Jul 3, 2005, at 4:02 AM, Michael Ghilissen wrote:
Hi,
Smile's graphing capabilities are really fantastic.
I am using QuickCurve and apparently I can't find the proper way to format a date series i.e. {"Jan 1, 2005","Jan 2, 2005",...} or {"1/7/05"} or {"AS date coercion"}, and multiple variations therof, for the x-axis. What's the magic of it?
Or do I have to use a sequential date number (as in Excel), or a scientific notation?
Thanks much,
Michael Ghilissen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden