Drawing a pie chart on a Form
Hi everyone,
I found a tutorial online on how to draw a pie chart in Java ME: [url]http://www.java2s.com/Tutorial/Java/0430__J2ME/Piechart.htm[/url]
The problem is that I want to add a pie chart to a Form (so I can add text below the chart explaining what it means etc.). The implementation in this tutorial makes the pie chart its own Displayable type so I can't add it to a Form.
Without using 3rd party libraries, is there a solution to this? I'm using the LCDUI API for my user interface.
Thanks in advance!
Re: Drawing a pie chart on a Form
Not really an expert on the subject matter, anyway, I suppose you could add custom item to the form.
At least One example doing so could be found from our wiki: [url]http://www.developer.nokia.com/Community/Wiki/Displaying_Nokia_Maps_in_a_Form_in_Java_ME[/url]
Re: Drawing a pie chart on a Form
Thanks symbianyucca, this works great. I followed a simpler example I found here: [url]http://www.java2s.com/Tutorial/Java/0430__J2ME/extendsCustomItem.htm[/url]
Re: Drawing a pie chart on a Form
Good to hear that you got it working, and if you have time, you could always make a small, quick & simple Wiki page, so anybody else needing it could utilize it next time.