Sign in to follow this  
Guest Rajroop

Possible to have non-uniform X-axis

Recommended Posts

Hi all

Don't know if this question has been up? Tried to search the forum bu couldn't fina a solution to it.

So this is what I want to do: I want to use the Line2D graph and plot number of items (yaxis) over days (xaxis). The data looks like

y, x

20, 0

22, 23

24, 24

30, 101

26, 168

 

When I plot this the axis is uniformly divided, but I dont wont that, since the angle of the graph is quite important.

Using scattered graph doesn't seem to solve the issue

Pls help

Rgds

/W

Share this post


Link to post
Share on other sites
Guest Rajroop

Hey W,

Welcome. :)

Could you please send us your XML so that we might have a look?

Looking forward to your reply.

Share this post


Link to post
Share on other sites

Thanks

Sorry for late replay, been on holiday in Philipines for 4 weeks. XML looks something like;

<graph yAxisMinValue='120' yAxisMaxValue='140' caption='Scandic Hotels' subcaption='Since 2007-04-26' xAxisName='Time' yAxisName='Numer of Hotels' decimalPrecision='0' numberPrefix='Hotels' showNames='1' showValues='0' showAlternateHGridColor='1' AlternateHGridColor='ff5904' divLineColor='ff5904' divLineAlpha='20' alternateHGridAlpha='5'>

<set name='0' value='135' tooltext='Tooltext' />

<set name='160' value='136' tooltext='Tooltext' />

<set name='4' value='137' tooltext='Tooltext' />

<set name='5' value='138' tooltext='Tooltext' />

<set name='6' value='139' tooltext='Tooltext' />

<set name='28' value='140' tooltext='Tooltext' />

</graph>

 
ASP Code:
Call renderChart("FusionCharts/Line.swf", "", strXML1, "ChartId", 600, 350, false, false)
 
What I would like to do is to have name-value as x-label, and value as y-label. (Since "name" above is number of days passed since last change in "value")
 
Hope this helps
/W

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

You can have the x-axis scale like you need it by adding empty sets(<set /> ) between adjacent data plots .

 

However, you'd need to connect the null data with the connectNullData='1' in the <chart> element, which is a part of FusionCharts v3. FusionCharts Free does not have this feature.

 

You can try and download the FusionCharts Trial Version from the following link:

http://www.fusioncharts.com/download.asp

 

I am attaching a sample XML which i created for you. It will run perfectly in the trial version(se enclosed screenshot).

Hope this helps. :)

post-6209-128441576289_thumb.jpg

data.xml

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