Search found 11 matches

by Kai
Fri May 02, 2014 7:06 am
Forum: VCL
Topic: Legend set height
Replies: 6
Views: 6937

Re: Legend set height

Thank you very much. I will try it.
by Kai
Wed Apr 30, 2014 2:24 pm
Forum: VCL
Topic: Legend set height
Replies: 6
Views: 6937

Re: Legend set height

Works :D

Thank you.

Do you have a short sample, how i can calculate the needed value of MaxNumRows?
by Kai
Wed Apr 30, 2014 1:43 pm
Forum: VCL
Topic: Legend set height
Replies: 6
Views: 6937

Re: Legend set height

Hello Yeray, thank you for your answer. If i use something like that: var intI: Integer; begin ChartAccounting.Legend.Alignment := laTop; for intI := 0 to 100 do begin with frmChart.ChartAccounting.AddSeries(TBarSeries) as TBarSeries do begin FillSampleValues(1); end; end; frmChart.ChartAccounting.D...
by Kai
Wed Apr 30, 2014 8:22 am
Forum: VCL
Topic: Legend set height
Replies: 6
Views: 6937

Legend set height

We are using the TeeChartStandard2014 package. I use the follwing to create a large TBarSeries series Series1.FillSampleValues(100); The result looks like this: test.jpg Is it possible the set a fixed height for the legend and use a custom scrollbar? If i add a scrollbar i can navigate with Chart1.L...
by Kai
Mon Apr 14, 2014 2:07 pm
Forum: VCL
Topic: TBarSeries with "double" values
Replies: 4
Views: 5340

Re: TBarSeries with "double" values

Hello Yeray, we are posting at the same time :wink: So I guess you are also modifying the bottom axis, setting a bigger range, making the bars to be drawn more close to the other bars. Oh sorry ... i post only the code to add the bars. On the other hand, looking at the data I see you are adding two ...
by Kai
Mon Apr 14, 2014 1:54 pm
Forum: VCL
Topic: TBarSeries with "double" values
Replies: 4
Views: 5340

Re: TBarSeries with "double" values

I solved the problem with this solution: var i, j: Integer; tmpDates: array of TDateTime; doADoubleValue: Boolean; myColor: TColor; doADoubleValue := False; setLength(tmpDates, 2); for i:=0 to High(tmpDates) do if i mod 2 = 0 then tmpDates[i]:=IncDay(Today, i*2) else tmpDates[i]:=IncDay(Today, (i*2)...
by Kai
Fri Apr 11, 2014 12:52 pm
Forum: VCL
Topic: TBarSeries with "double" values
Replies: 4
Views: 5340

TBarSeries with "double" values

We are using the TeeChartStandard2014 package. I have a TBarSeries with some "double" values. I use this sample code: var i, j: Integer; tmpDates: array of TDateTime; doADoubleValue: Boolean; doADoubleValue := False; setLength(tmpDates, 2); for i:=0 to High(tmpDates) do if i mod 2 = 0 then tmpDates[...
by Kai
Wed Apr 09, 2014 11:48 am
Forum: VCL
Topic: Stacked bars
Replies: 2
Views: 4308

Re: Stacked bars

Hi Yeray,

works perfect. Thank you.
by Kai
Tue Apr 08, 2014 2:46 pm
Forum: VCL
Topic: Stacked bars
Replies: 2
Views: 4308

Stacked bars

We are using the TeeChartStandard2014 package. I am testing with the MultiBar mbStacked option with this sample code: var i, j: Integer; tmpDates: array of TDateTime; setLength(tmpDates, 5); for i:=0 to High(tmpDates) do if i mod 2 = 0 then tmpDates[i]:=IncDay(Today, i*2) else tmpDates[i]:=IncDay(To...
by Kai
Tue Apr 08, 2014 2:34 pm
Forum: VCL
Topic: Add custom control to Tchart legend
Replies: 2
Views: 3705

Re: Add custom control to Tchart legend

Hi Yeray, thank you for the answer. I add also this to OnAfterDraw() if ComboBox1.Visible then begin ComboBox1.Left := Chart1.Legend.Left + 2; ComboBox1.Top := Chart1.Legend.Top + 2; ComboBox1.Width := Chart1.Legend.Width - 4; ComboBox1.BringToFront; end; to have the new position after form resize. ...
by Kai
Mon Apr 07, 2014 12:52 pm
Forum: VCL
Topic: Add custom control to Tchart legend
Replies: 2
Views: 3705

Add custom control to Tchart legend

We are using the TeeChartStandard2014 package.

Is it possible to create a custom legend and add a custom control like a TComboBox to the legend?

Best Regards,

Kai