• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Success]: from JFreeChart (BufferedImage_) to NSData_
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Success]: from JFreeChart (BufferedImage_) to NSData_


  • Subject: [Success]: from JFreeChart (BufferedImage_) to NSData_
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Mon, 11 Jan 2010 19:36:01 -0800

Thanks to all.

I'm nearly to the point of completing the transition from WO 5.3, XCode, deprecated Java, etc. to WO 5.4.3, WOLips,  (and improvements) etc. for

"pubescent  TYF"  (<Guest Login> demo now active):
<http://www.track-your-finances.com>

The Guest button will yield more than it currently does in terms of sample data, and eventually the banks will adopt standards so that their statements will be more available online.
Currently I download their OFX level 1 statement and read it with my own XML parser, because it's non-compliant, I've tested it for a couple of big banks.
The banks also use old formats so they can flow to Microsoft and Intuit.

Next up: 
WebServices (in particular, reading of non-realtime stock prices, 15 minutes good enough).

Thanks again,
Baiss

On Jan 6, 2010, at 4:53 PM, Lon Varscsak wrote:

I do:

return new NSData(ChartUtilities.encodeAsPNG(chart.createBufferedImage(width, height)));

-Lon

On Wed, Jan 6, 2010 at 4:54 PM, Baiss Eric Magnusson <email@hidden> wrote:
In the below method how do I get the return stuff from JFreeChart to be put into a NSData which is bound to the <data> binding of a WOImage, which is the way I've see to use for the Line Chart I'm creating.  It seems that JFreeChart uses .png by default, which is good n'est-ce pas?

  public NSData lineChartJFree()  {
    XYSeriesCollection dataSet = createDataset();
    JFreeChart lineChart = createChart( dataSet );
     return new NSData(ChartUtilities.encodeAsPNG(chart.createBufferedImage(width, height)));;
    }


Baiss -

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

----
Baiss Eric Magnusson
http://www.CascadeWebDesign.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >from JFreeChart (BufferedImage_) to NSData_ (From: Baiss Eric Magnusson <email@hidden>)
 >Re: from JFreeChart (BufferedImage_) to NSData_ (From: Lon Varscsak <email@hidden>)

  • Prev by Date: Re: Objects don't get initialized sometimes
  • Next by Date: How to get the failing EO when a unique constraint violation occurs?
  • Previous by thread: Re: from JFreeChart (BufferedImage_) to NSData_
  • Next by thread: Re: from JFreeChart (BufferedImage_) to NSData_
  • Index(es):
    • Date
    • Thread