Search found 9 matches

by FHG_AST
Wed Jul 21, 2010 6:42 am
Forum: VCL
Topic: Problem with Axislabel
Replies: 3
Views: 4220

Re: Problem with Axislabel

Is there another posibility to change the labels on the left axis between the value is read from the dataset and the display on the screen wwith the use of talValue?
by FHG_AST
Tue Jul 20, 2010 9:03 am
Forum: VCL
Topic: Problem with Axislabel
Replies: 3
Views: 4220

Problem with Axislabel

Hi@All I have build a unit conversion componenten that changes the labels of the chartaxis so that I can switch from meters to millimeters or feet. I do this unit conversion in the GetAxisLabel function like this Procedure TUnitconv.GetAxisLabel(Sender: TChartAxis; Series: TChartseries; ValueIndex: ...
by FHG_AST
Wed May 06, 2009 11:51 am
Forum: VCL
Topic: Unit Conversion in teechart?
Replies: 12
Views: 9035

YES!!!
Thats it. It works.
Thank you.
by FHG_AST
Wed May 06, 2009 7:53 am
Forum: VCL
Topic: Unit Conversion in teechart?
Replies: 12
Views: 9035

Hi Yeray. I know how to set the title caption but I need the connection from TDatabase.TField-> TChartseries->TChartaxis I have chart with 4 TFaslineseries and each has a customaxis. But which of them is Chart[0] and Chart[1] ... Chart[XXX]. In des Editdialog I have the Series "Verbrauch" Assigned t...
by FHG_AST
Tue May 05, 2009 1:38 pm
Forum: VCL
Topic: Unit Conversion in teechart?
Replies: 12
Views: 9035

Yes, I know but I need to set the title caption (including the unit) of the axis as the same of the datafield.Displaylabel of the associated Series. This means in the TField.Displaylabel is a string like Diameter [%s] and I want to convert it into Diameter [mm] and set as the chartaxis.title.caption...
by FHG_AST
Tue May 05, 2009 12:44 pm
Forum: VCL
Topic: Unit Conversion in teechart?
Replies: 12
Views: 9035

Well it works fine if I set the lablestyle to talText.

But I habe an addition question. How can I get the axes associated with the series at runtime?
by FHG_AST
Mon May 04, 2009 12:51 pm
Forum: VCL
Topic: Unit Conversion in teechart?
Replies: 12
Views: 9035

Ok I tried to use this code but I have a problem. I have a chart with multiple axes and each valuesource has a different unit conversion factor dependig on the field in the database. I can get the unit conversion factor from the Tag of the field in the attached dataset. So my idea is to get the data...
by FHG_AST
Tue Apr 28, 2009 1:49 pm
Forum: VCL
Topic: Unit Conversion in teechart?
Replies: 12
Views: 9035

Hi Yeray. The third option sounds for me as the most suitable because I have implemented an object (TunitConv) which parses each form for datasets and changes the onGetText function of the TFloatfields in them. So it is easy to add this functionality for the onGetAxisLabels and OnGetSeriesMarks of T...
by FHG_AST
Tue Apr 28, 2009 11:14 am
Forum: VCL
Topic: Unit Conversion in teechart?
Replies: 12
Views: 9035

Unit Conversion in teechart?

Hi@All I need to convert untis in teechart. In my database I have stored all values for heights in Meters. To convert them and display them as inches or feets I use the Delphi TField.OnGetText function. In this function the float values from the database where converted and displayed as strings in t...