Jump to content
Software FX Community

Adding an array to a chart using JavaScript please respond someone!


User (Legacy)

Recommended Posts

Hello!

Sorry for the repost but I am sure someone must be able to help! Where have

you gone Software FX?

I need to create an array with, say, 10 numbers using Javascript and then

add this array to a chart. How do I do this? There is only an example in

ASP.

Secondly, is there a limit to the number of points that can be provided

using InlineData? For some reason, the chart below is being displayed with

3 series instead of 2

<OBJECT CLASSID="CLSID:21F49842-BFA9-11d2-A89C-00104B62BDDA")

TYPE="application/x-oleobject"

WIDTH=500 HEIGHT=800 ID="TestChart"

CODEBASE=/download/CfxIEAx.cab#Version=4,4,11,3>

<PARAM NAME="LICENSE" VALUE="/license/CfxIE.lic">

<PARAM NAME="InLineData" VALUE="Series">

<PARAM NAME="S0" VALUE="'14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362'">

<PARAM NAME="S1"

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

.4,25.5">

</OBJECT>

Please can someone respond to this and my other posts!

Cheers

Eric

Attachments.zip

Link to comment
Share on other sites

You will have to use our API (OpenDataEx, ValueEx and CloseData) to pass the

values directly to the chart, even though we do have a data provider that

reads data from arrays and we have tested it in an ASP page with a

javascript array you will not be able to easily use this component in a

client side HTML page.

>> Secondly, is there a limit to the number of points that can be provided

using InlineData?

No. There is no special limit.

>> For some reason, the chart below is being displayed with 3 series instead

of 2

We expect to have the same number of points in all series (we do support

hidden values), in your HTML S1 contains more numbers than S0, if you want

to fill the remaining values in S0 with hidden points you can add as many

separator characters (comma) as values as needed.

e.g.

<PARAM NAME="S0"

VALUE="14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362,,,,">

<PARAM NAME="S1"

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

.4,25.5">

--

Regards

JC

Software FX Support

"Eric Harris" <ericblahdeblah@hotmail.com> wrote in message

news:QpZOAKZECHA.1372@webserver1.softwarefx.com...

> Hello!

>

> Sorry for the repost but I am sure someone must be able to help! Where

have

> you gone Software FX?

>

> I need to create an array with, say, 10 numbers using Javascript and then

> add this array to a chart. How do I do this? There is only an example in

> ASP.

>

> Secondly, is there a limit to the number of points that can be provided

> using InlineData? For some reason, the chart below is being displayed

with

> 3 series instead of 2

>

> <OBJECT CLASSID="CLSID:21F49842-BFA9-11d2-A89C-00104B62BDDA")

> TYPE="application/x-oleobject"

> WIDTH=500 HEIGHT=800 ID="TestChart"

> CODEBASE=/download/CfxIEAx.cab#Version=4,4,11,3>

> <PARAM NAME="LICENSE" VALUE="/license/CfxIE.lic">

> <PARAM NAME="InLineData" VALUE="Series">

> <PARAM NAME="S0"

VALUE="'14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362'">

> <PARAM NAME="S1"

>

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

> .4,25.5">

> </OBJECT>

>

> Please can someone respond to this and my other posts!

>

> Cheers

>

> Eric

>

>

Attachments.zip

Link to comment
Share on other sites

Thanks for your reply

"Software FX Support" <support@softwarefx.com> wrote in message

news:B3HgnNjECHA.1324@webserver1.softwarefx.com...

> You will have to use our API (OpenDataEx, ValueEx and CloseData) to pass

the

>> Any chance of a code snippet? I tried this but just got random data

> values directly to the chart, even though we do have a data provider that

> reads data from arrays and we have tested it in an ASP page with a

> javascript array you will not be able to easily use this component in a

> client side HTML page.

>>The page is an ASP page not a client side ASP page, so isn't what I am

trying to do the same as what you tested?

>

> >> Secondly, is there a limit to the number of points that can be provided

> using InlineData?

>

> No. There is no special limit.

>

> >> For some reason, the chart below is being displayed with 3 series

instead

> of 2

>

> We expect to have the same number of points in all series (we do support

> hidden values), in your HTML S1 contains more numbers than S0, if you want

> to fill the remaining values in S0 with hidden points you can add as many

> separator characters (comma) as values as needed.

>

> Ok fair enough :)

> e.g.

>

> <PARAM NAME="S0"

> VALUE="14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362,,,,">

> <PARAM NAME="S1"

>

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

> .4,25.5">

>

> --

> Regards

>

> JC

> Software FX Support

>

> "Eric Harris" <ericblahdeblah@hotmail.com> wrote in message

> news:QpZOAKZECHA.1372@webserver1.softwarefx.com...

> > Hello!

> >

> > Sorry for the repost but I am sure someone must be able to help! Where

