Solved

Change dbChart Series programmatically

Posted on 2006-07-04
2
1,151 Views
Last Modified: 2012-06-27
Dear Experts,

I need example code to show me how to change a TDBChart's Series for example from
TLineSeries to TFastLineSeries.

Thanks in advance!
0
Comment
Question by:Marius0188
2 Comments
 
LVL 11

Accepted Solution

by:
calinutz earned 125 total points
Comment Utility
As simple as this....

procedure TForm1.Button2Click(Sender: TObject);
var s: TChartSeries;
begin
s:=DBChart1.Series[0];
ChangeSeriesType( s, TFastLineSeries);
DBChart1.Refresh;
end;


Regards
0
 

Author Comment

by:Marius0188
Comment Utility
Hi there,

Thanks the code seem to work.
I have a couple of TLineSeries charts.

So what I do is looping through all of them and then use your
code to change the SeriesType accordingly.

But one problem I experience though.
When changing the lineseries type it also change the color of all Series' to yellow.
I need it to remember my chart series color.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now