New topic: 

Looking For Simple Way To Create A "Simple" Bar Graph

<http://forums.realsoftware.com/viewtopic.php?t=45148>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Knightlite          Post subject: Looking For Simple Way To 
Create A "Simple" Bar GraphPosted: Tue Aug 28, 2012 4:57 am                     
    
Joined: Thu Apr 26, 2007 7:29 am
Posts: 237
Location: Middlebury, CT                Hi,

I am looking for some sample code for a way to create a simple bar or line 
graph which plots out saved scores in a recordset.

I know MonkeyBread has the Chart Director plugin which looks fabulous, but 
unfortunately out of my budget.  Also, the bar chart is a very small part of my 
software, so it does not justify the expense in my case.

Other alternatives seem to be very limited.  I found a link for iChart123 but I 
can't seem to get that to go. (Download Link)
http://code.google.com/p/ichart123/downloads/list

I found some sample code from this thread:

http://forums.realsoftware.com/viewtopic.php?f=6&t=21053&p=111776&hilit=ichart123#p111776

.And I tried it out. This is what I did.

1) In Real Studio 2012 R1 I started a new project, and copied the following 
objects to the project.

chart123.rbo
chart123Canvas.rbo
chart123Data.rbo
chart123Graph.rbo
chart123Grid.rbo
chart123Theme.rbo
modThemeStyle.rbo
ThemeStyle.rbo

2) In the window, I dragged out a canvas and set the Super to Chart123Canvas 
and named the Canvas Chart123Canvas as well.

3) I then dragged out a button and put the following code on it;

Dim ChartData as new Chart123Data
Dim iNewRow As Integer

ChartData.Columns = 1
ChartData.ColumnTitle(0) = "Sales"

iNewRow = ChartData.AddRow("January", "", array(100.0))
iNewRow = ChartData.AddRow("February", "", array(200.0))
iNewRow = ChartData.AddRow("March", "", array(300.0))

Chart123Canvas1.iChart123.ChartType = ChartType_Column3D
Chart123Canvas1.iChart123.ChartData = ChartData

Chart123Canvas1.Redraw


Then tried to run it, and got the error:

Quote:Parameters are not compatible with this function
ChartInteractive.Clear '**Clear First

I was wondering if anyone has a better solution, or know how to get iChart123 
to work.

Any help would be appreciated.

Jim   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

rbforumnotifier@monkeybreadsoftware.de

Reply via email to