> have

> > you gone Software FX?

> >

> > I need to create an array with, say, 10 numbers using Javascript and

then

> > add this array to a chart. How do I do this? There is only an example

in

> > ASP.

> >

> > Secondly, is there a limit to the number of points that can be provided

> > using InlineData? For some reason, the chart below is being displayed

> with

> > 3 series instead of 2

> >

> > <OBJECT CLASSID="CLSID:21F49842-BFA9-11d2-A89C-00104B62BDDA")

> > TYPE="application/x-oleobject"

> > WIDTH=500 HEIGHT=800 ID="TestChart"

> > CODEBASE=/download/CfxIEAx.cab#Version=4,4,11,3>

> > <PARAM NAME="LICENSE" VALUE="/license/CfxIE.lic">

> > <PARAM NAME="InLineData" VALUE="Series">

> > <PARAM NAME="S0"

> VALUE="'14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362'">

> > <PARAM NAME="S1"

> >

>

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

> > .4,25.5">

> > </OBJECT>

> >

> > Please can someone respond to this and my other posts!

> >

> > Cheers

> >

> > Eric

> >

> >

>

>

Attachments.zip

Link to comment
Share on other sites

>> The page is an ASP page not a client side ASP page, so isn't what I am

>> trying to do the same as what you tested?

When we mean ASP we really mean "Creating and handling a chart server side

in an ASP page". What you are doing (even though your page is an ASP page)

is from the ChartFX point of view CLIENT SIDE since you are delaying the

creation of the chart to the time Internet Explorer parses your page, this

OBJECT tag you are writing will not be processed in any way by the ASP

engine. If you look at all of our samples you will see that we create the

charts on the server - using code such as

Server.CreateObject("ChartFX.WebServer") - and change the chart data and

properties on the server using ASP code.

--

Regards

JC

Software FX Support

"Eric Harris" <ericblahdeblah@hotmail.com> wrote in message

news:zVBy6ejECHA.1324@webserver1.softwarefx.com...

> Thanks for your reply

>

>

> "Software FX Support" <support@softwarefx.com> wrote in message

> news:B3HgnNjECHA.1324@webserver1.softwarefx.com...

> > You will have to use our API (OpenDataEx, ValueEx and CloseData) to pass

> the

>

> >> Any chance of a code snippet? I tried this but just got random data

>

> > values directly to the chart, even though we do have a data provider

that

> > reads data from arrays and we have tested it in an ASP page with a

> > javascript array you will not be able to easily use this component in a

> > client side HTML page.

>

> >>The page is an ASP page not a client side ASP page, so isn't what I am

> trying to do the same as what you tested?

>

> >

> > >> Secondly, is there a limit to the number of points that can be

provided

> > using InlineData?

> >

> > No. There is no special limit.

> >

> > >> For some reason, the chart below is being displayed with 3 series

> instead

> > of 2

> >

> > We expect to have the same number of points in all series (we do support

> > hidden values), in your HTML S1 contains more numbers than S0, if you

want

> > to fill the remaining values in S0 with hidden points you can add as

many

> > separator characters (comma) as values as needed.

> >

>

> > Ok fair enough :)

>

> > e.g.

> >

> > <PARAM NAME="S0"

> > VALUE="14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362,,,,">

> > <PARAM NAME="S1"

> >

>

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

> > .4,25.5">

> >

> > --

> > Regards

> >

> > JC

> > Software FX Support

> >

> > "Eric Harris" <ericblahdeblah@hotmail.com> wrote in message

> > news:QpZOAKZECHA.1372@webserver1.softwarefx.com...

> > > Hello!

> > >

> > > Sorry for the repost but I am sure someone must be able to help!

Where

> > have

> > > you gone Software FX?

> > >

> > > I need to create an array with, say, 10 numbers using Javascript and

> then

> > > add this array to a chart. How do I do this? There is only an

example

> in

> > > ASP.

> > >

> > > Secondly, is there a limit to the number of points that can be

provided

> > > using InlineData? For some reason, the chart below is being displayed

> > with

> > > 3 series instead of 2

> > >

> > > <OBJECT CLASSID="CLSID:21F49842-BFA9-11d2-A89C-00104B62BDDA")

> > > TYPE="application/x-oleobject"

> > > WIDTH=500 HEIGHT=800 ID="TestChart"

> > > CODEBASE=/download/CfxIEAx.cab#Version=4,4,11,3>

> > > <PARAM NAME="LICENSE" VALUE="/license/CfxIE.lic">

> > > <PARAM NAME="InLineData" VALUE="Series">

> > > <PARAM NAME="S0"

> > VALUE="'14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362'">

> > > <PARAM NAME="S1"

> > >

> >

>

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

> > > .4,25.5">

> > > </OBJECT>

> > >

