mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-06 11:40:35 +01:00
TAChart: Add multi-valued series demo
git-svn-id: trunk@27080 -
This commit is contained in:
parent
19f61c8aaf
commit
aff125b5f7
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -2176,6 +2176,10 @@ components/tachart/demo/line/Main.lfm svneol=native#text/plain
|
||||
components/tachart/demo/line/Main.pas svneol=native#text/pascal
|
||||
components/tachart/demo/line/linedemo.lpi svneol=native#text/plain
|
||||
components/tachart/demo/line/linedemo.lpr svneol=native#text/pascal
|
||||
components/tachart/demo/multi/Main.lfm svneol=native#text/plain
|
||||
components/tachart/demo/multi/Main.pas svneol=native#text/pascal
|
||||
components/tachart/demo/multi/multidemo.lpi svneol=native#text/plain
|
||||
components/tachart/demo/multi/multidemo.lpr svneol=native#text/pascal
|
||||
components/tachart/demo/rotate/Main.lfm svneol=native#text/pascal
|
||||
components/tachart/demo/rotate/Main.pas svneol=native#text/pascal
|
||||
components/tachart/demo/rotate/rotatedemo.lpi svneol=native#text/plain
|
||||
|
||||
75
components/tachart/demo/multi/Main.lfm
Normal file
75
components/tachart/demo/multi/Main.lfm
Normal file
@ -0,0 +1,75 @@
|
||||
object Form1: TForm1
|
||||
Left = 386
|
||||
Height = 373
|
||||
Top = 218
|
||||
Width = 471
|
||||
Caption = 'Form1'
|
||||
ClientHeight = 373
|
||||
ClientWidth = 471
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '0.9.29'
|
||||
object PageControl1: TPageControl
|
||||
Left = 0
|
||||
Height = 373
|
||||
Top = 0
|
||||
Width = 471
|
||||
ActivePage = tsBubble
|
||||
Align = alClient
|
||||
TabIndex = 0
|
||||
TabOrder = 0
|
||||
object tsBubble: TTabSheet
|
||||
Caption = 'Bubble'
|
||||
ClientHeight = 347
|
||||
ClientWidth = 463
|
||||
object chBubble: TChart
|
||||
Left = 0
|
||||
Height = 347
|
||||
Top = 0
|
||||
Width = 463
|
||||
AxisList = <
|
||||
item
|
||||
Title.LabelFont.Orientation = 900
|
||||
end
|
||||
item
|
||||
Alignment = calBottom
|
||||
Marks.Distance = 0
|
||||
Marks.DistanceToCenter = True
|
||||
Marks.LabelBrush.Style = bsSolid
|
||||
TickLength = 0
|
||||
end>
|
||||
Foot.Brush.Color = clBtnFace
|
||||
Foot.Font.Color = clBlue
|
||||
Proportional = True
|
||||
Title.Brush.Color = clBtnFace
|
||||
Title.Font.Color = clBlue
|
||||
Title.Text.Strings = (
|
||||
'TAChart'
|
||||
)
|
||||
Align = alClient
|
||||
ParentColor = False
|
||||
object Chart1BubbleSeries1: TBubbleSeries
|
||||
Marks.Distance = 0
|
||||
Marks.DistanceToCenter = True
|
||||
Marks.Format = '%0:.9g'
|
||||
Marks.Style = smsValue
|
||||
BubbleBrush.Color = clRed
|
||||
BubbleBrush.Style = bsDiagCross
|
||||
Source = lcsBubble
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
object lcsBubble: TListChartSource
|
||||
DataPoints.Strings = (
|
||||
'10|50|3|?|'
|
||||
'20|30|1|?|'
|
||||
'50|40|6|?|'
|
||||
'80|60|2|?|'
|
||||
'60|50|15|?|'
|
||||
'35|20|9|?|'
|
||||
)
|
||||
YCount = 2
|
||||
left = 130
|
||||
top = 65
|
||||
end
|
||||
end
|
||||
31
components/tachart/demo/multi/Main.pas
Normal file
31
components/tachart/demo/multi/Main.pas
Normal file
@ -0,0 +1,31 @@
|
||||
unit Main;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, ComCtrls, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
|
||||
TAGraph, TASeries, TASources;
|
||||
|
||||
type
|
||||
|
||||
{ TForm1 }
|
||||
|
||||
TForm1 = class(TForm)
|
||||
chBubble: TChart;
|
||||
Chart1BubbleSeries1: TBubbleSeries;
|
||||
lcsBubble: TListChartSource;
|
||||
PageControl1: TPageControl;
|
||||
tsBubble: TTabSheet;
|
||||
end;
|
||||
|
||||
var
|
||||
Form1: TForm1;
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
end.
|
||||
|
||||
92
components/tachart/demo/multi/multidemo.lpi
Normal file
92
components/tachart/demo/multi/multidemo.lpi
Normal file
@ -0,0 +1,92 @@
|
||||
<?xml version="1.0"?>
|
||||
<CONFIG>
|
||||
<ProjectOptions>
|
||||
<Version Value="9"/>
|
||||
<PathDelim Value="\"/>
|
||||
<General>
|
||||
<SessionStorage Value="InProjectDir"/>
|
||||
<Title Value="Bubble series demo"/>
|
||||
<ResourceType Value="res"/>
|
||||
<UseXPManifest Value="True"/>
|
||||
</General>
|
||||
<i18n>
|
||||
<EnableI18N LFM="False"/>
|
||||
</i18n>
|
||||
<VersionInfo>
|
||||
<StringTable ProductVersion=""/>
|
||||
</VersionInfo>
|
||||
<PublishOptions>
|
||||
<Version Value="2"/>
|
||||
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
||||
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
|
||||
</PublishOptions>
|
||||
<RunParams>
|
||||
<local>
|
||||
<FormatVersion Value="1"/>
|
||||
</local>
|
||||
</RunParams>
|
||||
<RequiredPackages Count="2">
|
||||
<Item1>
|
||||
<PackageName Value="TAChartLazarusPkg"/>
|
||||
<MinVersion Major="1" Valid="True"/>
|
||||
</Item1>
|
||||
<Item2>
|
||||
<PackageName Value="LCL"/>
|
||||
</Item2>
|
||||
</RequiredPackages>
|
||||
<Units Count="2">
|
||||
<Unit0>
|
||||
<Filename Value="multidemo.lpr"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<UnitName Value="multidemo"/>
|
||||
</Unit0>
|
||||
<Unit1>
|
||||
<Filename Value="Main.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<ComponentName Value="Form1"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
<UnitName Value="Main"/>
|
||||
</Unit1>
|
||||
</Units>
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
<Version Value="9"/>
|
||||
<PathDelim Value="\"/>
|
||||
<Target>
|
||||
<Filename Value="multidemo"/>
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir)\"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<CodeGeneration>
|
||||
<SmartLinkUnit Value="True"/>
|
||||
</CodeGeneration>
|
||||
<Linking>
|
||||
<Options>
|
||||
<Win32>
|
||||
<GraphicApplication Value="True"/>
|
||||
</Win32>
|
||||
</Options>
|
||||
</Linking>
|
||||
<Other>
|
||||
<CompilerMessages>
|
||||
<UseMsgFile Value="True"/>
|
||||
</CompilerMessages>
|
||||
<CompilerPath Value="$(CompPath)"/>
|
||||
</Other>
|
||||
</CompilerOptions>
|
||||
<Debugging>
|
||||
<Exceptions Count="3">
|
||||
<Item1>
|
||||
<Name Value="EAbort"/>
|
||||
</Item1>
|
||||
<Item2>
|
||||
<Name Value="ECodetoolError"/>
|
||||
</Item2>
|
||||
<Item3>
|
||||
<Name Value="EFOpenError"/>
|
||||
</Item3>
|
||||
</Exceptions>
|
||||
</Debugging>
|
||||
</CONFIG>
|
||||
21
components/tachart/demo/multi/multidemo.lpr
Normal file
21
components/tachart/demo/multi/multidemo.lpr
Normal file
@ -0,0 +1,21 @@
|
||||
program multidemo;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
uses
|
||||
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
||||
cthreads,
|
||||
{$ENDIF}{$ENDIF}
|
||||
Interfaces, // this includes the LCL widgetset
|
||||
Forms, Main, tachartlazaruspkg
|
||||
{ you can add units after this };
|
||||
|
||||
{$R *.res}
|
||||
|
||||
begin
|
||||
Application.Title := 'Bubble series demo';
|
||||
Application.Initialize;
|
||||
Application.CreateForm(TForm1, Form1);
|
||||
Application.Run;
|
||||
end.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user