jmp-l
[Top] [All Lists]

Why I cannot control the axis setting by JSL?

To: jmp-l@lists.biostat.wustl.edu
Subject: Why I cannot control the axis setting by JSL?
From: Fred Zhang <ieaggie2009@gmail.com>
Date: Mon, 2 Mar 2009 13:47:07 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=9srYF3DGRKnyYfku7DK/vO8Q3mnCUrJeyVVCELUjMbQ=; b=bxO2iOLFjupSPBsV1oCQGjH1cybIifFs1TBLdydUbaTbPWk2ywGZfeBVeOcg1qOtEt TMsWCrSta6PoDYw6ChPRjnnFuTv5L/bUzUwKxcLgPvu81UTnEhQBl4UN5ZIOnPNZ4Ly8 /mSW3q19sl57T1LduUuY1aq/80Hrk0qeZl2NY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xlMK7vAT/lABN/X69dXDDOlwKaTG1sagNJQBYngFWHpf7++c8G33swAWewQPNNGJTb veBT0F46YY153ZSCJokKTHY46DOxswXiA4HNAVgqE7+4X9Zw0jlcMhf5/ZJg91DbOn8t GWDk4T4FSSyVzAS07GmSiIsoLMyJq8/OpEkLs=
Hi, all
 
I am using Graph Builder to generate a plot.
Attached is the data file, and following is the code.
 
I need to change the x-axis format to be USD Currency 14.0,
and also try to show the major grid of y-axis.
However, the code did not work as the way I expect, that is, both AxisBox do not change at all.
 
Please advise me what's wrong with my code.
 
Thank you so much.
Fred
------------------------------------------------------
dt = data table("Graph Example Data");
biv = Graph Builder(Size(670, 460), Show Control Panel( 0 ),
 Variables( X( :Margin, Format("Currency", "USD", 14,0)), Y( :NP, Size(94))),
 Elements(Bar(X, Y, Legend( 10 ), Bar Style( "Side by side" ),
   Summary Statistic( "Mean" ))),
 SendToReport(Dispatch( {}, "400", LegendBox, {Set Title( "" ), Position( {-1} )}),
     Dispatch({}, AxisBox(2), {Scale("Linear"), Format("Best"), Min(-0.5), Max(9.5), Inc(1), Minor Ticks(0), Show Major Grid(1),
  Show Major Ticks(1), Show Minor Grid(0), Show Minor Ticks(1), Show Labels(1), Rotated Labels(0)}),
 Dispatch({}, AxisBox(1), {Scale("Linear"), Format("Currency", "USD", 14, 0), Min(-3802.28136882129), Max(1996197.71863118), Inc(500000), Minor Ticks(1), Show Major Grid(0), Show Major Ticks(1), Show Minor Grid(0), Show Minor Ticks(1), Show Labels(1), Rotated Labels(0)})
 )
);
 

Attachment: Graph Example Data.xls
Description: MS-Excel spreadsheet

<Prev in Thread] Current Thread [Next in Thread>