Search found 745 matches

by Marjan
Mon Oct 08, 2007 6:55 pm
Forum: Java
Topic: ADX financial indicator
Replies: 4
Views: 12600

Hi.

Yes, that will work ok. Ideally this should be done automatically inside function. We'll try to implement this for next maintenance release.
by Marjan
Wed Aug 22, 2007 1:03 pm
Forum: VCL
Topic: All TBoxSeries.XLabel do not appear on the chart along the X
Replies: 6
Views: 14358

Hi. The XLabels are associated to single series and if this series has less points than XLabels, you'll end up with wrong result. Single boxplot series displays one single box at speicific x position meaning you'll only be able to control single axis label. The correct way to display series titles a...
by Marjan
Fri Aug 17, 2007 7:32 am
Forum: VCL
Topic: All TBoxSeries.XLabel do not appear on the chart along the X
Replies: 6
Views: 14358

Hi. It's hard to tell but I'd say the problem is horizontal axis pixel size is not the same in both cases and drawing algorithm decides to skip some labels to avoid overlapping. To fix this problem, try settingh the axis LabelSeparation property to small value (for example, 1). This should force Tee...
by Marjan
Thu Aug 09, 2007 6:13 am
Forum: VCL
Topic: Populating TeeExport with various graphics formats
Replies: 1
Views: 6536

Hi. To add additional export formats at runtime, all you have to do is include specific export units in the Uses section. For example, if you want to add jpeg and pdf export formats, add: Uses ..., TeeJpeg, TeePDFCanvas; to the Uses section. Similar goes for C++ Builder: #include "TeeJpeg.hpp" #incl...
by Marjan
Wed Aug 08, 2007 1:10 pm
Forum: VCL
Topic: Showing Series Label Below Each Pie Chart and Mark Position
Replies: 11
Views: 131769

Hi. I think he used OnBeforeDrawValues event (as demonstrated in TeeChart "Multiple Pies" demo) with a little twist: procedure TPieMultiple.Series1BeforeDrawValues(Sender: TObject); begin Chart1.ChartRect:=Rect(10,10,Chart1.Width div 3, Chart1.Height - 10); end; procedure TPieMultiple.Series2BeforeD...
by Marjan
Tue Aug 07, 2007 1:54 pm
Forum: VCL
Topic: Unexpected BoxPlot
Replies: 5
Views: 12964

Hi, Martin. Actually, I amd using NCSS. For percentile it uses the following formula: The 100pth percentile is computed as Zp = (1-g)X[k1] + gX[k2] where k1 equals the integer part of p(n+1), k2=k1+1, g is the fractional part of p(n+1), and X[k] is the kth observation when the data are sorted from l...
by Marjan
Tue Aug 07, 2007 11:12 am
Forum: VCL
Topic: Unexpected BoxPlot
Replies: 5
Views: 12964

Hi, Martin Looking at your data I get the following results: median = 0.0 25th percentile = 0.0 75th percentile = 1.65 IQR = 1.65 lower inner fence = 25th PCT - 1.5*IQR = -2.475 upper inner fence = 75th PCT + 1.5*IQR = 4.125 lower adjacent point, defined as smallest value above lower inner fence. In...
by Marjan
Tue Jul 31, 2007 8:12 am
Forum: VCL
Topic: Newbie Help - Adding more than one Box plot to a chart
Replies: 2
Views: 8045

Hi. Boxplot series horizontal position is controlled by it's Position property. For multiple boxplot series, you have to set each boxseries Position property to different value. The following code should work fine: BoxSeries := TBoxSeries.Create(nil); BoxSeries.Position := SeriesNum; BoxSeries.Paren...
by Marjan
Mon Jul 30, 2007 2:32 pm
Forum: VCL
Topic: How to draw the contour?
Replies: 8
Views: 18561

Thanks for your reply,In my case I only have one temperature data at one long and one lati.But In your program, I should get all temperature data at same long and different lati.I am not sure I make it clear.I wll give one table, that will be more clear. Now I have three datas,Table 1 Long 100 102 ...
by Marjan
Sun Jul 29, 2007 3:03 pm
Forum: VCL
Topic: How to draw the contour?
Replies: 8
Views: 18561

For contour series you need 2d regular or irregular grid data. This is why you need two y=y(x,z) variables i.e. two for loops to populate the series. In case your data is not arranged as grid data, you'll first have to create grid data and then pass it to series using: for i := 0 to NumCellsGridX -1...
by Marjan
Sat Jul 21, 2007 5:49 am
Forum: VCL
Topic: Question about Right click on chart
Replies: 6
Views: 14382

Hi. Re #1: Yes, sure, you can assign the OnClick event to dynamically created series. Something like this should work fine: procedure TForm1.Series1ClickPointer(Sender: TCustomSeries; ValueIndex, X, Y: Integer); begin ShowMessage(floattostr(Sender.YValues.Value[Valueindex])); end; procedure TForm1.A...
by Marjan
Mon Jul 16, 2007 6:36 am
Forum: VCL
Topic: Wrong correlation coefficient
Replies: 14
Views: 30693

Hi. Not quite. Simply adding xmin and ymax won't do the trick. For example, "normalized" 1st degree equation is: y-ymin = b(1)*(x-xmin)+b(0) By expanding this to: y = b(1)*x - b(1)*xmin+b(0)+ymin you get the usuall a(1) and a(0) coefficients which define equation y=a(1)*x+a(0) ... a(1) = b(1) a(0) =...
by Marjan
Wed Jul 11, 2007 7:13 am
Forum: VCL
Topic: Wrong correlation coefficient
Replies: 14
Views: 30693

What do you mean by normalized equation ? What should I do to get the correct coefficient ? Normalized (in this case) means *all* that minimum x value is subtracted from all x values and minimum y value is subtracted from all y values. Then the actual fitting is performed on these normalized values...
by Marjan
Tue Jul 10, 2007 2:17 pm
Forum: VCL
Topic: Wrong correlation coefficient
Replies: 14
Views: 30693

Hi. I think the problem is the AnswerVector allways returns the coefficients of normalized equation. Normalizing values prior to fitting avoids fp overflows when large x or y values are used. In short, fitting is performed on x=x-xmin and y=y-ymin values. If you take this into the account, AnswerVec...
by Marjan
Fri Jul 06, 2007 5:47 pm
Forum: VCL
Topic: SaveToStream - Non TChart Components stored, too ?
Replies: 4
Views: 9904

Hi. One dirty solution might be to: a) Make a list of all components with Parent property equal to Chart1. b) Prior to using any of chart saving methods, set the component(s) Parent to nil (or something else than Chart1). This should make all these components "invisible" to chart saving methods i.e....