allie910
asked on
show points in Chart
Hi again =p
anyone knows how to mark the points in the chart (I dont want mark that show the value.... I only want for example put dot or * on each point) because the mark that show the value will make my chart cramp
thank yahhh ^^
anyone knows how to mark the points in the chart (I dont want mark that show the value.... I only want for example put dot or * on each point) because the mark that show the value will make my chart cramp
thank yahhh ^^
procedure Form1.DbcharAfterDraw(Send er: TObject);
begin
var
t,x,y:Integer ;
begin
with dbc_waterchar,Canvas do
begin
Canvas.Pen.Color:=clYellow ;
Canvas.Pen.Width := 1;
for t := 0 to SeriesList[0].Count - 1 do
begin
x:=SeriesList[0].CalcXPos( t);
y:=SeriesList[0].CalcYPos( t);
Ellipse(x-3,y-3,x+3,y+3);
end;
end;
end;
begin
var
t,x,y:Integer ;
begin
with dbc_waterchar,Canvas do
begin
Canvas.Pen.Color:=clYellow
Canvas.Pen.Width := 1;
for t := 0 to SeriesList[0].Count - 1 do
begin
x:=SeriesList[0].CalcXPos(
y:=SeriesList[0].CalcYPos(
Ellipse(x-3,y-3,x+3,y+3);
end;
end;
end;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Odissey1,
I tried to try your last suggestion... (directly from the TChart--> the Dblclick TChart....)
I Can't find the 'point' option..... instead I found mark... and in the 'Style' option I can't find anything like triangle, rectangular or dot.... the available style there are value, percent, label, labe and percent, label and value.... and so on...
and my delphi doesn't recognize Series1.OnGetPointerStyle the closest thing that I can found maybe OnGetMarkText...
can you help..? =) thankkksssss ^^
I tried to try your last suggestion... (directly from the TChart--> the Dblclick TChart....)
I Can't find the 'point' option..... instead I found mark... and in the 'Style' option I can't find anything like triangle, rectangular or dot.... the available style there are value, percent, label, labe and percent, label and value.... and so on...
and my delphi doesn't recognize Series1.OnGetPointerStyle the closest thing that I can found maybe OnGetMarkText...
can you help..? =) thankkksssss ^^
To pipinana2002:
When you add Series, choose LineSeries with Pointers (squares). Can you see 'Points' tab in 'Series' (just before 'Marks')? If no - then I suppose you have TeeChart Standard v.4 (that comes preinstalled in Delphi6/7). I am not sure what is in it, since my TC Pro completely removed TC Standard from HDD.
If charts is a substantial part of your project you can install TC Trial version
http://www.steema.com/download/TeeChart_v6/index.htm
It's free, does everything, time-unlimited and works while IDE). In many cases this is more then enough. At least try to look at the demo:
http://www.teechart.net/files/vcl/public/TeeChartPro6/tee6new.zip
with a lot of examples and corresponding source code.
regards,
odissey1
When you add Series, choose LineSeries with Pointers (squares). Can you see 'Points' tab in 'Series' (just before 'Marks')? If no - then I suppose you have TeeChart Standard v.4 (that comes preinstalled in Delphi6/7). I am not sure what is in it, since my TC Pro completely removed TC Standard from HDD.
If charts is a substantial part of your project you can install TC Trial version
http://www.steema.com/download/TeeChart_v6/index.htm
It's free, does everything, time-unlimited and works while IDE). In many cases this is more then enough. At least try to look at the demo:
http://www.teechart.net/files/vcl/public/TeeChartPro6/tee6new.zip
with a lot of examples and corresponding source code.
regards,
odissey1
Open ChartEditor (DblClick TChart). In ChartEditor -> Series-> Point -> Visible
Reards,
odissey1