teechart

Get X and Y values under mouse pointer

二次信任 提交于 2019-12-24 17:20:04
问题 I have a simple chart using only TLineSeries with a single Y axis. As the mouse pointer moves over the chart, I’d like to get the X and Y values associated with the pointer’s position independent of any series. I can handle the MouseMove event and get the screen X and Y coordinates, but the only way I’ve found to convert them is via the Series->XValues->Locate and Series->YValue->Locate methods. There are two problems with this: 1 - The value returned from Series->YValue->Locate is always -1

Exception and endlessly growing designer generated code in InitializeComponent when using Steema TeeChart for .NET 2013 4.1.2013.05280 - What to do?

拥有回忆 提交于 2019-12-23 04:24:31
问题 When using a Gantt series in a TeeChart control of Steema TeeChart for .NET 2013 4.1.2013.05280 in VS2010, the following exception occurs within the chart after saving and reopening the parent form. Several tries to open the form later, the Designer magically works again, but it has added an awful lot of new resources to the form's .resx file (and accesses them in InitializeComponent respectively). This behavior can be reproduced with any application using a simple Windows Form, that contains

Zoom in downsampling chart

喜你入骨 提交于 2019-12-23 02:25:15
问题 I use a .NET Winform version teechart 4.1.2012.1032. I modified the sample that you supplied. "Extended\Reducing number of points\DownSampling Additions" But When I zoom in chart, fastline's marks count is not 100 , downSampling.DisplayedPointCount. How can I resolve it? private void InitializeChart() { this.cursorTool1 = new Steema.TeeChart.Tools.CursorTool();// this.tChart1.Tools.Add(this.cursorTool1);// this.cursorTool1.FollowMouse = true;// this.cursorTool1.Style = Steema.TeeChart.Tools

How to Install a COM using ClickOnce

别来无恙 提交于 2019-12-21 05:38:13
问题 I have installed my windows application that uses TeeChart ActiveX (a COM Component for charting) using ClickOnce. If I register manually TeeChart using regsvr32 teechart8.ocx, my application works fine. But I want and I need to install the application using ClickOnce. How can I do that? 回答1: ClickOnce can only copy files. So you have these options: Use Reg-Free COM as Jeff Hall suggests. This is probably the best option if you can do it. Run regsvr32 manually when your .exe file first loads

teechart problem for series label

懵懂的女人 提交于 2019-12-18 09:40:48
问题 series[0]->AddXY(30,10,'label1',clRed); series[0]->parent = chart; This is my code to print 1 series on chart. Now I am getting label1 printed on X axis. Is there any way to print this label on Yaxis. 回答1: You should set left axis LabelStyle to talText , for example: Chart1->Axes->Left->LabelStyle = talText; 来源: https://stackoverflow.com/questions/7011648/teechart-problem-for-series-label

c++ builder teeChart import timetag in text file

家住魔仙堡 提交于 2019-12-13 10:31:28
问题 I import a text file (with x and y coordinates) on teeChart . There are times like seconds that I want to do with the text to fill in. Adding the this time and x and y coordinates to the teechart when the program runs. I work on rad studio c++ builder vcl form app. Example 0.3 second add (3,5) Example text file: timetag X Y 0.3 10 5 ı cant use time. not all code only addcordinate button and openfile button void __fastcall TForm1::AddCordBtnClick(TObject *Sender) { Series1->Clear();

Callout in Rectangle tool

谁都会走 提交于 2019-12-13 06:46:09
问题 Just want to know how can I add a callout to Rectangle tool. Below is the code which I have added but Arrow is not drawn. Only a Dot appears at (0,0). m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().SetVisibl‌​e(TRUE); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetBrush().SetC‌​olor(RGB(255,0,0)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetPen().SetCol‌​or(RGB(0,0,255)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle()

Get Series Index under cursor when TChart is clicked

白昼怎懂夜的黑 提交于 2019-12-13 02:40:59
问题 How can I get series index from cursor position when I click TChart? Thank you. 回答1: From your clicked event, you will get the X,Y mouse position. var SeriesIndex: Integer; begin SeriesIndex := Series1.Clicked(X,Y); if (SeriesIndex <> -1) then begin // Do something with SeriesIndex end; ... end; It is also possible to assign an OnClickSeries event to the chart. procedure TForm1.Chart1ClickSeries(Sender: TCustomChart; Series: TChartSeries; ValueIndex: Integer; Button: TMouseButton; Shift:

Teechart, Gantt Series, Visual Studio's Designer And The “Array rank '2' is too high” Error

假如想象 提交于 2019-12-12 18:29:07
问题 Everytime I try to save changes to a UserControl that contains a chart using gantt series, Visual Studio's designer always pops up the following error message: Array rank '2' is too high. visual studio can only load and save arrays with rank 1. I'm compiling against Teechart for .Net 2012 4.1.2012.* and I think it has something todo with this property [Description("MultiDimensional array to store Multiple NextTasks, with the indices being start and end task index and the value -1.")]

how to improve performance of Tchart in real-time plotting?

送分小仙女□ 提交于 2019-12-12 05:15:37
问题 I am developing an application which has minimum one tchart with 4 fastlines in it . maximum number of tcharts are 16 depending on few criteria.each fastline contains different sample numbers in different cases. here is the problem now. If I have sample number less than 200-250. then I can see the graph is being plotted real-time. now as the sample number increases the delay goes so long in plotting the graph. so let's say if we have 1000 samples for each fasline then total of 4000 samples in