Dlyttle

Caption Not Displaying Properly

Recommended Posts

I've got a strange problem with captions that started with Fusion Charts v3_2 that I don't remember ever seeing before in my work with any other version of Fusion Charts. Whether it's a Column3D chart or a MSColumn3D chart, the caption I use is truncated with three dots (...). Doesn't seem to matter how many characters the caption is either, the same thing happens. Here's an example of the XML code I'm using. In this example, the resultant displayed caption is "NetResult by Partner ..."

 

var strXML:String = "<chart showBorder='0' bgAlpha='0,0' palette='1' baseFontSize='12' baseFontColor='FFFFFF' formatNumberScale='1' decimals='3' forceDecimals='1' showToolTip='0' rotateValues='1' numberPrefix='$' caption='Net Result by Partner ($)'>";
//Add data from user input
strXML = strXML + "<categories>";
strXML = strXML + "<category label='" + dLabel[0] + "' />";
strXML = strXML + "<category label='" + dLabel[1] + "' />";
strXML = strXML + "<category label='" + dLabel[2] + "' />";
strXML = strXML + "<category label='" + dLabel[3] + "' />";
strXML = strXML + "<category label='" + dLabel[4] + "' />";
strXML = strXML + "</categories>";
strXML = strXML + "<dataset seriesName='Ret'>";
strXML = strXML + "<set value='" + d1Value[0] + "' />";
strXML = strXML + "<set value='" + d1Value[1] + "' />";
strXML = strXML + "<set value='" + d1Value[2] + "' />";
strXML = strXML + "<set value='" + d1Value[3] + "' />";
strXML = strXML + "<set value='" + d1Value[4] + "' />";
strXML = strXML + "</dataset>";
strXML = strXML + "<dataset seriesName='Man'>";
strXML = strXML + "<set value='" + d2Value[0] + "' />";
strXML = strXML + "<set value='" + d2Value[1] + "' />";
strXML = strXML + "<set value='" + d2Value[2] + "' />";
strXML = strXML + "<set value='" + d2Value[3] + "' />";
strXML = strXML + "<set value='" + d2Value[4] + "' />";
strXML = strXML + "</dataset>";
strXML = strXML + "<dataset seriesName='MWV'>";
strXML = strXML + "<set value='" + d3Value[0] + "' />";
strXML = strXML + "<set value='" + d3Value[1] + "' />";
strXML = strXML + "<set value='" + d3Value[2] + "' />";
strXML = strXML + "<set value='" + d3Value[3] + "' />";
strXML = strXML + "<set value='" + d3Value[4] + "' />";
strXML = strXML + "</dataset>";
strXML = strXML + "<styles><definition><style type='font' name='myValuesFont' color='000000'/></definition><application><apply toObject='DataValues' styles='myValuesFont' /></application></styles>";
strXML = strXML + "</chart>";

 

What am I missing, or what can I be doing wrong?

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your post.

 

Could you please send us the generated XML code to test it from our end?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites

Well, now I'm really confused! I did the following:

 

1) Stripped out only the absolutely essential code to create the charts from the application I have (which has well over 10,000 lines of action script coding in total, so it wouldn't do me or you any good to try and send you that!)

2) Replaced any variables in the creation of the XML string (converted to an XML object, of course) for the charts with fixed constants

3 Created a separate FLA with only the stripped out code and the combo box that selects which chart to create

 

... and it WORKED PROPERLY! :o

 

But what's really confusing is that the full version of the code is something I've used before successfully and simply repurposed for this app.

 

So, I guess my question is, being the designers of this software, you must hypothetically know under what conditions or circumstances your software would truncate the caption and replace the last three characters with dots (i.e., "...") ... What would that be?

 

It would be easier for me to "back in" to what might be causing it in my code by knowing the possible causes than the other way around.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Glad to know that you have managed to resolve your problem.

 

Happy FusionCharting!biggrin.gif

Share this post


Link to post
Share on other sites

I don't think you understand, Angshu ... I HAVE NOT resolved my problem!

 

Although I can make it work in a "lab" environment by isolating only the required code, it still doesn't answer why it's not working in my app as is.

 

Let me repeat my question from my last reply to you:

 

My question is, being the designers of this software, you must hypothetically know under what conditions or circumstances your software would truncate the caption and replace the last three characters with dots (i.e., "...") ... What would that be?

 

It would be easier for me to "back in" to what might be causing it in my code by knowing the possible causes than the other way around of sending you something that would take you a month of Sundays to analyze.

Share this post


Link to post
Share on other sites

I'm guessing that no further response from you means that you haven't got a clue as to what conditions or circumstances could result in your software truncating the last three characters of the caption and adding three dots ("...") in their place?

 

If that's the case, just say so and I'll just move on and come up with a workaround of some sort. I've wasted enough precious time on it already.

Edited by Dlyttle

Share this post


Link to post
Share on other sites
Guest Angshu

Hi.

 

Apologies for the delay in response.

 

This issue will be fixed in our next release of FusionCharts i.e v 3.2.2.

We are not able to commit you any exact timeline regarding the release, we will get back to you once there is any news from our end .

 

Thank you very much for your continued patience and patronage.

 

Hope you have a great day!

Share this post


Link to post
Share on other sites

Thanks for the response, Angshu. At least now I know what I've got to do in the meantime.

 

BTW ... since I'm a licensed owner (Developer's License) of the full Fusion Charts suite, will I automatically get the v3.2.2 upgrade?

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Could you please drop a mail to: [email protected] mentioning your orderID?

 

Please quote this forum thread along with your mail for our reference.

 

Looking forward to your mail.

Share this post


Link to post
Share on other sites

OK, Angshu ... I just sent the email you requested with my order number (I also attached a copy of the order acknowledgement I received from Fusion Charts at the time of my purchase showing what all I bought and the order number).

 

I'll wait to hear from you.

 

... Don

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks a lot.

 

We will get back to you ASAP.

 

Hope you have a great day!

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