Search found 10 matches

by Achim
Wed Nov 05, 2008 2:31 pm
Forum: VCL
Topic: How to negate a serie
Replies: 6
Views: 3792

No, you need to select TeeFunction1 object in the Object Inspector
Wow, I've found it. It's the first time I've select a component in this way, after several 'delphi-years'. I've always select an icon or component on the form to access the properties. :oops:
by Achim
Wed Nov 05, 2008 2:13 pm
Forum: VCL
Topic: LoadChartFromStream / SaveChartToStream
Replies: 9
Views: 6155


This is because after loading the chart Series1 variable hasn't been assigned
Thanks, I'll use DBChart1[0..n] instead of Series1..n

Is it a bug, which will fixed?
by Achim
Wed Nov 05, 2008 1:40 pm
Forum: VCL
Topic: Please insert following Sourcecode
Replies: 5
Views: 3712

However, some users may not be happy with this change as it may break their functionality. There is an on/off property in the code above. Default-seting should be 'off'. 2.) It is(or was in older versions) possible to use the mouse wheel for panning, even if panning is not allowed. The two lines pr...
by Achim
Wed Nov 05, 2008 1:34 pm
Forum: VCL
Topic: How to negate a serie
Replies: 6
Views: 3792

You can use this code after activating the query Thanks, that works. You need to select function, .... I don't find it. I drop a dbchart to a form, double-click on it -> Add.. -> functions -> y=f(x) . I get the serie1 in the serieslist. After selecting the dbchart on the form, I saw the chart-prope...
by Achim
Wed Nov 05, 2008 11:51 am
Forum: VCL
Topic: How to negate a serie
Replies: 6
Views: 3792

You can do something like this: Series2.Clear; for i:=0 to Series1.Count-1 do begin Series2.AddXY(Series1.XValue[i], -Series1.YValue[i]); end; But where is the best place(event) for this code. After showing a form I set query.active to true, and then the chart is shown. You can also use custom func...
by Achim
Wed Nov 05, 2008 11:23 am
Forum: VCL
Topic: Please insert following Sourcecode
Replies: 5
Views: 3712

Sorry but I don't understand which are the exact problems here. Could you please provide more detailed information? Thanks in advance. 1.) If you use the mouse to drag a series point, there is no limit. You can drag and drag and drag, the values can grows up to thousand and millions. With the code ...
by Achim
Wed Nov 05, 2008 11:11 am
Forum: VCL
Topic: LoadChartFromStream / SaveChartToStream
Replies: 9
Views: 6155

This works fine for me here using TeeChart Pro v8.04 VCL. Which TeeChart version are you using? 8.02, but I've took a look at the 8.04bugfix-file. There is nothing about loadchartfromfile ... You may need to register all series styles at runtime using TeeEditPro as described here . I'he tried it, b...
by Achim
Wed Nov 05, 2008 8:56 am
Forum: VCL
Topic: Please insert following Sourcecode
Replies: 5
Views: 3712

Please insert following Sourcecode

1.) Clip DragPoint to min/max. TDragPointTool=class(TTeeCustomToolSeries) private fXMinimum:double; fXMaximum:double; fYMinimum:double; fYMaximum:double; fXClip:boolean; fYClip:boolean; .... published property XMinimum:double read fXMinimum write fXMinimum; property XMaximum:double read fXMaximum wr...
by Achim
Wed Nov 05, 2008 8:36 am
Forum: VCL
Topic: How to negate a serie
Replies: 6
Views: 3792

How to negate a serie

I'm using the Standard Deviation function within the design-mode.
Now I'm looking for a negate function, to create a new serie with the
negated data of the StdDev-Serie.

Maybe the subtract-function with a const like

StdDevMinSerie := 0 - StdDdv

What can I do
by Achim
Wed Nov 05, 2008 8:25 am
Forum: VCL
Topic: LoadChartFromStream / SaveChartToStream
Replies: 9
Views: 6155

I've a problem with load and save, also. Saving seems ok, but LoadChartFromFile deletes the series. procedure TForm8.Button4Click(Sender: TObject); begin SaveChartToFile(DBChart3,'Chart.txt',True,true); LineSeries1.Clear; LineSeries2.clear; end; procedure TForm8.Button5Click(Sender: TObject); begin ...