Recommended Posts

Hello All,

 

I need to set max value of Y axis up to  100. I am setting it yAxisMaxValue=100. But it is not working.

 

Please help me to resolve this issue.

 

Thanks 

Ashish

 

 

post-45566-0-85467100-1400067732_thumb.png

Share this post


Link to post
Share on other sites

Hi,

     I have a chart where a use a fusion chart to compare two entities. But when one entity goes 100% the other goes 0% the max value in y axis tends to move from 110 from 100. The screenshot is attached.

Attaching the json data

 

{
    "chart": {
        "palette": "2",
        "caption": "PSI Comparison with previous year",
        "showlabels": "1",
        "showvalues": "0",
        "numbersuffix": "%",
        "showsum": "1",
        "decimals": "1",
    "forcedecimals":"1",
        "showborder": "1",
        "borderColor": "4F81BD",
        "borderThickness":"2",
        "borderAlpha":"60",
        "useroundedges": "1",
        "legendborderalpha": "0",
        "plotSpacePercent" : "0",
        "yAxisMinValue" : "0",
        "yAxisMaxValue" : "100",
        "xAxisMaxValue" : "100.000001"
    },
    "categories": [
        {
            "category": []
        }
    ],
    "dataset": []
}
 
 
Please advice

post-62759-0-02574200-1402490742_thumb.jpg

Share this post


Link to post
Share on other sites

Hi,

 

We are unable to replicate the issue.

 

Please find attached screen shot.

 

Can you please share your complete JSON data for testing purposes?

 

Also, please let us know the chart dimensions being used.

post-62559-0-24026000-1402558299_thumb.png

Share this post


Link to post
Share on other sites

{

  • "chart":{
    • "palette":"2",
    • "caption":"PSI Comparison with previous year",
    • "showlabels":"1",
    • "labeldisplay":"ROTATE",
    • "labelStep":"5",
    • "showvalues":"0",
    • "numbersuffix":"%",
    • "showsum":"1",
    • "decimals":"1",
    • "forcedecimals":"1",
    • "showborder":"1",
    • "borderColor":"4F81BD",
    • "borderThickness":"2",
    • "borderAlpha":"60",
    • "useroundedges":"1",
    • "legendborderalpha":"0",
    • "plotSpacePercent":"0",
    • "yAxisMinValue":"0",
    • "yAxisMaxValue":"100",
    • "xAxisMinValue":"20",
    • "xAxisMaxValue":"10"
    },
  • "categories":[
    1. {
      • "category":[
        1. {
          • "label":"12-Jun-2014"
          },
        2. {
          • "label":"12-Jun-2013"
          }
        ]
      }
    ],
  • "dataset":[
    1. {
      • "seriesname":"Completly satisfied",
      • "color":"A3CC52",
      • "showvalues":0,
      • "data":[
        1. {
          • "value":"66.59"
          },
        2. {
          • "value":"81.53"
          }
        ]
      },
    2. {
      • "seriesname":"Very satisfied",
      • "color":"88B188",
      • "showvalues":0,
      • "data":[
        1. {
          • "value":"25.65"
          },
        2. {
          • "value":"16.43"
          }
        ]
      },
    3. {
      • "seriesname":"Moderatly satisfied",
      • "color":"E6E65C",
      • "showvalues":0,
      • "data":[
        1. {
          • "value":"6.26"
          },
        2. {
          • "value":"1.91"
          }
        ]
      },
    4. {
      • "seriesname":"Slightly satisfied",
      • "color":"FF6600",
      • "showvalues":0,
      • "data":[
        1. {
          • "value":"1.49"
          },
        2. {
          • "value":"0.09"
          }
        ]
      },
    5. {
      • "seriesname":"Not satisfied",
      • "color":"D63333",
      • "showvalues":0,
      • "data":[
        1. {
          • "value":"0.00"
          },
        2. {
          • "value":"0.05"
          }
        ]
      }
    ]

}

Share this post


Link to post
Share on other sites

Hi,

 

Thank you for the JSON data.

 

When you add up the values for 12-Jun-2013 series, it adds upto 100.01 and that is why yAxisMaxValue definition is overridden.

If the sum value is more than 100 even by 0.001, then the charting engine will override the yAxisMaxValue set and sets the max value to a little higher value to accommodate space for the higher value data plot.

Hope this clarifies.

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