question about FusionCharts

I am interested in implementing charts with FusionCharts using ISC.
but, i couldn’t find anything about them in SmartClient reference.

What’s New in 5.7/5.7.1
chart interface and FusionChart implementation, with ListGrid and CubeGrid integration

i have seen above at readme file, but there is nothing about FusionCharts in reference applied.

How can i get informations about implementation with FusionCharts using ISC, and what do i need to do it?

Not sure how you didn’t find it, try this search for chart in the 5.7.1 reference, it hits about 20 pieces of doc..

thanks for your response.

i have seen results to search in reference. but i think it’s very insufficient to develop some charts.

i think some developers need more information about isc.FusionChart class to make charts.

for example, maybe… that’s toturials or sample code even if it’s simple.
i think isc.FusionChart class is wrapping FusionChart class well.
but it’s difficult to learn how to use isc.FusionChart class with only references supplied

can i get simple code to show how to use isc.FusionChart class.


more question…

/isomorphic/system/reference/SmartClient_Explorer.html#gridCharting

i writed simple jsp file included js code used above and it was in “[isomorphic]/examples/”. but it wasn’t work.
why doesn’t it work like sample application? (javascript code error)

In addition to the examples showing charts creating from Grids, there are a couple of examples of direct construction here.

There’s no way to tell what might have gone wrong copying the chart example to a separate file. You would need to post your code for anyone to be able to help with that.

js code does not have any FusionChart configurations.

In the example js code, there is no fusionchart config or any URL where the swf file is located.

How does it works??? Anyone knows, please update.

Thanks.

It’s based on fusionChart.chartsBaseURL.

The docs are searchable and that is the second hit for “chart” - please make good use of the search feature.

How do I create an instance of FusionChart?

When i do this

isc.FusionChart.create({
chartsBaseURL: “FusionCharts/FCF_Bar2D.swf”
});

I get an JS error, ‘isc.FusionChart’ is null or not an object.

You need to load the Analytics module. If you are using <SCRIPT SRC=> tags directly to load SmartClient, you just need another, pointing to ISC_Analytics.js in the same directory as the other modules.

If you are using the loadISCTag, add “Analytics” to the includeModules attribute of the tag.

Still not loading FusionChart, any sample code is preferred.

<HTML>
<HEAD>
<TITLE>Dashboard</TITLE>
<SCRIPT>var isomorphicDir=“isomorphic/”;</SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=isomorphic/skins/SmartClient/load_skin.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Analytics.js></SCRIPT>

</HEAD>
<BODY topmargin=“0” leftmargin=“0” bgcolor=“DAE6F2”>
<script>

				isc.FusionChart.create({												chartsBaseURL: "FusionCharts/FCF_Bar2D.swf"
				});

</script>
</BODY>
</HTML>

Still it says

isc.FusionChart has no properties
[Break on this error] isc.FusionChart.create({

Sorry, you are also missing the PluginBridges module a correct set of includes is:

		<SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT>
		<SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
		<SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT>
		<SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT>
		<SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT>
		<SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
		<SCRIPT SRC=isomorphic/system/modules/ISC_PluginBridges.js></SCRIPT>
		<SCRIPT SRC=isomorphic/system/modules/ISC_Analytics.js></SCRIPT>
		<SCRIPT SRC=isomorphic/skins/SmartClient/load_skin.js></SCRIPT>

Awesome, it worked.

Thanks for pointing out the missing module.

question about FusionCharts

I have done exactly whathas been suggested here. But simple is not working for me.

isc.FusionChart.create({
chartsBaseURL: "FusionCharts/FCF_Bar2D.swf"
});

Although the gridChart example provided in docs is working fine when I write a similar code under templates, chart is not displayed.

Can Adminitrator help me to make this work.

@gshahri Doing exactly what has been mentioned here obviously led to success :slight_smile:

Your relative URL is probably wrong. Use Firebug to see if you’ve got 404s or similar, and very very carefully go over the preceding information.

It has a bunch of docs, but not a single example. I can’t figure out how to load data into the graph.

my code is the following:

derivedInfoGraph1Defaults: {
_constructor: isc.FusionChart,
autoParent: “derivedInfoGraphPanel”,
chartsBaseURL: “FusionCharts/FCF_Bar2D.swf”,
width:“300”,
height: “200”
}

How do I load data into it? There is nothing even remotely helpful in the docs

There are multiple samples under Chart.data. If you need yet more, there are several in the Feature Explorer in recent nightlies. You also should be not be using FusionChart unless you plan not to support mobile.

I might be blind, but on the Chart page all the examples are for isc.Chart only - there is nothing for isc.FusionChart

Particularly, Im interested in the following:

  • how to dynamically reload data of the chart
  • how to disable animation (and what is the list of all available properties?)

See the docs: Chart is an interface supported by FusionChart and FacetChart. The same code works by simple changing “Chart” to either “FusionChart” or “FacetChart”.

Once again, if you need them, there are additional charting examples in the latest nightly builds.

I got about the interface, but it’s very unclear how to turn animation off, how to get rid of the legend, etc - none of this is covered

Could you provide me a link to those examples please? As the search only shows SmartGWT nightly builds, which I believe is not what Im looking for

All nightly builds are at smartclient.com/builds.

There is no need to disable animation with FacetChart. FacetChart supports forcing the legend off as of the next nightly build (showLegend:false).