> > > Please can someone respond to this and my other posts!

> > >

> > > Cheers

> > >

> > > Eric

> > >

> > >

> >

> >

>

>

post-2106-139223895663_thumb.png

Link to comment
Share on other sites

Thanks for clarifying this :)

Please can you give me a very small snippet of using the opendataex method

of getting data into my chart using javascript?

Cheers

Eric

"Software FX Support" <support@softwarefx.com> wrote in message

news:1kHy#3jECHA.2868@webserver1.softwarefx.com...

> >> The page is an ASP page not a client side ASP page, so isn't what I am

> >> trying to do the same as what you tested?

>

> When we mean ASP we really mean "Creating and handling a chart server side

> in an ASP page". What you are doing (even though your page is an ASP page)

> is from the ChartFX point of view CLIENT SIDE since you are delaying the

> creation of the chart to the time Internet Explorer parses your page, this

> OBJECT tag you are writing will not be processed in any way by the ASP

> engine. If you look at all of our samples you will see that we create the

> charts on the server - using code such as

> Server.CreateObject("ChartFX.WebServer") - and change the chart data and

> properties on the server using ASP code.

>

> --

> Regards

>

> JC

> Software FX Support

>

> "Eric Harris" <ericblahdeblah@hotmail.com> wrote in message

> news:zVBy6ejECHA.1324@webserver1.softwarefx.com...

> > Thanks for your reply

> >

> >

> > "Software FX Support" <support@softwarefx.com> wrote in message

> > news:B3HgnNjECHA.1324@webserver1.softwarefx.com...

> > > You will have to use our API (OpenDataEx, ValueEx and CloseData) to

pass

> > the

> >

> > >> Any chance of a code snippet? I tried this but just got random data

> >

> > > values directly to the chart, even though we do have a data provider

> that

> > > reads data from arrays and we have tested it in an ASP page with a

> > > javascript array you will not be able to easily use this component in

a

> > > client side HTML page.

> >

> > >>The page is an ASP page not a client side ASP page, so isn't what I am

> > trying to do the same as what you tested?

> >

> > >

> > > >> Secondly, is there a limit to the number of points that can be

> provided

> > > using InlineData?

> > >

> > > No. There is no special limit.

> > >

> > > >> For some reason, the chart below is being displayed with 3 series

> > instead

> > > of 2

> > >

> > > We expect to have the same number of points in all series (we do

support

> > > hidden values), in your HTML S1 contains more numbers than S0, if you

> want

> > > to fill the remaining values in S0 with hidden points you can add as

> many

> > > separator characters (comma) as values as needed.

> > >

> >

> > > Ok fair enough :)

> >

> > > e.g.

> > >

> > > <PARAM NAME="S0"

> > > VALUE="14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362,,,,">

> > > <PARAM NAME="S1"

> > >

> >

>

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

> > > .4,25.5">

> > >

> > > --

> > > Regards

> > >

> > > JC

> > > Software FX Support

> > >

> > > "Eric Harris" <ericblahdeblah@hotmail.com> wrote in message

> > > news:QpZOAKZECHA.1372@webserver1.softwarefx.com...

> > > > Hello!

> > > >

> > > > Sorry for the repost but I am sure someone must be able to help!

> Where

> > > have

> > > > you gone Software FX?

> > > >

> > > > I need to create an array with, say, 10 numbers using Javascript and

> > then

> > > > add this array to a chart. How do I do this? There is only an

> example

> > in

> > > > ASP.

> > > >

> > > > Secondly, is there a limit to the number of points that can be

> provided

> > > > using InlineData? For some reason, the chart below is being

displayed

> > > with

> > > > 3 series instead of 2

> > > >

> > > > <OBJECT CLASSID="CLSID:21F49842-BFA9-11d2-A89C-00104B62BDDA")

> > > > TYPE="application/x-oleobject"

> > > > WIDTH=500 HEIGHT=800 ID="TestChart"

> > > > CODEBASE=/download/CfxIEAx.cab#Version=4,4,11,3>

> > > > <PARAM NAME="LICENSE" VALUE="/license/CfxIE.lic">

> > > > <PARAM NAME="InLineData" VALUE="Series">

> > > > <PARAM NAME="S0"

> > > VALUE="'14.7,31,353,13.8,338,14.4,31.6,344,13.9,30,362'">

> > > > <PARAM NAME="S1"

> > > >

> > >

> >

>

VALUE="12.8,26.6,146.7,13.2,27.2,147,12.2,12.2,16.6,135.8,12.6,17.3,134.8,12

> > > > .4,25.5">

> > > > </OBJECT>

> > > >

> > > > Please can someone respond to this and my other posts!

> > > >

> > > > Cheers

> > > >

> > > > Eric

> > > >

> > > >

> > >

> > >

> >

> >

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...