Problem with point and bubble series in version 7
Posted: Mon Jan 24, 2005 11:13 pm
I have upgraded from vesion 5 to 7 using delphi 6. I am missing X axis labels and ticks in my main application of most charts which using bubble or point series which are created at run time. I have reproduced the effect in a tiny 1 chart application
TForm1 = class(TForm)
Chart1: TChart;
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
uses
Series;
procedure TForm1.FormShow(Sender: TObject);
var
Series: TpointSeries;
begin
Series:=TPointSeries.Create(Self);
with Series do
begin
AddXY(0.1,34,'Test1',clteeColor);
AddXY(0.23,44,'Test2',clteeColor);
AddXY(0.41,24,'Test3',clteeColor);
AddXY(0.7,39,'Test4',clteeColor);
AddXY(0.91,24,'Test5',clteeColor);
ParentChart:=Chart1;
GetHorizAxis.LabelStyle:= talValue;
end;
This used to work in version Teechart v5.
If I dont use Labelstyle= the x axis labels are shown as "Test1" etc. What am I doing wrong this should be a simple XY graph. The points come out right, the Y axis is correct but the X axis has no labels, ticks, or grid lines.
TForm1 = class(TForm)
Chart1: TChart;
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
uses
Series;
procedure TForm1.FormShow(Sender: TObject);
var
Series: TpointSeries;
begin
Series:=TPointSeries.Create(Self);
with Series do
begin
AddXY(0.1,34,'Test1',clteeColor);
AddXY(0.23,44,'Test2',clteeColor);
AddXY(0.41,24,'Test3',clteeColor);
AddXY(0.7,39,'Test4',clteeColor);
AddXY(0.91,24,'Test5',clteeColor);
ParentChart:=Chart1;
GetHorizAxis.LabelStyle:= talValue;
end;
This used to work in version Teechart v5.
If I dont use Labelstyle= the x axis labels are shown as "Test1" etc. What am I doing wrong this should be a simple XY graph. The points come out right, the Y axis is correct but the X axis has no labels, ticks, or grid lines.