Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
joelajean
Posts: 132
Registered: ‎01-25-2010
My Device: Z30, Z10, Q10, Dev Alpha B & Bold 9900

Charting - Best Approach / Suggestions

Hi,

 

I'm looking @ implementing a simple line chart into my cascade app...

https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart

Since google offers an extensive charting API, I was thinking that I could easily use the google charting api's but before moving ahead, I figured I would check with the  dev community for feedback.

From cascade, are other alternative to generate such a chart ? Is there a sample out there which demos charting capablities ?

 

Thanks

Please use plain text.
Regular Contributor
AndroidTwister
Posts: 61
Registered: ‎03-09-2013
My Device: Z10, Q10 (partners really), PlayBook

Re: Charting - Best Approach / Suggestions

Similar thread running here...

 

http://supportforums.blackberry.com/t5/Cascades-Development/Draw-line-in-ImageView/td-p/2228327

 

I know you put yours in first. :smileyhappy:

=====================================
Recent BlackBerry 10 convert (from guess what)
Please use plain text.
Regular Contributor
Q-T
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user

Re: Charting - Best Approach / Suggestions

I wanted the ability to do basic drawing to, just 2D stuff. It seems there is no way to do it in Cascade as none of the classes expose the paint() method.  I thought of doing this in OpenGLES but then became aware that OpenGLES can't do text.  Perhaps one can overlay text in a cascade widget, but that seemd like a lot of work.  The only other viable solution I came across was to use a HTML widget. 

 

I just gave up for now, and hope the Cascades people provide a 2D drawing solution in the near future.

 

 

Please use plain text.
Developer
joelajean
Posts: 132
Registered: ‎01-25-2010
My Device: Z30, Z10, Q10, Dev Alpha B & Bold 9900

Re: Charting - Best Approach / Suggestions

Hummm... ok so native charting is probably not an easy solution, any 3rd party recommendations ??? What about google charting API's !!! Anybody has played with it via Cascade ?

Please use plain text.
Developer
oniongarlic
Posts: 72
Registered: ‎10-19-2012
My Device: Playbook, BB10DevAlphaB

Re: Charting - Best Approach / Suggestions

I've been thinking and searching about the same thing and stumbled on this: http://www.workslikeclockwork.com/index.php/components/qt-plotting-widget/ as-is it obviously won't work with Cascades as it is a Qt widget. But I would think that you could rip out the chart drawing and draw a suitable image that you then can display in Cascades.
Please use plain text.