On Dec 30, 2009, at 8:49 AM, Baiss Eric Magnusson wrote:
Yes, there's some interface I'm not getting.
For all the variables for a graph there are, in this case, 12
values. I used strings like <xNameKey[]> to contain the 12 values.
All the months of the year on x axis, (n) tick values on y axis, and
five different bars each with a separate value for each month, this
is the value binding.
In the old java package I did a lot of iterating and parsing to
generate the graph for the package.
I can't see how to fit the old into the new.
Baiss -
I looked at this package and, frankly, it does not make that much
sense to me either. But then I find that when Anjo puts things in, be
can often be ... concise, shall we say ... in how he documents things.
I could probably buy and read through the doc for JFreeChart, but I
have not done that yet.
I put a new Example project in Wonder. It is Examples/Misc/
ERComponentTour. There is, after all, nothing analogous to the
D2WComponentTour example and there are lots of non-D2W components in
Wonder. The first (and presently only) page in that app is for
"ERPCategoryChart & ERPPieChart." And there is no ERPPieChart yet. And
the examples there are probably not the smartest. It certainly seems
that for the AreaChart and WaterfallChart, this dataset does not make
sense. But this is the first version, so it is obviously better than
what was there before. And anyone who wants to show better examples of
these components is certainly welcome to do so.
This example does show a minimal usage of the ERPCategoryChart. Let me
know if this helps at all. Or, if it does not, what would be needed to
make it make more sense? Let me know what you end up figuring out and
I can probably use that to improve the example.
cheers - ray
On Dec 29, 2009, at 6:38 PM, Pascal Robert wrote:
Le 09-12-29 à 21:31, Baiss Eric Magnusson a écrit :
As the binding to <valueKey> to a Wonder ERPCategoryChart widget I
had a
NSMutableArray<Integer> and the following error ensued:
- com.webobjects.foundation.NSMutableArray cannot be cast to
java.lang.Number
java.lang.ClassCastException:
com.webobjects.foundation.NSMutableArray cannot be cast to
java.lang.Number
at er.plot.ERPCategoryChart.createDataset(ERPCategoryChart.java:
129)
at er.plot.ERPChart.dataset(ERPChart.java:185)
at er.plot.ERPCategoryChart.createChart(ERPCategoryChart.java:111)
at er.plot.ERPChart.chart(ERPChart.java:200)
at er.plot.ERPChart.imageData(ERPChart.java:217)
at er.plot.ERPChart.imageMap(ERPChart.java:263)
Am I missing something in the binding, my <item> array is a
NSArray of inner class objects:
public class BarChartItem { // inner class
public String[] xNameKey;
public String[] yNameKey;
public String nameKey;
public Number[] valueKey;
BarChartItem( String[] xNameKey, String[] yNameKey, String
nameKey, Number[] valueKey ) {
this.xNameKey = xNameKey;
this.yNameKey = yNameKey;
this.nameKey = nameKey;
this.valueKey = valueKey;
}
}
Bonus question: what does the <categoryKey> do?
----
Baiss Eric Magnusson
http://www.CascadeWebDesign.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ray%40ganymede.org
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]