Search found 745 matches

by Marjan
Fri Feb 02, 2007 1:54 pm
Forum: .NET
Topic: Creating BoxPlots Dynamicly
Replies: 27
Views: 11033

Hi, Dmitry. Most likely you're only populating first box plot series. For each group you'll have to populate *different* series. For example: // first group points: 2,3,5 box1.Add(2); box1.Add(3); box1.Add(5); // second group points: 1.5, 2.5, 3.1, 4.0 box2.Add(1.5); box2.Add(2.5); box2.Add(3.1); bo...
by Marjan
Fri Feb 02, 2007 7:26 am
Forum: .NET
Topic: Creating BoxPlots Dynamicly
Replies: 27
Views: 11033

Hi. To control individual vertical box plot horizontal position, you can use the box plot series Position property. Something like this: boxSeries1.Position = 0; boxSeries2.Position = 1; or a more "universal" solution <g>: int i = 0; foreach(Styles.Series s in tChart1.Series) { if (s is Styles.Box) ...
by Marjan
Wed Jan 31, 2007 12:36 pm
Forum: VCL
Topic: Move Cursor Tool with arrow keys
Replies: 4
Views: 1946

Hi, Tom. Not directly. Ideally the tChart.CalcClickedPart should return clicked tool, but existing version does not support it. I'd use tChart OnMouseDown event and check if clicked position is over specific chart (cursor) tool. Here is the code I'd use: private SelectedCursor : TChartCursor; proced...
by Marjan
Wed Jan 31, 2007 7:13 am
Forum: VCL
Topic: Move Cursor Tool with arrow keys
Replies: 4
Views: 1946

Hi. You can use the same code in the Chart OnKeyPress event. Something like this: procedure TForm1.Chart1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if Key = VK_LEFT then ChartTool1.XValue := ChartTool1.XValue - 1 else if Key = VK_RIGHT then ChartTool1.XValue := ChartTool1.XVa...
by Marjan
Fri Jan 19, 2007 1:27 pm
Forum: VCL
Topic: Zooming boundaries...
Replies: 11
Views: 4037

Hi. Ok. How about manualy clipping zooming rectangle by using tChart OnMouseMove and OnAfterDraw events ? Something like this: procedure TForm1.Chart1AfterDraw(Sender: TObject); begin Chart1.Canvas.UnClipRectangle; end; procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Inte...
by Marjan
Thu Jan 18, 2007 7:40 am
Forum: VCL
Topic: Gantt Chart, AddGanttColor and left axis
Replies: 2
Views: 1538

Hi. Using TeeChart v4 Standard the only solution (without using custom axis labels) would be to use only one Gannt series. Or alternatively, add another (for example horizontal bar) series to chart and use it only for displaying labels. Something like this: // Series1 = horizontal bar series Series1...
by Marjan
Thu Jan 18, 2007 7:30 am
Forum: VCL
Topic: Zooming boundaries...
Replies: 11
Views: 4037

Hi. I think in your case a simple solution would be to allow zoom only if mouse position is within a tChart.ChartRect rectangle. You could use tChart.OnMouseDown event to allow/disable zooming. Something like this: procedure TForm1.Chart1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShift...
by Marjan
Tue Jan 16, 2007 7:16 am
Forum: VCL
Topic: Bar chart with gaps and overlaps
Replies: 2
Views: 1252

Hi, Chris. The stacking algorithm will work correctly *only* if all series have the same number of points and point x values coincide. If this is not the case, you'll have to use AddNullXY method to add "missing points". I'd use the following approach: 1) Make a list of all available (pool) of x val...
by Marjan
Fri Jan 12, 2007 8:17 am
Forum: .NET
Topic: Problem on TChart.Legend.LegendStyle
Replies: 14
Views: 5654

Hi. No, not at all. We're only saying that for the moment the only solution is to use the workaround Narcis suggested. Looking at the sources it appears the best solution is to modify Series.cs AssignFormat method and add additional line: title = source.Title; and similarly for AssignSeriesFormat so...
by Marjan
Fri Jan 12, 2007 7:37 am
Forum: VCL
Topic: Insert TeeChart into Excel through OLE
Replies: 8
Views: 4423

Hi. Does your exported chart has to be "interactive" or is it enough to have a static image (like jpeg or metafile) ? If first, then you'll have to use ActiveX version. If later, you can easily generate chart image (using specific format), copy it to Clipboard and finally paste it into Excel workshe...
by Marjan
Tue Jan 09, 2007 1:03 pm
Forum: VCL
Topic: displaying individual failure marks
Replies: 12
Views: 4768

Hi. It works but it displays 'Failure' at every point, even sections that don't fail. This would indicate that the failure check you perfom in series OnGetMarkText always returns true i.e. "Failure" is displayed for every point. I've prepared a small test application demonstrating how you can test f...
by Marjan
Fri Jan 05, 2007 7:38 am
Forum: .NET
Topic: Export PDF problem about transparent color
Replies: 1
Views: 946

Hi.

Transparency is not yet supported in the PDF export format. It's on our wish list for next major release.
by Marjan
Wed Dec 27, 2006 8:42 am
Forum: VCL
Topic: 3D Scatter Plots
Replies: 8
Views: 3705

Hi, Craigh. I'd derive new series type from one of 3d series and do the drawing in overriden DrawValue method. Bellow is a simple implementation: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, TeeSurfa, Series, ExtCtrls, TeeProcs, TeEng...
by Marjan
Sat Dec 23, 2006 11:07 am
Forum: VCL
Topic: A Question About Data Insert in Series
Replies: 1
Views: 1059

Hi. tChart.Series is defined as TChartSeries and it doesn't introduce AddXYZ method. To make it work, you'll have to typecast TChartSeries to TSurfaceSeries (of course, if possible). Something like this: if (tChart.Series[0] is TSurfaceSeries) then with (tChart.Series[0] as TSurfaceSeries) do begin ...
by Marjan
Sat Dec 23, 2006 10:58 am
Forum: VCL
Topic: Zoom should manipulate "Page" and "MaxPoints
Replies: 3
Views: 1569

Hi. As Narcis said, page navigation will work only if scrolling/zooming is not used at the same time. After you zoom or scroll, page index and MaxPointsPerPage will be lost and page navigation won't be correct. I'd disable the paging (and associated controls) if zooming or scrolling is used and allo...