BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TeeChart

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
John
Guest





PostPosted: Tue Nov 30, 2004 1:41 am    Post subject: TeeChart Reply with quote




Hi all,

I'm currently modifying a program using delphi 6 TeeChart and met up with some problems.

1)Under Edit chart/axis/scales, is it possible to fix a permanent number of increments for the Y-axis regardless of the values of the series being drawn? Or otherwise is it possible to change the desired increment during run time?

2)Is it possible to display the value at the particular point on the series when we move the cursor over it? Sort of like a showhint.

3)Lastly, I need to modify the program such that I have to label the various series titles all at the same time. Currently, only one title can be displayed at a time using the code shown below:

procedure TFormDisplayGraph.Chart1ClickSeries(Sender: TCustomChart; Series: TChartSeries; ValueIndex: Integer; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
LabelSeriesTitle.Top := y-10;
LabelSeriesTitle.Left:= x;
LabelSeriesTitle.Caption:= ' '+ Series.Title + ' ';
LabelSeriesTitle.Visible:= true;
end;

Is there a way to display all at the same time? Or should I display the titles as the code is drawing the series? the code is shown below:


//show the series and assign the title if TableGraph.FindField(ListSeries[k])<>nil then
begin

Chart1.Series[i*ListSeries.Count+k].Active := True;

if ListMulti[k] = '1' then Chart1.Series[i*ListSeries.Count+k].Title := ListSeries[k] + ' ' +ListYear[i]
Else Chart1.Series[i*ListSeries.Count+k].Title := ListSeries[k]+'('+ ListMulti[k] +') ' + ListYear[i];

if QueryDraw.fieldByName(ListSeries[k]).isNull=true then Chart1.Series[i*ListSeries.Count+k].AddY(0, QueryDraw.FieldByName('DayType').value, clNone)
else Chart1.Series[i*ListSeries.Count+k].AddY(QueryDraw.FieldByName(ListSeries[k]).value * StrToFloat(ListMulti[k]), QueryDraw.FieldByName('DayType').value);

QueryDraw.Next;
end;
end;


Many thanks in advance.

John
Back to top
Peter Below (TeamB)
Guest





PostPosted: Tue Nov 30, 2004 7:13 pm    Post subject: Re: TeeChart Reply with quote



In article <41abddec$1 (AT) newsgroups (DOT) borland.com>, John wrote:
Quote:
I'm currently modifying a program using delphi 6 TeeChart
and met up with some problems.

Questions related to TChart are best asked in the b.p.delphi.reporting-charting
group or on Teemachs own support groups:

TeeChart support groups
http://www.teechart.net/support/modules.php?name=Forums


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.