Jump to content
Software FX Community

formatting, remove decimal places using Data Provider


User (Legacy)
 Share

Recommended Posts

I'm using the Data Provider to load my data into ChartFX via Arrays:

CODE SNIPPET:

'Use the CreateObject function to reference the Chart FX Data Provider

Set CfxArray = Server.CreateObject("CfxData.Array")

'Add the arrays of data to the data provider

' new information array

CfxArray.AddArray arrNew

'closed information array

CfxArray.AddArray arrClosed

'specially formatted date array

CfxArray.AddArray arrDates

All of my data hava the points labelled on the graph, however they are

all showing up with decimal places. I'm not passing any data with

decimals on some graphs, however other graphs, I have a mix and match of

decimal places and whole numbers. I would just like to remove the

decimal places from the data that are only whole numbers. Can anyone

help me? (Developing on Windows 2000/Visual InterDev ASP/VBScript sadly

targeting Netscape)

Regards,

John

Link to comment
Share on other sites

We use the settings from the Y axis to know the number of decimals to be

used on the point labels, unfortunately we do not analyze the data to see if

it does not require the decimals so you will have to set a fixed number of

decimals which will be used for all your points.

--

Regards

JC

Software FX Support

"John Wright" <jwright@sugar-land.oilfield.slb.com> wrote in message

news:3C67B743.DD194759@sugar-land.oilfield.slb.com...

I'm using the Data Provider to load my data into ChartFX via Arrays:

CODE SNIPPET:

'Use the CreateObject function to reference the Chart FX Data Provider

Set CfxArray = Server.CreateObject("CfxData.Array")

'Add the arrays of data to the data provider

' new information array

CfxArray.AddArray arrNew

'closed information array

CfxArray.AddArray arrClosed

'specially formatted date array

CfxArray.AddArray arrDates

All of my data hava the points labelled on the graph, however they are all

showing up with decimal places. I'm not passing any data with decimals on

some graphs, however other graphs, I have a mix and match of decimal places

and whole numbers. I would just like to remove the decimal places from the

data that are only whole numbers. Can anyone help me? (Developing on

Windows 2000/Visual InterDev ASP/VBScript sadly targeting Netscape)

Regards,

John

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...