Print Page | Close Window

[RESOLVED] Gantt Chart Displaying Custom Dates

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17862
Printed Date: 27 November 2024 at 5:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [RESOLVED] Gantt Chart Displaying Custom Dates
Posted By: Xander75
Subject: [RESOLVED] Gantt Chart Displaying Custom Dates
Date 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)



Replies:
Posted By: Aaron
Date 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....


Posted By: Xander75
Date 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)


Posted By: Oleg
Date 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


Posted By: Simon HB9DRV
Date 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


Posted By: Xander75
Date 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)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net