I would like to create a multi-series chart in a ProfoundUI screen, for example, display sales and revenue by month.
I have looked at the Fusion documentation, and created a dummy XML file from their example and placed this in /profoundui/userdata, then pointed "chart url" to this file. I have also copy/pasted this into the "chart xml" property, but neither are showing any results.
I'd appreciate any suggestions ....
Cheers,
Paul
Charts
-
- Profound User
- Posts: 39
- Joined: Mon Aug 29, 2011 10:53 pm
- First Name: Paul
- Last Name: Foster
- Company Name: GRI Group Ltd
- Country: Hong Kong
- Location: Hong Kong
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Charts
Ahh, my mistake was that I forgot to select a multi-series chart. (I haven't done charts in awhile and am a little bit rusty!)
Perhaps you made the same mistake? There are differnet chart types for regular and multi-series charts. To get started, take a look at the profoundui/proddata/charts subdirectory of your IFS. You should see something like this:
The chart names that begin with "MS" are multi-series charts.
When you set up your chart properties, you need to use the filename of a multi-series chart, but without the .swf extension. To do that, you need to first select "Other" as your chart type:
Now that you've done that, you can type the name of the file (without the .swf) of the chart type you wish to use: So now that I've selected a multi-series chart, I can set my chart URL and it shoudl work.
Or better yet, for a dynamic chart, use the "chart xml" property, and bind it to a large field. Then, build the XML string in that field and send it from your RPG program -- that makes it easier to set up all the values from your databases...
Perhaps you made the same mistake? There are differnet chart types for regular and multi-series charts. To get started, take a look at the profoundui/proddata/charts subdirectory of your IFS. You should see something like this:
Code: Select all
WRKLNK '/www/profoundui/htdocs/profoundui/proddata/charts/*'
When you set up your chart properties, you need to use the filename of a multi-series chart, but without the .swf extension. To do that, you need to first select "Other" as your chart type:
Now that you've done that, you can type the name of the file (without the .swf) of the chart type you wish to use: So now that I've selected a multi-series chart, I can set my chart URL and it shoudl work.
Or better yet, for a dynamic chart, use the "chart xml" property, and bind it to a large field. Then, build the XML string in that field and send it from your RPG program -- that makes it easier to set up all the values from your databases...
-
- Profound User
- Posts: 39
- Joined: Mon Aug 29, 2011 10:53 pm
- First Name: Paul
- Last Name: Foster
- Company Name: GRI Group Ltd
- Country: Hong Kong
- Location: Hong Kong
- Contact:
Re: Charts
Nice one Scott, works a treat! I think you're right, building the xml as a bound variable in the RPG is the best option.
Thanks,
Paul
Thanks,
Paul
-
- Profound User
- Posts: 64
- Joined: Thu Aug 04, 2011 4:53 am
- First Name: Karl
- Last Name: Fritz
- Company Name: Logic IT Services
- Address 1: Fluhgasse 141
- City: Laufenburg
- Zip / Postal Code: 5080
- Country: Switzerland
- Location: Switzerland
- Contact:
Re: Charts
Scott,
Thanks, for this post - very interesting. Only a small question: Beginning with V6R1 it's possible to define strings up to 16 MB. How can i accomplish this, when the input length of the bound field allows max. 99999 characters? (means for a XXXXL xml/json string or other purposes)
Thanks and take care.
Karl
Thanks, for this post - very interesting. Only a small question: Beginning with V6R1 it's possible to define strings up to 16 MB. How can i accomplish this, when the input length of the bound field allows max. 99999 characters? (means for a XXXXL xml/json string or other purposes)
Thanks and take care.
Karl
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Charts
While RPG allows fields as large as 16mb, DDS does not. A bound field is creating a field for DDS (not RPG directly.) So we must abide by DDSs rules.kfritz wrote:Thanks, for this post - very interesting. Only a small question: Beginning with V6R1 it's possible to define strings up to 16 MB. How can i accomplish this, when the input length of the bound field allows max. 99999 characters? (means for a XXXXL xml/json string or other purposes)
Who is online
Users browsing this forum: No registered users and 3 guests