界面代码:

object Form1: TForm1
Left =
Top =
Width =
Height =
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch =
TextHeight =
object Panel1: TPanel
Left =
Top =
Width =
Height =
Align = alBottom
BevelInner = bvLowered
TabOrder =
object Button1: TButton
Left =
Top =
Width =
Height =
Caption = '首页'
TabOrder =
OnClick = Button1Click
end
object Button2: TButton
Left =
Top =
Width =
Height =
Caption = '末页'
TabOrder =
OnClick = Button2Click
end
object CheckBox1: TCheckBox
Left =
Top =
Width =
Height =
Caption = '标签'
Checked = True
State = cbChecked
TabOrder =
OnClick = CheckBox1Click
end
object CheckBox2: TCheckBox
Left =
Top =
Width =
Height =
Caption = '点标记'
Checked = True
State = cbChecked
TabOrder =
OnClick = CheckBox2Click
end
object CheckBox3: TCheckBox
Left =
Top =
Width =
Height =
Caption = '3D'
Checked = True
State = cbChecked
TabOrder =
OnClick = CheckBox3Click
end
end
object ChartPageNavigator1: TChartPageNavigator
Left =
Top =
Width =
Height =
Align = alTop
TabOrder =
Chart = Chart1
end
object ChartScrollBar1: TChartScrollBar
Left =
Top =
Width =
Height =
Align = alBottom
Enabled = True
LargeChange =
Max =
Min =
PageSize =
Position =
SmallChange =
TabOrder =
Chart = Chart1
end
object Chart1: TChart
Left =
Top =
Width =
Height =
Gradient.EndColor =
Gradient.StartColor =
Gradient.Visible = True
Title.Text.Strings = (
'图表滚动和页面导航组件演示')
MaxPointsPerPage =
Align = alClient
BevelInner = bvLowered
TabOrder =
object Series1: TLineSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = True
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = True
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
Data = {
00190000000000000000406D400000000000C060400000000000806640000000
00000051400000000000C0554000000000000068400000000000805940000000
000080464000000000004053400000000000003840000000000000F03F000000
0000005D4000000000000041400000000000002A400000000000003140000000
0000C05540000000000000144000000000000044400000000000804340000000
0000005540000000000040684000000000004071400000000000C06A40000000
00004067400000000000707040}
end
object ChartTool1: TPageNumTool
Callout.Brush.Color = clBlack
Callout.Arrow.Visible = False
Shape.CustomPosition = True
Shape.Left =
Shape.Top =
Text = '第 %d 页共 %d 页'
Format = '第 %d 页共 %d 页'
end
end
end

功能代码:

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, TeEngine, TeeTools, TeePageNumTool, Series, TeeProcs, Chart,
StdCtrls, TeeScroB, TeeNavigator, TeeEdiGene, ExtCtrls; type
TForm1 = class(TForm)
Panel1: TPanel;
Button1: TButton;
Button2: TButton;
CheckBox1: TCheckBox;
CheckBox2: TCheckBox;
CheckBox3: TCheckBox;
ChartPageNavigator1: TChartPageNavigator;
ChartScrollBar1: TChartScrollBar;
Chart1: TChart;
Series1: TLineSeries;
ChartTool1: TPageNumTool;
procedure FormCreate(Sender: TObject);
procedure CheckBox1Click(Sender: TObject);
procedure CheckBox2Click(Sender: TObject);
procedure CheckBox3Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end; var
Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject);
begin
Self.Caption := '图表的滚动与翻页';
Self.Position := poScreenCenter;
Series1.FillSampleValues();
Chart1.MaxPointsPerPage := ; //每页最大点数
ChartScrollBar1.Min := ;
ChartScrollBar1.Max := ; //最大页数
ChartScrollBar1.Position := ;
ChartScrollBar1.PageSize := ;
end; procedure TForm1.CheckBox1Click(Sender: TObject);
begin
Series1.Marks.Visible := CheckBox1.Checked;
end; procedure TForm1.CheckBox2Click(Sender: TObject);
begin
Series1.Pointer.Visible := CheckBox2.Checked;
end; procedure TForm1.CheckBox3Click(Sender: TObject);
begin
Chart1.View3D := CheckBox3.Checked;
end; procedure TForm1.Button1Click(Sender: TObject);
begin
ChartScrollBar1.Position := ;
Button1.Enabled := False;
Button2.Enabled := True;
end; procedure TForm1.Button2Click(Sender: TObject);
begin
ChartScrollBar1.Position := ChartScrollBar1.Max;
Button1.Enabled := True;
Button2.Enabled := False;
end; end.

