|
Replies:
7
-
Last Post:
Feb 24, 2017 1:56 AM
Last Post By: Yeray Alonso
|
|
|
Posts:
5
Registered:
1/23/12
|
|
Hi,
I am working on embarcadero Rad studio c++ builder 2010 desktop application, where i want to create dashboard screen, for that i want to use TeeChart components like Tchart to display pie chart on the dashboard screen.
I could see TeeChart standard 8 components package in my Project->Options->Packages->Design packages. but I could not see components inside this package like Tchart,TComboFlat, TDBChart etc… in the tool palette. I think I need to register these component classes so that they all will appear in Tool palette.
once it appears in Tool palette, i can drag and drop to my Form. Please let me know the procedure or any samples to register these TeeChart components to show in Tool palette.
Thanks in advance.
|
|
|
Posts:
75
Registered:
6/12/11
|
|
Hello,
I am working on embarcadero Rad studio c++ builder 2010 desktop application, where i want to create dashboard screen, for that i want to use TeeChart components like Tchart to display pie chart on the dashboard screen.
I could see TeeChart standard 8 components package in my Project->Options->Packages->Design packages. but I could not see components inside this package like Tchart,TComboFlat, TDBChart etc… in the tool palette. I think I need to register these component classes so that they all will appear in Tool palette.
once it appears in Tool palette, i can drag and drop to my Form. Please let me know the procedure or any samples to register these TeeChart components to show in Tool palette.
If you left TeeChart Standard selected during the IDE installation, the packages should be installed in the IDE, and also the design components in the toolbox.
I'd check if the TeeChart package are selected in the "Component->Install Packages". Then, I'd create a new simple project and, while in the design view if the form, I'd search for "Chart" in the toolbox.
If it still doesn't show the TeeChart components, I'd suggest you to reinstall/repair the IDE.
--
Best Regards,
Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
|
|
|
|
Posts:
5
Registered:
1/23/12
|
|
Hi,
Thanks for your quick reply..
I am able to see Tchart in tool Palette. Could you please help me with few pie chart sample forms??
Regards,
Hello,
I am working on embarcadero Rad studio c++ builder 2010 desktop application, where i want to create dashboard screen, for that i want to use TeeChart components like Tchart to display pie chart on the dashboard screen.
I could see TeeChart standard 8 components package in my Project->Options->Packages->Design packages. but I could not see components inside this package like Tchart,TComboFlat, TDBChart etc… in the tool palette. I think I need to register these component classes so that they all will appear in Tool palette.
once it appears in Tool palette, i can drag and drop to my Form. Please let me know the procedure or any samples to register these TeeChart components to show in Tool palette.
If you left TeeChart Standard selected during the IDE installation, the packages should be installed in the IDE, and also the design components in the toolbox.
I'd check if the TeeChart package are selected in the "Component->Install Packages". Then, I'd create a new simple project and, while in the design view if the form, I'd search for "Chart" in the toolbox.
If it still doesn't show the TeeChart components, I'd suggest you to reinstall/repair the IDE.
--
Best Regards,
Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
Edited by: rajeswari godugula on Feb 22, 2017 4:45 AM
|
|
|
|
Posts:
75
Registered:
6/12/11
|
|
|
|
|
Posts:
5
Registered:
1/23/12
|
|
Hi,
Below link is showing demos, when i click to see source code on "TeeChart pro examples ->Chart", access violation error is throwing. can you guide me for documentation link where i can see TChart component usage and how can we draw pie chart using TChart component?
Edited by: rajeswari godugula on Feb 23, 2017 1:32 AM
|
|
|
|
Posts:
75
Registered:
6/12/11
|
|
Hello,
Below link is showing demos, when i click to see source code on "TeeChart pro examples ->Chart", access violation error is throwing. can you guide me for documentation link where i can see TChart component usage and how can we draw pie chart using TChart component?
I'm sorry, the "Source code" tab requires TeeChart Pro (eval or registered) to work.
The complete source code of the examples can be found here.
The examples are in Delphi, but you shouldn't find too much problems to translate them to C++.
Find below the sources of the Pie_Multi example:
unit Pie_Multi;
{$I TeeDefs.inc}
interface
uses
{$IFNDEF LINUX}
Windows, Messages,
{$ENDIF}
SysUtils, Classes,
{$IFDEF CLX}
QGraphics, QControls, QForms, QDialogs, QExtCtrls, QStdCtrls, QComCtrls,
{$ELSE}
Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ComCtrls,
{$ENDIF}
Base, TeEngine, Series, TeeProcs, Chart, TeCanvas, TeeGDIPlus;
type
TPieMultiple = class(TBaseForm)
Series1: TPieSeries;
Series2: TPieSeries;
Series3: TPieSeries;
Series4: TPieSeries;
procedure FormCreate(Sender: TObject);
procedure Series1BeforeDrawValues(Sender: TObject);
procedure Series2BeforeDrawValues(Sender: TObject);
procedure Series3BeforeDrawValues(Sender: TObject);
procedure Series4BeforeDrawValues(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
implementation
{$IFNDEF CLX}
{$R *.DFM}
{$ELSE}
{$R *.xfm}
{$ENDIF}
procedure TPieMultiple.FormCreate(Sender: TObject);
begin
inherited;
Chart1.SeriesList.FillSampleValues(4);
Chart1.ApplyZOrder:=False;
Series1.EdgeStyle := edCurved;
Series2.EdgeStyle := edCurved;
Series3.EdgeStyle := edCurved;
Series4.EdgeStyle := edCurved;
end;
procedure TPieMultiple.Series1BeforeDrawValues(Sender: TObject);
begin
Chart1.ChartRect:=Rect(10,10,Chart1.Width div 2, Chart1.Height div 2);
end;
procedure TPieMultiple.Series2BeforeDrawValues(Sender: TObject);
begin
Chart1.ChartRect:=Rect(Chart1.Width div 2, 10, Chart1.Width, Chart1.Height div 2);
end;
procedure TPieMultiple.Series3BeforeDrawValues(Sender: TObject);
begin
Chart1.ChartRect:=Rect(10,Chart1.Height div 2,Chart1.Width div 2, Chart1.Height);
end;
procedure TPieMultiple.Series4BeforeDrawValues(Sender: TObject);
begin
Chart1.ChartRect:=Rect(Chart1.Width div 2, Chart1.Height div 2, Chart1.Width, Chart1.Height);
end;
initialization
RegisterClass(TPieMultiple);
end.
--
Best Regards,
Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
|
|
|
|
Posts:
5
Registered:
1/23/12
|
|
Thanks... Sorry to trouble you again...
Yeah i have got c++ files as well. I was asking for Tchart component complete documentation like each property of component and explanation for the same.
For example, when i add Tchart to my Form, customAxes and seriesGroups are showing under Chart1 and apart from that i am able to select EditChart option and able to add Series1 and select pie chart in that. not sure this is right way to add pie chart to Form or which property to select to show what.and what is meant by Axisvisible, AxisBehind, how can i add my own slices to pie chart etc.... these kind of documentation i am expecting.
Do you have that kind of documentation or how i should get started with these components?
Hello,
Below link is showing demos, when i click to see source code on "TeeChart pro examples ->Chart", access violation error is throwing. can you guide me for documentation link where i can see TChart component usage and how can we draw pie chart using TChart component?
I'm sorry, the "Source code" tab requires TeeChart Pro (eval or registered) to work.
The complete source code of the examples can be found here.
The examples are in Delphi, but you shouldn't find too much problems to translate them to C++.
Find below the sources of the Pie_Multi example:
unit Pie_Multi;
{$I TeeDefs.inc}
interface
uses
{$IFNDEF LINUX}
Windows, Messages,
{$ENDIF}
SysUtils, Classes,
{$IFDEF CLX}
QGraphics, QControls, QForms, QDialogs, QExtCtrls, QStdCtrls, QComCtrls,
{$ELSE}
Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ComCtrls,
{$ENDIF}
Base, TeEngine, Series, TeeProcs, Chart, TeCanvas, TeeGDIPlus;
type
TPieMultiple = class(TBaseForm)
Series1: TPieSeries;
Series2: TPieSeries;
Series3: TPieSeries;
Series4: TPieSeries;
procedure FormCreate(Sender: TObject);
procedure Series1BeforeDrawValues(Sender: TObject);
procedure Series2BeforeDrawValues(Sender: TObject);
procedure Series3BeforeDrawValues(Sender: TObject);
procedure Series4BeforeDrawValues(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
implementation
{$IFNDEF CLX}
{$R *.DFM}
{$ELSE}
{$R *.xfm}
{$ENDIF}
procedure TPieMultiple.FormCreate(Sender: TObject);
begin
inherited;
Chart1.SeriesList.FillSampleValues(4);
Chart1.ApplyZOrder:=False;
Series1.EdgeStyle := edCurved;
Series2.EdgeStyle := edCurved;
Series3.EdgeStyle := edCurved;
Series4.EdgeStyle := edCurved;
end;
procedure TPieMultiple.Series1BeforeDrawValues(Sender: TObject);
begin
Chart1.ChartRect:=Rect(10,10,Chart1.Width div 2, Chart1.Height div 2);
end;
procedure TPieMultiple.Series2BeforeDrawValues(Sender: TObject);
begin
Chart1.ChartRect:=Rect(Chart1.Width div 2, 10, Chart1.Width, Chart1.Height div 2);
end;
procedure TPieMultiple.Series3BeforeDrawValues(Sender: TObject);
begin
Chart1.ChartRect:=Rect(10,Chart1.Height div 2,Chart1.Width div 2, Chart1.Height);
end;
procedure TPieMultiple.Series4BeforeDrawValues(Sender: TObject);
begin
Chart1.ChartRect:=Rect(Chart1.Width div 2, Chart1.Height div 2, Chart1.Width, Chart1.Height);
end;
initialization
RegisterClass(TPieMultiple);
end.
--
Best Regards,
Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
|
|
|
|
Posts:
75
Registered:
6/12/11
|
|
Hello,
Yeah i have got c++ files as well. I was asking for Tchart component complete documentation like each property of component and explanation for the same.
For example, when i add Tchart to my Form, customAxes and seriesGroups are showing under Chart1 and apart from that i am able to select EditChart option and able to add Series1 and select pie chart in that. not sure this is right way to add pie chart to Form or which property to select to show what.and what is meant by Axisvisible, AxisBehind, how can i add my own slices to pie chart etc.... these kind of documentation i am expecting.
Do you have that kind of documentation or how i should get started with these components?
There is an online version of the documentation here including "TeeChart for VCL/FMX Tutorials" and "TeeChart for VCL/FMX Library Reference".
And there's a (quite old) offline version "User Guide and Tutorials" at the "Additional Downloads" here.
--
Best Regards,
Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
|
|
|
|
Legend
|
|
Helpful Answer
(5 pts)
|
|
Correct Answer
(10 pts)
|
|
Connect with Us