![]() | 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: | Axis labels not drawn when the series hasn't labels and axis LabelStyle is talText | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Axis | Assignee: | yeray alonso <yeray> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | yeray |
| Priority: | --- | ||
| Version: | 36.220929 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | https://www.steema.com/support/viewtopic.php?f=3&t=17773&p=79004#p79003 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
After the fix for #1899, no labels are drawn when having a series without labels and the bottom axis LabelStyle set to talText. Ie: uses Series, TeeConst; procedure TForm1.FormCreate(Sender: TObject); begin Caption:=TeeMsg_Version; with Chart1 do begin Color:=clWhite; Gradient.Visible:=False; Walls.Back.Color:=clWhite; Walls.Back.Gradient.Visible:=False; Legend.Hide; View3D:=False; with AddSeries(TBarSeries) do begin Marks.Hide; FillSampleValues(48); end; Axes.Bottom.LabelStyle:=talText; OnGetAxisLabel:=ChartGetAxisLabel; end; end; procedure TForm1.ChartGetAxisLabel(Sender: TChartAxis; Series: TChartSeries; ValueIndex: Integer; var LabelText: string); begin if Sender.Horizontal and (ValueIndex<>-1) then LabelText:='Idx '+IntToStr(ValueIndex); end;