Sign in to follow this  
kirank

How To Remove Axis From Graph

Recommended Posts

hi i m using MSColumn3D Graph and here is my code for the same

 

cht_Def.AssignDataSet = DefectgetRecords();

cht_Def.XAxisName = "Defect Status";

cht_Def.YAxisName = "Count";

//cht_Def.ShowValues = "0";

//cht_Def.numberPrefix = '';

//cht.YAxisName = ddlSubCat.SelectedItem.Text.Replace("%", "Percent");

cht_Def.ChartSWF = "FusionCharts/FCF_MSColumn3DLineDY.swf";

//GeneratesGraph0.ChartSWF = "Charts/Pie2D.swf";

cht_Def.ChartCaption = "Defect Count Status";

cht_Def.ChartType = "Column3D";

cht_Def.ChartHeight = "450";

cht_Def.ChartWidth = "450";

cht_Def.ShowBorder = "false";

cht_Def.DataBind();

 

this is my xml databind

 

XmlData.Append("<graph caption='" + strCaption + "' xAxisName='" + strXAxisName + "' yAxisName='" + strYAxisName + "' lineThickness='1' showValues='0' formatNumberScale='0' anchorRadius='2' divLineAlpha='20' divLineColor='CC3300' divLineIsDashed='1' showAlternateHGridColor='1' alternateHGridColor='CC3300' shadowAlpha='40' labelStep='1' numvdivlines='5' chartRightMargin='35' bgColor='FFFFFF,CC3300' bgAngle='270' bgAlpha='10,10'>");

 

1. now i want to remove the y axis right and side co-ordinate plz help me how i can remove that

now its showing Nan (not a number)

 

2. how to set y axis co-ordinate in int value now its showing in Deciaml for example (10.00)

 

Note: plz refer the attachment for the same

 

plz help thx

Edited by kirank

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

You would need to apply STYLES in order to remove axis.

 

I am afraid, FusionCharts free does not support STYLES, at this time.

 

This feature is available in FusionCharts v 3.2 only.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Please find the STYLES code below to remove axis from graph.

 

You would need to set the angle as per your requirement.

 

<styles>

<definition>

<style type="Shadow" name="Shadow_1" Angle="90" Color="000000" Alpha="100" blurX="0" blurY="0" Strength="2"/>

<style type="Shadow" name="Shadow_1" Angle="130" Color="000000" Alpha="100" blurX="0" blurY="0" Strength="2"/>

 

</definition>

<application>

<apply toObject="CANVAS" styles="Shadow_1,Shadow_2"/>

</application>

</styles>

 

Hope this helps.smile.gif

Edited by Angie

Share this post


Link to post
Share on other sites

now i m using FCF_MSColumn3D instead of FCF_MSColumn2DLineDY

 

i have one more question how i can set the y co-ordinates in int value

 

now its showing 10.00 , 15.00 i want to set it as a 10 15

like that

Share this post


Link to post
Share on other sites

How would I do this using Fusion Charts PHP?

 

<styles>

<definition>

<style type="Shadow" name="Shadow_1" Angle="90" Color="000000" Alpha="100" blurX="0" blurY="0" Strength="2"/>

<style type="Shadow" name="Shadow_1" Angle="130" Color="000000" Alpha="100" blurX="0" blurY="0" Strength="2"/>

 

</definition>

<application>

<apply toObject="CANVAS" styles="Shadow_1,Shadow_2"/>

</application>

</styles>

 

AND should the second one be Shadow_2?

Edited by Nikki

Share this post


Link to post
Share on other sites

I have this:

$FC->defineStyle("shadow_1","shadow", "angle=90;color=000000;alpha=100;blurX=0;blurY=0;strength=2");

$FC->defineStyle("shadow_2", "shadow", "angle=130;color=000000;alpha=100;blurX=0;blurY=0;strength=2");

 

$FC->applyStyle("CANVAS","shadow_1");

$FC->applyStyle("CANVAS","shadow_2");

 

But it does nothing from what I can see.

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