Lazarus

Programming => Graphics and Multimedia => TAChart => Topic started by: Arthurus on December 14, 2012, 09:33:32 am

Title: Scale logarithmic in TOpenHighLowClose.
Post by: Arthurus on December 14, 2012, 09:33:32 am
Hello

How to change the format on a scale logarithmic in Chart1OpenHighLowCloseSeries1 out price with 3 decimal places?

See: http://imageshack.us/a/img189/5930/repsolmal.jpg (http://imageshack.us/a/img189/5930/repsolmal.jpg)

Thank.
Title: Re: Scale logarithmic in TOpenHighLowClose.
Post by: Ask on December 14, 2012, 12:00:07 pm
You probably did not set AxisIndexY property.

See documantation (http://wiki.lazarus.freepascal.org/TAChart_documentation#Axis_transformations) and tutorial (http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_ListChartSource,_Logarithmic_Axis,_Fitting) to learn more.
Title: Re: Scale logarithmic in TOpenHighLowClose.
Post by: Arthurus on December 17, 2012, 08:05:04 pm
no way to put the values ​​well.
If I put style=smvalue, format changes to "%0:0.9g" automatically.
I need to format "#,##0.##0" or "%4.3n" with smvalue. But do not do it.
I leave it in decimal.
greetings.

-------------------------------------------------------------------
no hay manera de poner los valores bien.
Si pongo style=smvalue, format cambia a "%0:.9g" automáticamente
Necesito poner formato "#,##0.##0" o "%4.3n" con smvalue. Pero no sé hacerlo.(o no se puede).
Lo dejo en decimal.
Un saludo.
Title: Re: Scale logarithmic in TOpenHighLowClose.
Post by: Ask on December 18, 2012, 04:50:42 am
Quote
no way to put the values ​​well
First, is your previous problem solved?

Quote
I need to format "#,##0.##0" or "%4.3n" with smvalue
Set Marks.Format = '%0:4.3n'.
The Style will automatically change to smsCustom, which is fine.
Title: Re: Scale logarithmic in TOpenHighLowClose.
Post by: Arthurus on December 18, 2012, 09:59:54 am
Quote
First, is your previous problem solved?
Color price in TOpenHighLowCloseSeries? -> Yes.

Quote
Set Marks.Format = '%0:4.3n'.
The Style will automatically change to smsCustom, which is fine.

logarithmic scale: bad
http://imageshack.us/a/img405/1159/tefmal.jpg (http://imageshack.us/a/img405/1159/tefmal.jpg)
http://imageshack.us/a/img171/3304/itxmal.jpg (http://imageshack.us/a/img171/3304/itxmal.jpg)

scale Decimal: well:
http://imageshack.us/a/img12/7531/tefbien.jpg (http://imageshack.us/a/img12/7531/tefbien.jpg)
http://imageshack.us/a/img89/4382/itxbien.jpg (http://imageshack.us/a/img89/4382/itxbien.jpg)
Title: Re: Scale logarithmic in TOpenHighLowClose.
Post by: Ask on December 18, 2012, 11:02:45 am
Quote
logarithmic scale: bad
Did you set AxisIndexY according to my first reply in this topic?
Title: Re: Scale logarithmic in TOpenHighLowClose.
Post by: Arthurus on December 18, 2012, 03:25:46 pm
Quote
...AxisIndexY...
Ah!, yes....
In your first reply I had confused with marks.YIndex

Problem solved. Thanks you.


(PD/You can put also resolved 'Color price in TOpenHighLowCloseSeries'). Thanks again.
TinyPortal © 2005-2018