Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - [RESOLVED] Gantt Chart Displaying Custom Dates
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[RESOLVED] Gantt Chart Displaying Custom Dates

 Post Reply Post Reply
Author
Message
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Topic: [RESOLVED] Gantt Chart Displaying Custom Dates
    Posted: 10 February 2011 at 11:31am
Hi,

I have just updated to the new version v15.0.1 and I have been playing around with the Gantt Chart. Got to say, I like all these new charts!!!

I noticed using the following code the chart displays dates, however the year starts at 1900.

    Series.ValueScaleType = xtpChartScaleDateTime


Therefore using the Sample code "Chart Browser" provided, I can get dates for the sample by introducing the following code:


Private Sub CreateDatePoints(Diagram As ChartDiagram2D, dtMinDate As Date, dtMaxDate As Date)
    Dim dtDate As Date
    Dim i As Integer, x As Integer
   
    dtDate = dtMinDate
    Diagram.AxisY.CustomLabels.Add Format$(dtDate, "mmm yy"), 0
   
    x = DateDiff("m", dtMinDate, dtMaxDate) + 1
    For i = 1 To x
        dtDate = Format$("01/" & i & "/" & Year(dtDate), "dd/mm/yyyy")
        dtDate = DateAdd("m", 1, dtDate)
        Diagram.AxisY.CustomLabels.Add Format$(dtDate, "mmm yy"), DateDiff("d", dtMinDate, dtDate)
    Next
End Sub


The code above correctly identifies the points where the dates should be shown, therefore 1 point equals 1 Day.

However I noticed an issue when I allow the ability to scroll.


Dates displayed using Diagram.AxisY.CustomLabels.Add


Dates outwith the scrollable area i.e. Jan, Feb... etc are visible when scrolled!

Note: Using Series.ValueScaleType = xtpChartScaleDateTime without my additonal Procedure the titles are hidden, they only stay visible when using the CustomLabels.
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2011 at 4:49am

Hi Alexander,

I reported this in previous version (Issue 14) maybe I didn't explain it like you did... With your explanation it should be enough, right?

Thanks
  
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2011 at 3:21am
Hi Aaron,

I have opened a support ticket on this issue and pointed them to this post. I am awaiting feedback on it from Codejock, but I think the above screenshots should be clear on what the issue is. I only found this as I was trying out the Gantt Chart as a replacement until the TrackControl allows for CustomLabels, which is another Support ticket of mine Wink
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2011 at 2:39am
Thanks, we will review it.
btw TrackControl  in 15.0.1 supports Custom labels now.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2011 at 5:20am
Originally posted by oleg oleg wrote:

Thanks, we will review it.
btw TrackControl  in 15.0.1 supports Custom labels now.
An excellent implementation.
Simon HB9DRV
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2011 at 8:27am
Hi,

Just to keep you all up to date on this issue, it will be resolved with the release of v15.0.2.
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.