

Moving from Microsoft Office VBA to AppleScript:
MacTech's Guide to Making the Transition
Introduction
|
Table of Contents
Page Prev and Page Next buttons at bottom of the page.
|
April, 2007
Page 79
--Create chart object
set oChartObj to make new chart object at end with properties ¬
{left position:400, top:100, width:500, height:400}
--Now build the Chart within the ChartObject
tell chart of oChartObj
set chart type to xy scatter smooth -- define chart type
-- add each series
repeat with i from 2 to (count (columns of rHeaders))
set newSeries to make new series at end with properties ¬
{series values:(column i of rData), xvalues:¬
(column 1 of rData), name:(value of cell i of rHeaders)}
-- need to specify _value_ (no default property)
end repeat
--'Add Titles and Format Chart and Axes
set has title to true
tell its chart title -- needs 'its !!
set caption to "My XY Scatter Chart"
tell font object
set name to "Verdana"
set font size to 12
set bold to true
end tell
end tell
set categoryAxis to get axis axis type category axis ¬
which axis primary axis
tell categoryAxis
< Previous Page Next Page>

- SPREAD THE WORD:
- Slashdot
- Digg
- Del.icio.us
- Newsvine