Draw A Bar Chart
COMMENT
Bar chart by Amir
LIST

List
VARIABLES
Set variable
ChartBarValues
to
List
COMMENT
Building the bar chart table
TEXT
<title>Chart</title>
<table width="100%">
<tr valign="bottom">

Text
VARIABLES
Set variable
Table
to
Text
SCRIPTING
Repeat with each item in
ChartBarValues

Repeat Results
MATHS
Repeat Item
×
10
Options Under Construction

Calculation Result
TEXT
<td align="center">
<table cellspacing="0" width="100%">
<tr>
<td height="
Calculation Result
" bgcolor="blue"> </td>
</tr>
</table>
Repeat Item
</td>

Text
VARIABLES
Add
Text
to
Table
SCRIPTING
End Repeat

Repeat Results
TEXT
</tr>
</table>

Text
VARIABLES
Add
Text
to
Table
NOTHING
Nothing
TEXT
Combine
Table
with
New Lines

Combined Text
VARIABLES
Set variable
Table
to
Combined Text
COMMENT
preparing to display the bar chart.
DOCUMENTS
Make rich text from
Table

Rich Text from HTML
MISSING
makeimagefrompdfpage Under Construction
VARIABLES
Set variable
BarChart
to
Image
SCRIPTING
Count
Items
in
Image

Count
SCRIPTING
If
Count
is greater than
1
MEDIA
Combine
Image
Vertically

Combined Image
VARIABLES
Set variable
BarChart
to
Combined Image
SCRIPTING
Otherwise
VARIABLES
Get
BarChart
SCRIPTING
End If

If Result
DOCUMENTS
Show
BarChart
in Quick Look
Showcuts