Jump to content
Software FX Community

Error in Chart1.OpenData() with Unknown Number of Points


User (Legacy)

Recommended Posts

Hi ..

I am using ChartFX for .Net trial version.

I am working on web project. I have seen 'Passing Data' section in ChartFX

Resource Center. In 'Using API' page, it is given that how to add values for

unknown no of points. See code :

chart1.OpenData(COD.Values, 1, COD.Unknown);

int j = 0;

while (Fetching Records)

{

chart1.Value[0, j] = Field1;

j++;

}

chart1.CloseData(COD.Values);

But i am getting some compilation error("The best overloaded method match

for

'SoftwareFX.ChartFX.Internet.Server.ChartCore.OpenData(SoftwareFX.ChartFX.CO

D, int, int)' has some invalid arguments") and error ("Argument '3': cannot

convert from 'SoftwareFX.ChartFX.COD' to 'int'"), when using above code

snipts.

Please reply ASAP.

--

Thanks & Regards,

Harjeet Singh Bhatia.

Link to comment
Share on other sites

You need a cast:

chart1.OpenData(COD.Values, 1, (int) COD.Unknown);

--

Francisco Padron

www.chartfx.com

"Harjeet Singh Bhatia" <harjeet.bhatia@opussoft.com> wrote in message

news:Enp7M3AlFHA.2860@webserver3.softwarefx.com...

> Hi ..

>

> I am using ChartFX for .Net trial version.

> I am working on web project. I have seen 'Passing Data' section in ChartFX

> Resource Center. In 'Using API' page, it is given that how to add values

> for

> unknown no of points. See code :

>

> chart1.OpenData(COD.Values, 1, COD.Unknown);

> int j = 0;

> while (Fetching Records)

> {

> chart1.Value[0, j] = Field1;

> j++;

> }

> chart1.CloseData(COD.Values);

>

> But i am getting some compilation error("The best overloaded method match

> for

> 'SoftwareFX.ChartFX.Internet.Server.ChartCore.OpenData(SoftwareFX.ChartFX.CO

> D, int, int)' has some invalid arguments") and error ("Argument '3':

> cannot

> convert from 'SoftwareFX.ChartFX.COD' to 'int'"), when using above code

> snipts.

>

> Please reply ASAP.

> --

> Thanks & Regards,

>

> Harjeet Singh Bhatia.

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...