Jump to content
Software FX Community

Re: Array problem when creating a chart


User (Legacy)

Recommended Posts

Uba,

Show some more code.

You say your array has numbers and dates? The AddArray will only take single dimension arrays.

From the help file:

"However, you can not pass multidimensional arrays to Chart FX. This means, if you create a matrix or a multidimensional array as nData(10,10) Chart FX will not know how to process this information. An error will occur."

Here is their example:

'Create the Chart FX Data provider array

Dim CfxArray As CfxDataArray

'nValues and nLegend are previously filled arrays

Dim nValues(10) As Integer

Dim nLegend(10) As Variant

'Add the nValues and nLegend arrays to the data provider

CfxArray.AddArray nValues

CfxArray.AddArray nLegend

'Let Chart FX take the information from the data provider

ChartFX1.GetExternalData CfxArray

Steve

uba <unnur@kveikir.is> wrote in message news:VDsh#kKqAHA.2592@sfxserver.softwarefx.com...

> Hi all,

>

> I'm having problems with creating a chart. I get an array from a com object

> and I add it to the CfxArray. Then I try calling

> chart.GetExternalData(CfxArray) but nothing happens, it just seems to be

> looping - no error messages.

> Does anyone know why my chart is not appearing? My array contains numbers

> and dates so it shouldn't be a problem creating a chart out of it.

>

> Many thanks,

>

> uba

>

>

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...