|
|
Home » Developing U++ » UppHub » GraphDraw/GraphCtrl
GraphDraw/GraphCtrl [message #53791] |
Fri, 01 May 2020 12:20 |
Didier
Messages: 683 Registered: November 2008 Location: France
|
Contributor |
|
|
Pradip wrote on Fri, 01 May 2020 12:02Hello Didier,
Thanks for replying! Yes exactly, I need date/time on x-axis. I'm trying to make something like this:
I already have a tree and an array (synced) showing the activities, I will need to sync them with the graph. Also zooming is important, it should be able to zoom in to days (S, M, T, W...) as in the image, and while zooming out it could show weeks, then months, quarter and finally year.
I won't really need layout designer, in any case I'll have to manipulate it with code.
Thanks a lot, I'll try it once you upload it
Well you can definitly display the days/weeks/wonths as you wan't but you will have to :
- make you're own GridAxisDraw child class with own grid style drawing (or maybe I could push further into Chameleon capacities)
- Add time custom display format method (The exact same format is not available out of the box)
For all the zoom/scroll, verything you need is available.
There is also a Linking feature that allows to sync axis between graphs (when one zooms or scrolls, the other ones follow) : maybe you could use this to link to you're grid to the graph Y axis
|
|
|
|
|
Re: GraphDraw/GraphCtrl [message #53796 is a reply to message #53795] |
Fri, 01 May 2020 13:37 |
Didier
Messages: 683 Registered: November 2008 Location: France
|
Contributor |
|
|
Here is the sencond part.
I packaged my demo app GraphCtrl_demo_GUI (which doesn't look how it should since Layout Designer properties are no more taken into account (for the moment))
Take a look at : GraphCtrl_Demo/CustomDataSource_WF.h
This is the cutom data class used to display the bars you saw on my screenshot
Everything compiles fine with lattest Upp/trunk on windows and linux
[Updated on: Sun, 03 May 2020 16:09] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: GraphDraw/GraphCtrl [message #53876 is a reply to message #53838] |
Sun, 10 May 2020 14:53 |
Didier
Messages: 683 Registered: November 2008 Location: France
|
Contributor |
|
|
Hello Pradip,
I made some refactoring, simplifications, cleaning, namespace/include management, one two bug corrections and a compilation issue with latest Upp svn version
Please use this last version
EDIT : removed attachement (see further)
[Updated on: Mon, 18 May 2020 00:01] Report message to a moderator
|
|
|
Re: GraphDraw/GraphCtrl [message #53895 is a reply to message #53876] |
Wed, 13 May 2020 17:42 |
|
Pradip
Messages: 109 Registered: February 2019 Location: India
|
Experienced Member |
|
|
Hello Didier,
I've downloaded it. I'm using MSVS17 compiler. GanttCtrl_Test compiles fine (except conversion and possible loss of data warnings) and I'm getting the same graph.
However, GraphCtrl_Demo is giving some errors, perhaps all in Chameleon, see the image.
Though I could do without any Chameleon capability for now, to understand the working of GraphCtrl, running the demo would be useful.
I'll study more (please bear with my limited coding knowledge) and revert.
Regards,
Pradip
[Updated on: Thu, 14 May 2020 06:37] Report message to a moderator
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 04:32:11 CEST 2024
Total time taken to generate the page: 0.03274 seconds
|
|
|