TChart-图表的滚动与翻译的更多相关文章

  1. AntV F2 数据可视化填坑,图表横向滚动

    柱状图横向滚动 思路 通过 Interaction 实现平移,通过 ScrollBar 显示滚动条 1.Interaction F2 提供一套交互机制,以达到通用交互行为的封装和复用.基于此机制,我们 ...

  2. Delphi编程建议遵守的规范2---命名规范

    1.1.形参命名建议 所有形参的名称都应当表达出它的用途.如果合适的话,形参的名称最好以字母a 为前缀,例如: procedure SomeProc(aUserName:string; aUserAg ...

  3. DevExpress ChartControl大数据加载时有哪些性能优化方法

    DevExpress ChartControl加载大数据量数据时的性能优化方法有哪些? 关于图表优化,可从以下几个方面解决: 1.关闭不需要的可视化的元素(如LineMarkers, Labels等) ...

  4. 快快快!27个提升效率的iOS开源库推荐(转)

    CSDN移动将持续为您优选移动开发的精华内容,共同探讨移动开发的技术热点话题,涵盖移动应用.开发工具.移动游戏及引擎.智能硬件.物联网等方方面面.如果您想投稿.参与内容翻译工作,或寻求近匠报道,请发送 ...

  5. DevExpress之ChartControl实现时间轴实例 z

    using System; using System.Data; using System.Windows.Forms; using DevExpress.XtraCharts; namespace ...

  6. [Android]使用Dagger 2依赖注入 - 图表创建的性能(翻译)

    以下内容为原创,欢迎转载,转载请注明 来自天天博客:http://www.cnblogs.com/tiantianbyconan/p/5098943.html 使用Dagger 2依赖注入 - 图表创 ...

  7. [Android]Dagger2Metrics - 测量DI图表初始化的性能(翻译)

    以下内容为原创,欢迎转载,转载请注明 来自天天博客:http://www.cnblogs.com/tiantianbyconan/p/5098943.html Dagger2Metrics - 测量D ...

  8. 开源数据库 H2, HSQLDB, DERBY, PostgreSQL, MySQL区别/对比图表( 附加翻译) h2数据库

    开源数据库 H2, HSQLDB, DERBY, PostgreSQL, MySQL区别/对比图表 浪天涯博主翻译: referential integrity 参考完整性transactions 事 ...

  9. [Swift通天遁地]三、手势与图表-(13)制作美观简介的滚动图表:折线图表、面积图表、柱形图表、散点图表

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs. ...

随机推荐

  1. Mabitis

    Mybatis 一.框架概念: Java框架,一个软件半成品,简单来说就是一个别人搭好的舞台,你来做表演,说白了Java框架就是封装好方便程序员操作的类,使项目的开发更简单,维护起来也更容易. 而My ...

  2. jenkins集成jmeter-进阶篇

    1.gitlab自动触发jenkins构建 1⃣️安装插件: 2⃣️新建工程,设置git url,build when a change is pushed auto.sh /bin/sh echo ...

  3. STM8L15X 硬件I2C调试总结

    最近接到一个项目需要使用STM8L上硬件I2C与SN3731通信,用户方是个方案商,硬件设计人员也没留测试点,直接就把板子焊了拿来了.调试时除了swio口能用所有都不能用,硬件设计大概是为了显得自己焊 ...

  4. 死磕dtd(1)

    看到安卓开发里大量的xml文件和layout里的Android UI开始复习一下xml xml的校验规则依据dtd dtd里面大小写敏感.....查找了好久才发现这个问题 <?xml versi ...

  5. 练习2-15 求简单交错序列前N项和 (15 分)

    练习2-15 求简单交错序列前N项和 (15 分) 本题要求编写程序,计算序列 1 - 1/4 + 1/7 - 1/10 + ... 的前N项之和. 输入格式: 输入在一行中给出一个正整数N. 输出格 ...

  6. 在jsp页面下, 让eclipse完全支持HTML/JS/CSS智能提示

    我们平时用eclipse开发jsp页面时智能提示效果不太理想,今天用了两个小时发现了eclipse也可以像Visual Studio 2008那样完全智能提示HTML/JS/CSS代码,使用eclip ...

  7. vcs/verdi filist

    . 现在很多verilog 的filelist 文件中用如下形式来指定文件所在的目录就行了,而不必指定具体文件 ./testbench/ppc460_PLB4/p464s_test_top_tb.v ...

  8. Pycharm2018.3.5永久破解

    声明:不做商业用途,电脑系统win10专业版,亲测有效. 首先:可以先去lookdiv.com钥匙:lookdiv.com去使用更新的激活码,免费版的有效期待考量. 或者:可以下面方式破解 注意:破解 ...

  9. [PowerShell]Python虚拟环境激活失败

    用Activate.ps1激活还是失效的情况下, 用ISE打开发现路径中的中文乱码了. 所以解决方案有两种, 一是把中文路径改成英文 二是把Activate.ps1脚本用记事本打开另存为ANSI编码即 ...

  10. 微信小程序开发技巧总结 (一)-- 数据传递和存储

    结合自己在平时的开发中遇到的各种问题,和浏览各种问题的解决方案总结出一些自己在日常开发中常用的技巧和知点,希望各位不吝斧正. 1.短生命周期数据存储 以小程序启动到彻底关闭为周期的的数据建议存储在ap ...