Primo Dang

Label "undefined" When There's Only One Category In Scrollcombidy2D

Recommended Posts

In my company, we are using version 3.3.1, release 19520.
 
I have a Scroll Combination 2D (Dual Y) Chart with dinamically generated data. When the chart has only one category, the category label is shown as 'undefined'. If another category is added to the XML (even if the second category has no label and no set data), the label appears normally.
 
This didn't happen in the previous version we were using (3.2.4, release 8565).
 
The chart is being created like this:

var myChart = new FusionCharts("../pluginPath/ScrollCombiDY2D.swf", "chartId", 1518, 244, 0, 1, "FFFFFF", "noScale", "EN", "0", "1");
chart.setDataXML(data);
chart.render(myDiv);

This is the XML loaded into the data variable:

<chart 
    caption='Chart' 
    PYAxisName='Value 1'  
    SYAxisName='Value 2'  
    labelDisplay='Rotate'
    slantLabels='1'
    useEllipsesWhenOverflow='0'
    showAlternateHGridColor='0'
    showvalues='0'
    decimals="1"
    decimalSeparator=','
    inDecimalSeparator=","
    sDecimals="2"
    snumberSuffix='%'
    numVisiblePlot='10' 
    baseFontColor='000000' 
    canvasBorderColor='999999'
    showLimits='0'
    bgColor='FFFFFF'
    showBorder='0'
    PYAxisMinValue='0' 
    PYAxisMaxValue='12'  
    SYAxisMinValue='0' 
    SYAxisMaxValue='120' 
    legendPosition ='right'
    numdivlines='5'  
> 
 
   <categories>
        <category label='Category 1' />
   </categories>

   <dataset seriesName='Value 1' color="399E38">
        <set value='6,63' tooltext="Category 1{br}Value 1: 6,63{br}Value 2: 91,53%" />
   </dataset> 

   <dataset seriesName='Value 2' parentYAxis='S' color="006CAD" renderAs="LINE" >
        <set value='91,53%' tooltext="Category 1{br}Value 1: 6,63{br}Value 2: 91,53%" />
   </dataset>
</chart>
 

 
I attached the resulting charts for:

  • 2 filled-out categories (correct-labels.png);
  • 1 filled-out category and 1 empty category (empty-label;png); and
  • 1 category (undefined-category.png)

My company's clients are complaining about the undefined label cases, so please let me know if there is a solution available as soon as possible.
 
Thanks is advance!

post-42607-0-58669400-1366914889_thumb.png

post-42607-0-45433800-1366914892_thumb.png

post-42607-0-96416000-1366914895_thumb.png

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

Welcome to FusionCharts Forum!

 

We are able to replicate this issue and we are looking into this.

As a work-around can you please remove the attribute useEllipsesWhenOverflow from the XML? and try once again?

 

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Primo,

 

Recently, We a have released a new version of FusionCharts i.e., FusionCharts XT v3.3.1 Service Release 3.

 

And this bug has been fixed in this version. (Label "undefined" When There's Only One Category In Scrollcombidy2D)

 

Can you please try using latest version?

 

You can download the trial copy from here: http://www.fusioncharts.com/download/trials/

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