Jump to content
Software FX Community

formatting, remove decimal places using Data Provider


User (Legacy)

Recommended Posts

Posted

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

Posted

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

Archived

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

×
×
  • Create New...