teechart

TeeChart Get Series Y value or index by given X value

元气小坏坏 提交于 2019-12-01 10:35:25
问题 I have the following problem: I am using Delphi XE3 with TeeChart and I'd like to retrieve a Y value or the value index of a serie by a given X value. My serie is a time series with dates on the X axis. I know the date on the chart and I want to display the nearest corresponding Y value to this date. Is there any method or function of the TChart or TChartSeries component to achieve this? Or do I need to iterate through the series until I reached the selected date? It is not possible to use

TeeChart for .NET教程:链接图表演示

[亡魂溺海] 提交于 2019-11-29 06:32:56
TeeChart for .NET 图表组件库提供数百种2D和3D图形样式,54种运算和统计函数以及无限数量的坐标轴和14工具箱供你选择。该图表控件还可以有效地用于创建多任务的仪表板。 本文章中的演示展示了拥有TeeChart的图表如何在WinForm的应用程序中的表单上相互协作。 该演示使用了小型技术产品供应商的公司数据的基础;该公司销售电子产品,小型计算机,平板电脑和移动电话,并在全球一些国家拥有市场。 可以在点击下载使用 Visual Studio 2015编写的演示代码 。 创建项目 我们创建一个新的的WinForms项目,并将主窗体重命名为ReportForm。 向表单添加对象。我们将三个图表,一个dataGridView和一个文本框添加到表单中,并将它们放置在占据表单的整个空间中,参见下图。 使用图表编辑器,我们在图表中添加了一个数据集以及一个平滑功能,您可以在此阶段看到填充的随机数据,可以在设计时或运行时添加数据系列。 我们将公司销售数据放在名为TechProducts Ltd的MS Access文件中,并将该文件放在LinkingCharts解决方案文件夹中。 将数据添加到项目中 我们已经将数据库添加到项目中,公开表和查询(视图)。 使用BindingSource的组件,我们连接到访问数据库。数据库已经为我们希望可视化的一些数据准备了查询。对于其他情况

TeeChart .NET for iOS图表开发入门教程

我只是一个虾纸丫 提交于 2019-11-28 23:22:43
去年,TeeChart 为iOS图表开发专门发布了TeeChart NET for iOS(包含在 TeeChart Mobile 中, TeeChart8.5折进行中 ),相信很多人都对其感兴趣。慧都为大家制作了TeeChart NET for iOS的入门教程,方便大家更快的使用Xamarin的MonoTouch和TeeChart来开发iPhone应用程序。   TeeChart NET for iOS使用MonoTouch来实现,将C#语言开发的应用程序,移植到适用于iPhone和iPad 的iOS平台。在MonoTouch的开发环境MonoDevelop中,允许开发者使用C#创建各种应用程序,如需了解更多MonoTouch,请点击>>(www.xamarin.com)   TeeChart NET for iOS是一个能够开发各种图表应用的控件库,它是提供源码的,而且源码是有原生的C#,完整适用于MonoTouch。接下来我们以一个例子,来讲解TeeChart NET for iOS的开发步骤。 1、创建项目   打开MonoDevelop IDE,点击 “从文件中创建一个单一视图应用程序- >新的解决方案 - > C# - > MonoTouch的 - > iPhone - >单视图应用程序,我们给它一个描述性名称(即”TChartWithMonoTouch“)

TFDQuery and SQLite: Type mismatch for field, expecting: LargeInt actual: WideString

别等时光非礼了梦想. 提交于 2019-11-28 14:17:25
Using Delphi 10.2, SQLite and Teecharts. My SQLite database has two fields, created with: CREATE TABLE HistoryRuntime ('DayTime' DateTime, Device1 INTEGER DEFAULT (0)); I access the table using a TFDQuery called qryGrpahRuntime with the following SQL: SELECT DayTime AS TheDate, Sum(Device1) As DeviceTotal FROM HistoryRuntime WHERE (DayTime >= "2017-06-01") and (DayTime <= "2017-06-26") Group by Date(DayTime) Using the Field Editor in the Delphi IDE, I can add two persistent fields, getting TheDate as a TDateTimeField and DeviceTotal as a TLargeIntField . I run this query in a program to create

TFDQuery and SQLite: Type mismatch for field, expecting: LargeInt actual: WideString

时光总嘲笑我的痴心妄想 提交于 2019-11-27 19:33:12
问题 Using Delphi 10.2, SQLite and Teecharts. My SQLite database has two fields, created with: CREATE TABLE HistoryRuntime ('DayTime' DateTime, Device1 INTEGER DEFAULT (0)); I access the table using a TFDQuery called qryGrpahRuntime with the following SQL: SELECT DayTime AS TheDate, Sum(Device1) As DeviceTotal FROM HistoryRuntime WHERE (DayTime >= "2017-06-01") and (DayTime <= "2017-06-26") Group by Date(DayTime) Using the Field Editor in the Delphi IDE, I can add two persistent fields, getting