Search found 8827 matches

by Yeray
Fri Mar 13, 2020 8:08 am
Forum: VCL
Topic: How to display Greek symbols on axis labels?
Replies: 9
Views: 2216

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: 2216

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: 1589

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: 2233

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: 2003

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: 2098

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: 2003

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: 2003

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: 2098

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.
by Yeray
Mon Mar 02, 2020 9:45 am
Forum: VCL
Topic: Labelling data points
Replies: 2
Views: 1572

Re: Labelling data points

Hello Errol, I would try to use custom labels. Here a simple example: const XVal: array of double = [0,1,2,3,4,5,6,7,8,9]; YVal: array of double = [5,6,7,5,3,4,5,6,7,8]; Labl: array of double = [18,-15,-12,12,15,13,13,11,0,14]; XOff: array of double = [0,0,0,20,-20,0,0,0,0,0]; YOff: array of double ...
by Yeray
Thu Jan 23, 2020 8:12 am
Forum: Activex
Topic: TeeChart Pro v2019 (64bit)
Replies: 3
Views: 2131

Re: TeeChart Pro v2019 (64bit)

Hello Shia,

Sorry for the delayed reply here.
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
by Yeray
Thu Jan 23, 2020 8:10 am
Forum: VCL
Topic: A class named 'TPenDialog' already exists
Replies: 1
Views: 1703

Re: A class named 'TPenDialog' already exists

Hello,

I'm afraid I don't remember this error being reported previously.
Could you please arrange a simple example project we can run as-is to reproduce the problem here?

Thanks in advance.
by Yeray
Mon Jan 20, 2020 11:33 am
Forum: VCL
Topic: huge memory overhead with TSeriesMarks
Replies: 4
Views: 2645

Re: huge memory overhead with TSeriesMarks

Hello Friedrich, When you want the same format in all the marks in a series and you are fine with the automatic positioning, TeeChart doesn't save any list of marks or positions, and you can still avoid drawing those you don't want using OnGetMarkText event. However, if you want to set different for...
by Yeray
Fri Jan 17, 2020 3:07 pm
Forum: VCL
Topic: huge memory overhead with TSeriesMarks
Replies: 4
Views: 2645

Re: huge memory overhead with TSeriesMarks

Hello, Sorry for the delay here. The problem is that, by setting Item[i].Text.Text you are creating 65.000 TMarksItem objects per series which take memory. Since you are actually hiding the majority of them, it could make sense to use a custom structure which only creates the MarkItem s you need. Ie...
by Yeray
Thu Jan 16, 2020 12:32 pm
Forum: VCL
Topic: Hide part of a lineSerie. (c++ builder)
Replies: 3
Views: 2118

Re: Hide part of a lineSerie. (c++ builder)

Hello,

It would be easier to add a null point in the line segment you want to hide and let TeeChart do it or you

Code: Select all

void TTPCustomSeries::AddPoint(TDateTime pDate, float Km)
{
	 this->SetColorEachPoint(true);
	 if (this->AddXY(pDate, Km, "", clBlue)+1 == 5)
	 {
		 this->AddNullXY(pDate, Km);
	 }
}