Search found 9 matches

by Dynafact
Fri Mar 04, 2011 3:07 pm
Forum: VCL
Topic: Programmatically move to any date in the graph
Replies: 5
Views: 4009

Re: Programmatically move to any date in the graph

Hi Yeray, I understand what you are saying. I was focused on dates rather than what the graph is really doing. I have implemented your suggestion in my code making adjustments for time scales (days, weeks, months etc.) and it works that way we want it to. Thank you! The one part of your code I do no...
by Dynafact
Thu Mar 03, 2011 9:17 pm
Forum: VCL
Topic: Programmatically move to any date in the graph
Replies: 5
Views: 4009

Re: Programmatically move to any date in the graph

Thanks Yeray.

I was hoping for a simple function along the line of

Chart1.Axes.Bottom.ShowDate(TDateTime)

I will take your suggested code and work with it. I think it should do what I want.

Dave
by Dynafact
Wed Mar 02, 2011 12:36 am
Forum: VCL
Topic: Programmatically move to any date in the graph
Replies: 5
Views: 4009

Programmatically move to any date in the graph

Hello, I am using TeeChart Pro 2011 and Delphi XE. I have a bar chart that switches between dtOneDay, dtOneWeek, and dtOneMonth and Axes.Bottom.ExactDateTime is set to true. I want to enable the user to move programmatically to any date within the graph. For example, if the graph start date is March...
by Dynafact
Tue Feb 08, 2011 6:58 pm
Forum: VCL
Topic: TeeChart Pro 2011 bar width too thin
Replies: 9
Views: 6514

Re: TeeChart Pro 2011 bar width too thin

That's it!

Thanks,

Dave
by Dynafact
Mon Feb 07, 2011 7:44 pm
Forum: VCL
Topic: TeeChart Pro 2011 bar width too thin
Replies: 9
Views: 6514

Re: TeeChart Pro 2011 bar width too thin

Also, as per your question the scroll bar is attached to the graph so that the user can scroll through the dates. It is not attached in the example for simplicity purposes.
by Dynafact
Mon Feb 07, 2011 4:04 pm
Forum: VCL
Topic: TeeChart Pro 2011 bar width too thin
Replies: 9
Views: 6514

Re: TeeChart Pro 2011 bar width too thin

Hello, After some more experimenting, I believe that the problem has to do with loading of the data using AddXY. In your example, change the loop where you load the series bars to be 364 days as in: for i:=0 to 364 do begin if rdoGraph.ItemIndex=0 then begin x := IncDay(GStartDate, i); end else begi...
by Dynafact
Wed Feb 02, 2011 3:54 pm
Forum: VCL
Topic: TeeChart Pro 2011 bar width too thin
Replies: 9
Views: 6514

Re: TeeChart Pro 2011 bar width too thin

Hello Yeray, I took a few days off and went skiing – too nice to work – so I am late getting back to you. In the example I posted, I am using the AutoBarSize:=true. Also, one of the series is a ribbon, not a bar graph. Your test does work, but in your example you are not changing the page scale with...
by Dynafact
Thu Jan 27, 2011 3:50 pm
Forum: VCL
Topic: TeeChart Pro 2011 bar width too thin
Replies: 9
Views: 6514

Re: TeeChart Pro 2011 bar width too thin

Hello Yeray, Here is the complete code to get the thin bars when displaying in Weeks. Click on the radio button to select the scale and then click on the Graph button. Days works fine, but Weeks displays thin bars: unit TestBarGraph; interface uses Windows, Messages, SysUtils, Variants, Classes, Gra...
by Dynafact
Wed Jan 26, 2011 7:19 pm
Forum: VCL
Topic: TeeChart Pro 2011 bar width too thin
Replies: 9
Views: 6514

TeeChart Pro 2011 bar width too thin

Hello, I upgraded from version 8 to TeeChart Pro 2011 when I moved from Delphi 2006 to 2011 (XE). I have a chart with 4 series -- 3 bar charts and one line. Everything was working correctly in version 8 and Delphi 2006, but now I am getting very think bars when graphing week and month time periods. ...