Jump to content
Software FX Community

How can i suppress fractional portion of a number?


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...