![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Duplicated Axes when having multiple Ternary series | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | marc |
| Priority: | --- | ||
| Version: | 27.190530 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | https://www.steema.com/support/viewtopic.php?f=3&t=17148 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
|
Description
yeray alonso
2019-08-30 09:54:47 EDT
A workaround is to hide the VertexTitle and Axes once the first Ternary Series has been drawn using BeforeDrawValues event.
Ie:
uses TeeTernary;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
for i:=0 to 2 do
with TTernarySeries(Chart1.AddSeries(TTernarySeries)) do
begin
FillSampleValues;
if i>0 then
begin
VertexTitle.Hide;
BeforeDrawValues:=BeforeDrawSecond;
end
else
BeforeDrawValues:=BeforeDrawFirst;
end;
end;
procedure TTernarySeriesForm.BeforeDrawFirst(Sender: TObject);
begin
Chart1.Axes.Visible:=True;
end;
procedure TTernarySeriesForm.BeforeDrawSecond(Sender: TObject);
begin
Chart1.Axes.Hide;
end;
|