A week ago or so, there was a similar thread.
Someone posted a link to qt-apps web site to a chart lib.
You might want to have a look there first.
A week ago or so, there was a similar thread.
Someone posted a link to qt-apps web site to a chart lib.
You might want to have a look there first.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Hi Everyone!
Very nice idea, but my class changed and became not universal.
histogram now looks : http://img30.imageshack.us/img30/8013/exmpl.jpg
Can also use my source code, but everything is based on the QPainter. I have some time now![]()
Hi,
At first glance, it seems that the 'API' is just a text string filled with different kinds of information. Seems not right to use this as a method to interface with an object in C++.
Also, I would just create chart objects that paint on a painter object. Then you can paint the chart on anything. You can make a convenience class derived from QGraphicsItem to make it easier to put a chart on a QGraphicsView. And you can also make a widget derived class to put it on a dialog.
Regards,
Marc
Right, need to think about how to use the concept of Google Charts in QT.
how it would look like?
The same Parameter? same Graphics? hm.
is this project dead before born??
I do not know, just I had something on qt-apps : http://qt-apps.org/content/show.php/...content=132560
I don't understand how the result will look. Because java and web version can be represented in this form : https://chart.googleapis.com/chart?c...hl=Hello|World
Qt version not.
Hey, any body live?
dridk (7th February 2011)
No we are not !
Sorry, I havn't enable email notification.. So I didn't see any update! But Now I am here!
First :
I have created a repository on gitorious : http://gitorious.org/qtcharts. Please Join the qtcharts team !!
second :
API architecture :
I propose to create 3 sub project :
- 1 : QPainter Layer : draw all sharts from a QPainter
- 2 : QGraphicsItem : Create each sharts item using QPainter layer
- 3 : QChartData : Provide data to be load
class tree example :
QChartPainter
-QLineChartPainter
-QPieChartPainter
QGraphicsChartItem
-QGraphicsLineChartItem
-QGraphicsPieChartItem
Discussion
We have to speak together about qtcharts! So, please join #qtcharts on freenode!
If there is nobody, please wait !
So, now, I m waiting for your suggestion about the API architecture ? What about animation ? Interaction ? QML ?
Can't find any qtcharts on freenode. Anyway :
Data :
- what data can you handle : integer / double values, labels, min/max indicators, complex values, quaternions, ...
- do you use a model-view approach or not ?
- will you have only 1 data series, or more (multiple lines in your graph)
Display :
- are you going to make different display classes for the qpainter and qgraphicsview ? Will be difficult to make sure they look the same. QGraphicsview is not required for just showing graphs, but is sure is handy for interactive graphs (selecting data points, pie slices, ...)
- are you going to stick to line charts and pie charts ? or also bar graphs, coloured maps, ...
Classes :
- I would make a 'QtCharts' object that can hold any kind of data, for 1 or more data 'lines', and also additional data like labels, min/max values, .... This object could then be painted by the painter classes, be it either pie or line.
Regards,
Marc
Bookmarks