Jump to content
Software FX Community

Embedding Chart Data in the <object> tag


User (Legacy)

Recommended Posts

When you use the .NET client side control like this:

Response.Write (chart.GetHtmlTag (width, height, ".NET"));

You get an object tag with a reference to a temporary file on the server:

<object id="Chart1"

classid="/ChartFX6/Download/ChartFX.Internet.Client.dll#SoftwareFX.ChartFX.I

nternet.Client.Chart"

WIDTH="400px" HEIGHT="410px" >

<PARAM NAME="DataPath"

VALUE="/ChartFX6/Temp/CFT1210_0953423910.chw">

</object>

Is it possible to get the chart data embedded in the object tag? That would

save the browser a hit back to the server, and it would be a much better

implementation for web farms, since I wouldn't have to write the temp file

out to the disk. (I know there are other ways to eliminate the disk hit, but

they all involve generating the chart data a second time, and in my case,

it's almost as expensive as rendering the chart).

<object id="Chart1"

classid="/ChartFX6/Download/ChartFX.Internet.Client.dll#SoftwareFX.ChartFX.I

nternet.Client.Chart"

WIDTH="400px" HEIGHT="410px" >

<PARAM NAME="DataPath"

VALUE="/ChartFX6/Temp/CFT1210_0953423910.chw">

**** chart data goes here ****

</object>

Link to comment
Share on other sites

Take a look at the GetHtlmData method, it allows you to stream the chart

data and setting back to the client, you still require two hits, but the

first one does pretty much nothing except returns the object tag, the second

hit does all the work, populates the chart, etc.

The chart data and settings are binary by nature hence it can not be

embedded iside an HTML page.

Please refer to the GetHtmlData method documentation for more details.

The following articles also help:

Q6121006. Is there a way to prevent ChartFX.Net from storing files on the

sever?

Q6121034. Syntax for bitstreaming charts to avoid temporary files, gives you

some more help.

Q6121041. Using DrillDown capabilities in conjunction with the GetHtmlData

method (Bitstreaming)

--

FP

Software FX Support

"Jon Wagner" <jonwagner@hotmail.com> wrote in message

news:aoaj83FoCHA.500@webserver1.softwarefx.com...

> When you use the .NET client side control like this:

> Response.Write (chart.GetHtmlTag (width, height, ".NET"));

>

> You get an object tag with a reference to a temporary file on the server:

>

> <object id="Chart1"

>

>

classid="/ChartFX6/Download/ChartFX.Internet.Client.dll#SoftwareFX.ChartFX.I

> nternet.Client.Chart"

> WIDTH="400px" HEIGHT="410px" >

> <PARAM NAME="DataPath"

> VALUE="/ChartFX6/Temp/CFT1210_0953423910.chw">

> </object>

>

>

> Is it possible to get the chart data embedded in the object tag? That

would

> save the browser a hit back to the server, and it would be a much better

> implementation for web farms, since I wouldn't have to write the temp file

> out to the disk. (I know there are other ways to eliminate the disk hit,

but

> they all involve generating the chart data a second time, and in my case,

> it's almost as expensive as rendering the chart).

>

> <object id="Chart1"

>

>

classid="/ChartFX6/Download/ChartFX.Internet.Client.dll#SoftwareFX.ChartFX.I

> nternet.Client.Chart"

> WIDTH="400px" HEIGHT="410px" >

> <PARAM NAME="DataPath"

> VALUE="/ChartFX6/Temp/CFT1210_0953423910.chw">

>

> **** chart data goes here ****

> </object>

>

>

Link to comment
Share on other sites

I forgot to mention, in the Resource Center, there is a section called "Bit

Stream (No File Generation)" under "Special Features" that's also very

helpful.

--

FP

Software FX Support

"Jon Wagner" <jonwagner@hotmail.com> wrote in message

news:aoaj83FoCHA.500@webserver1.softwarefx.com...

> When you use the .NET client side control like this:

> Response.Write (chart.GetHtmlTag (width, height, ".NET"));

>

> You get an object tag with a reference to a temporary file on the server:

>

> <object id="Chart1"

>

>

classid="/ChartFX6/Download/ChartFX.Internet.Client.dll#SoftwareFX.ChartFX.I

> nternet.Client.Chart"

> WIDTH="400px" HEIGHT="410px" >

> <PARAM NAME="DataPath"

> VALUE="/ChartFX6/Temp/CFT1210_0953423910.chw">

> </object>

>

>

> Is it possible to get the chart data embedded in the object tag? That

would

> save the browser a hit back to the server, and it would be a much better

> implementation for web farms, since I wouldn't have to write the temp file

> out to the disk. (I know there are other ways to eliminate the disk hit,

but

> they all involve generating the chart data a second time, and in my case,

> it's almost as expensive as rendering the chart).

>

> <object id="Chart1"

>

>

classid="/ChartFX6/Download/ChartFX.Internet.Client.dll#SoftwareFX.ChartFX.I

> nternet.Client.Chart"

> WIDTH="400px" HEIGHT="410px" >

> <PARAM NAME="DataPath"

> VALUE="/ChartFX6/Temp/CFT1210_0953423910.chw">

>

> **** chart data goes here ****

> </object>

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...