Sign in to follow this  
gary.brain

Xformatnumberscale On Scatter.

Recommended Posts

Hi, in 3.2.2 it says that you can now use xFormatNumberScale or yFormatNumberScale for specific axis.

 

I have given this ago but it seems to work on the correct axis but the calculations are not being performed.

 

JSON Data.

 

{

"chart": {

"xFormatNumberScale":"1","xDefaultNumberScale":"bits","xNumberScaleValue":"8,1024,1024,1024,1024","xNumberScaleUnit":"bytes,KB,MB,GB,TB",

"bgColor":"FFFFFF",

"canvasBgColor":"FFFFFF",

"showBorder":"0",

"bgImage":"/images/background_logo3.png",

"bgImageScale":"50",

"yaxisname": "CPU %","yaxisminvalue": "0","yaxismaxvalue": "100",

"xaxisname": "http:client-bytes",

"showlegend": "1",

"shownames": "1",

"drawQuadrant": "1", "quadrantLabelTR":"High CPU / High Bytes",

"quadrantLabelTL":"High CPU / Low Bytes",

"quadrantYVal":"70",

"xaxismaxvalue": "4976000000",

"quadrantXVal": "4976000000",

"quadrantLineThickness": "1","quadrantLineColor":"3300ff"

},

"dataset": [

{

"id": "DS1",

"seriesname": "test1",

"plotborderthickness": "0",

"showplotborder": "1",

"color": "003300",

"data": [ { "x": "5909", "y": "60" },{ "x": "4383", "y": "62" },{ "x": "4308", "y": "63" } ]

},

{

"id": "DS2",

"seriesname": "test2",

"plotborderthickness": "0",

"showplotborder": "1",

"color": "0066cc",

"data": [ { "x": "175476", "y": "20" },{ "x": "117377", "y": "19" },{ "x": "119140", "y": "20" } ]

},

{

"id": "DS3",

"seriesname": "test",

"plotborderthickness": "0",

"showplotborder": "1",

"color": "0066cc",

"data": [ { "x": "19767633333", "y": "27" } ]

}

]

}

 

 

Script Code :

 

<div id="d_sizingGuide1" style="float: left;"></div>

 

<script>

 

FusionCharts.setCurrentRenderer('javascript');

 

var chart1 = new FusionCharts("/charts/Scatter.swf", "sizingGuide", "750", "250", "0", "1");

chart1.setJSONUrl("/chartData/chartData.php?pageData=sizingData");

chart1.render("d_sizingGuide1");

 

</script>

 

post-6172-0-49329300-1322582463_thumb.png

 

 

 

Working Display but both axis are converted.

 

"FormatNumberScale":"1","DefaultNumberScale":"bits","NumberScaleValue":"8,1024,1024,1024,1024","NumberScaleUnit":"bytes,KB,MB,GB,TB",

 

post-6172-0-77506400-1322582468_thumb.png

 

 

 

thanks

 

G.

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
Sign in to follow this