Search found 8833 matches

by Yeray
Fri Mar 20, 2020 9:50 am
Forum: VCL
Topic: How to display Greek symbols on axis labels?
Replies: 9
Views: 2280

Re: How to display Greek symbols on axis labels?

Andrew,
Geocentrix wrote:
Mon Mar 16, 2020 12:43 pm
  • However, there should be lest space between the end of the regular text and the beginning of the sub/superscript
In general we need to calculate the text size with a margin.
This is related to this old issue.
by Yeray
Wed Mar 18, 2020 3:38 pm
Forum: VCL / FMX
Topic: Keeping the Legend Symbols the same size
Replies: 4
Views: 1988

Re: Keeping the Legend Symbols the same size

Hello, An alternative would be to hide the pie series from the legend and use a point series for each item you want to be in the legend. Ie: var i: Integer; begin for i:=0 to Series1.Count-1 do with TPointSeries(Chart1.AddSeries(TPointSeries)) do begin Pointer.Pen.Visible:=False; Pointer.Size:=6; Ti...
by Yeray
Wed Mar 18, 2020 2:54 pm
Forum: VCL
Topic: PieChart with words of different size
Replies: 5
Views: 2168

Re: PieChart with words of different size

Hello,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=2299
by Yeray
Mon Mar 16, 2020 6:11 pm
Forum: VCL
Topic: How to display Greek symbols on axis labels?
Replies: 9
Views: 2280

Re: How to display Greek symbols on axis labels?

Hello,

I'm not sure because I've just seen this is breaking other html tags such as <big> and <small>
So we should revise it.
by Yeray
Mon Mar 16, 2020 11:01 am
Forum: VCL
Topic: How to display Greek symbols on axis labels?
Replies: 9
Views: 2280

Re: How to display Greek symbols on axis labels?

Hello,

This is an issue already in the public tracker (#1907) I'm currently revising.
by Yeray
Fri Mar 13, 2020 11:41 am
Forum: VCL
Topic: Labels for horizontal series
Replies: 4
Views: 2287

Re: Labels for horizontal series

Hello,

You missed this part in your code:

Code: Select all

  Chart1.Axes.Left.LabelsFormat.TextAlignment:=taRightJustify;
  Chart1.Axes.Left.LabelsFormat.TextFormat:=ttfHtml;
by Yeray
Fri Mar 13, 2020 8:08 am
Forum: VCL
Topic: How to display Greek symbols on axis labels?
Replies: 9
Views: 2280

Re: How to display Greek symbols on axis labels?

Hello, You could use ttfHtml font format as follows: procedure TForm1.FormCreate(Sender: TObject); begin Chart1.Title.Font.Size:=18; Chart1.Title.Font.Name:='Arial Unicode MS'; Chart1.Title.TextFormat:=ttfHtml; Chart1.Title.Text.Text:='Theta: ' + WideChar($0398) + '<sub>subscript</sub>' + '<sup>supe...
by Yeray
Thu Mar 12, 2020 8:01 am
Forum: VCL
Topic: How to display Greek symbols on axis labels?
Replies: 9
Views: 2280

Re: How to display Greek symbols on axis labels?

Hello, I'm not sure if you want to draw it in the axis title or in all the axis labels. Anyway, the base of the code would be this: procedure TForm1.Chart1AfterDraw(Sender: TObject); {$IFNDEF CLX} var UnicodeString : WideString; {$ENDIF} begin inherited; {$IFNDEF CLX} SetLength(UnicodeString, 1); Un...
by Yeray
Wed Mar 11, 2020 12:09 pm
Forum: VCL
Topic: How to edit TChartPreview form?
Replies: 6
Views: 1657

Re: How to edit TChartPreview form?

Hello,

Try to open TeePreviewPanel unit first.
by Yeray
Fri Mar 06, 2020 11:21 am
Forum: VCL
Topic: Labels for horizontal series
Replies: 4
Views: 2287

Re: Labels for horizontal series

Hello, Is this what you are trying to achieve? Project1_2020-03-06_11-57-48.png This is the code I used to draw the above: constructor TForm1.Create(aOwner: TComponent); var lValue: currency; I: Integer; lCaption: string; begin inherited; for I := 1 to 5 do begin lValue := Trunc(Random(1000)); lCapt...
by Yeray
Fri Mar 06, 2020 8:01 am
Forum: VCL
Topic: synchronization of two opposite axis
Replies: 7
Views: 2060

Re: synchronization of two opposite axis

Hello,

If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.
by Yeray
Fri Mar 06, 2020 8:00 am
Forum: VCL
Topic: PieChart with words of different size
Replies: 5
Views: 2168

Re: PieChart with words of different size

Hello,

Even if you can calculate the size of each word, the dificult part, as far as I see, would be to calculate the position of each word so a group of words draw something similar to a given shape, the pie slice.
by Yeray
Thu Mar 05, 2020 12:50 pm
Forum: VCL
Topic: synchronization of two opposite axis
Replies: 7
Views: 2060

Re: synchronization of two opposite axis

Hello, I'm using an array to store the values to be displayed on the top but using a datasource should also work: var topValues: array of double = [1250.30, 1360.60, 1610.14]; procedure TForm1.PopulateSeries(ACount: Integer); var i: Integer; begin FormatSettings.DecimalSeparator:=','; FormatSettings...
by Yeray
Thu Mar 05, 2020 8:41 am
Forum: VCL
Topic: synchronization of two opposite axis
Replies: 7
Views: 2060

Re: synchronization of two opposite axis

Hello, We'd need a simple example project we can run as-is to reproduce the problem here because I see no problems trying to achieve what I'm understanding you described: Project1_2020-03-05_09-40-41.png Project1_2020-03-05_09-40-45.png uses Series; procedure TForm1.PopulateSeries(ACount: Integer); ...
by Yeray
Thu Mar 05, 2020 7:24 am
Forum: VCL
Topic: PieChart with words of different size
Replies: 5
Views: 2168

Re: PieChart with words of different size

Hello,

I'm afraid TeeChart doesn't have this kind of chart/series. There's the Pie series and the Tag/Cloud series, but I don't see how to mix them.