[vwnc] [BG] Charting Multiple Data Series, a quick question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
J G
Reply | Threaded
Open this post in threaded view
|

[vwnc] [BG] Charting Multiple Data Series, a quick question

J G
Hi,

It's a simple chart however I can't get it work.
Say I have domain object  which knows rows but not columns oriented
series of data such as #(1 2 3 4 5) and #(6 7 8 9 10), etc.
And before put into charts I wish not to convert each time the series
into something like #(#(1 6) #(2 7)...#(5 10)).

According to GUI Developers' Guide (p215)
"On the Data Series property page, add two new Data Set: items, giving each
a name, for example Data1 and Data2. By default, with the aspect field left
empty, items are assigned to the data sets in order, so Data1 is assigned
#(100 50 -30 34 50) and Data2 is assigned #(20 30 35 30 70). In this
case the aspect can simply be a collection, rather than a value holder on
the collection. "

I tried to make data1 and data2 (for example) to return above
mentioned series as OrderedCollection (or asValue, say #(1 2 3 4 5)
asValue) but it doesn't work?
After that I set two series as computed and modified the selectors to
something like:

data1
        ^(PluggableAdaptor new)
                getBlock: [:m | self data dataSeries1]
                        putBlock: [:b :v | ]
                        updateBlock: [:b :a :p | false];
                yourself

I can't get it work either.

Any advice please? Thanks in advance!

Best Regards,

Jim G
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc