Sign in to follow this  
tvasea

Sharepoint usage

Recommended Posts

Hi,

 

 

 

I'm trying to use FusionCharts from sharepoint using and external page for data.

 

 

 

The Sharepoint it's displaying the chart ok when I have this code

 

 

 

 

 

 

 

 

<div

 

id='FactorySumDiv'

 

align='center'>

 

 

Chart.

 

 

</div>

 

<script

 

type="text/javascript">

 

var chart_FactorySum =

 

new FusionCharts("_layouts/FusionCharts/FCF_Pie3D.swf",

 

"FactorySum",

 

"650",

 

"450",

 

"0",

 

"0");

 

chart_FactorySum.setDataXML("<graph

 

caption='Factory Output report' subCaption='By Quantity' decimalPrecision='0'

 

showNames='1' numberSuffix=' Units' pieSliceDepth='30' formatNumberScale='0'><set

 

name='Factory 1' value='644' /><set name='Factory 2' value='2644' /><set

 

name='Factory 3' value='1252' /></graph>");

 

chart_FactorySum.render("FactorySumDiv");

 

</script>

 

 

 

 

 

 

 

 

but not when

 

 

 

 

 

<div

 

id='FactorySumDiv'

 

align='center'>

 

Chart.

 

</div>

 

<script type="text/javascript">var chart_FactorySum =

 

new FusionCharts("_layouts/FusionCharts/FCF_Pie3D.swf","FactorySum", "650",

 

"450",

 

"0",

 

"0");chart_FactorySum.setDataURL("http://11.21.21.21:100/piedata.aspx");

 

chart_FactorySum.render("FactorySumDiv");

 

</script>

 

 

 

 

I get "Error in loading Data"

 

 

 

 

 

If I run the url in browser and view source

 

I get one line with

 

 

 

 

<graph

 

caption='Factory

 

Output report'

 

subCaption='By Quantity'

 

decimalPrecision='0'

 

showNames='1'

 

numberSuffix='

 

Units' pieSliceDepth='30'formatNumberScale='0'><setname='Factory

 

1' value='644'/><setname='Factory

 

2' value='2644'/><setname='Factory

 

3' value='1252'

 

/></graph>

 

 

 

 

(It's a valid XML)

 

 

 

Thanks

Edited by Guest

Share this post


Link to post
Share on other sites

Problem solved

 

Solution

 

 

 

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

 

codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"

 

width="600" height="400" id="Column3D" >

 

 

<param name="movie" value="_layouts/FusionCharts/FCF_Pie3D.swf" />

 

 

<param name="FlashVars" value="&chartWidth=600&chartHeight=400&DataURL=http://11.21.21.21:100/piedata.aspx">

 

 

</object>

 

 

 

 

 

 

 

 

 

 

 

So...

 

I wanted to display charts in Sharepoint , grabbing data from an ERP using some asp.net pages

 

 

 

Thanks

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello Tvasea,

 

We proudly announce the release of FusionCharts for SharePoint in beta. FusionCharts for SharePoint helps you create interactive & data-driven charts in SharePoint, without having to write a line of code. The charts are created using a wizard and can connect to various data sources such as SharePoint Lists, CSV, MS SQL, Oracle, Excel & BDC. You can add drill-down and export capabilities to each chart and configure both cosmetic and functional aspects.

 

 

You can download the fully-functional version from www.fusioncharts.com/sharepoint - we would love to have your feedback on this.

 

Please post your suggestions and any bugs as replies to the forum thread at:

FusionCharts for SharePoint beta impression

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this