![]() | 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: | HTML format (ttfHtml) in the left axis title isn't correctly formatted | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Canvas | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | gromov.vsevolod, jpmignot |
| Priority: | --- | ||
| Version: | 140512 | ||
| Target Milestone: | v2017.20 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=17&t=14989 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Works fine since v2015.14 |
In the following example, the marks are being drawn correctly using the html format, but not the axis title: var Series1: TBarSeries; procedure TForm1.FormCreate(Sender: TObject); begin Chart1.Axes.Left.Title.TextFormat:= ttfHtml; Chart1.Axes.Left.Title.Text := 'Test Title with <b>HTML</b> formatting'; Chart1.Axes.Left.Labels:=false; Chart1.Axes.Bottom.Labels:=false; Series1:=Chart1.AddSeries(TBarSeries) as TBarSeries; Series1.FillSampleValues(); Series1.OnGetMarkText:=Series1GetMarkText; Series1.Marks.TextFormat:=ttfHtml; end; procedure TForm1.Series1GetMarkText(Sender: TChartSeries; ValueIndex: Integer; var MarkText: String); begin if Series1.Marks.TextFormat = ttfHtml then begin if ValueIndex = 1 then MarkText := '<b>'+MarkText+'</b><br>' + '<FONT size=10>HTML Format<br>' + '<b><FONT color=RED size=8>Custom</b>' else MarkText := '<b>'+MarkText+'</b><br>' + '<FONT color=Blue size=8>HTML Format<br>' + '<FONT color=Green size=9>Custom'; end; end;