Jump to content
Software FX Community

How can i suppress fractional portion of a number?


User (Legacy)

Recommended Posts

Hm,

before this question i did used this label format thingy with the design=

er =

and read this settings in the chart instance. But for some reason after =

this the whole number values of the chart did change in a completly wron=

g =

way. But will tomorrow try your suggestion.

Thank you so far :)

> Assign Decimals to zero:

>

> chart.AxisY.LabelsFormat.Decimals =3D 0;

>

> or

>

> chart.AxisY.DataFormat.Decimals =3D 0;

>

> The second option to affect only the data editor and tooltips, the fir=

st =

> to

> affect the axis labels.

>

Link to comment
Share on other sites

  • 2 weeks later...

FP,

is this possible also using the (dll version, MFC).

I tried

m_pChartFX->Axis->Item[AXIS_Y]->LabelsFormat->Decimals = 0;

m_pChartFX->Axis->Item[AXIS_Y]->DataFormat->Decimals = 0;

but it seem not to be working?

Thanks

Artan Dimnaku

"Ted" <Ted@gmx.li> wrote in message news:opr2ehbls5n4pxi2@localhost...

Hm,

before this question i did used this label format thingy with the designer

and read this settings in the chart instance. But for some reason after

this the whole number values of the chart did change in a completly wrong

way. But will tomorrow try your suggestion.

Thank you so far :)

> Assign Decimals to zero:

>

> chart.AxisY.LabelsFormat.Decimals = 0;

>

> or

>

> chart.AxisY.DataFormat.Decimals = 0;

>

> The second option to affect only the data editor and tooltips, the first

> to

> affect the axis labels.

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...