Sign in to follow this  
SergeyT

Scatter: Vertical Lines Distance

Recommended Posts

Hi.

Please, tell me if it is possible to manage the distances between vertical lines on a scatter chart? In most cases scatter looks good, but in several cases (jpeg and xml attached) I would like to refine the view.

I want to spread these lines on whole chart area (see good_scatter.jpg)

Thank you.

chart_scatter.txt

post-21266-0-55297200-1329375604_thumb.jpg

post-21266-0-71040800-1329376137_thumb.jpg

Edited by SergeyT

Share this post


Link to post
Share on other sites
Guest Sumedh

Greetings. smile.gif

 

Try to set 'x' attribute under the category element.

 

Please refer the following code:

 

Ref. Code:

<chart .....>

<categories>

<category label='5180' x='5040' showVerticalLine='1' />

<category label='5195' x='5080' showVerticalLine='1' />

</categories>

<dataset>...

</dataset>

</chart>

 

Please note, you can show the same labels for the category elements, you would only need to change the value of 'x' attribute.

 

Please find attached screenshot for your reference with this reply.

 

Hope this helps. smile.gif

post-24802-0-83479700-1329385106_thumb.jpg

Share this post


Link to post
Share on other sites

Hello.

 

It seems, maually setting of x-values is not suitable solution for me.

 

My algorytm of vertical lines is simple and following:

 

I bring minimal x-value (minimal from all points on chart), maximal x-value and make 10 lines between them with corresponding step.

In good case, lines begins from the left side of chart (pic 2 in base post)

In bad case lines begins somewhere in middle and ends also in the middle area (pic 1).

 

I can not see any reason why these lines couldn't be started from the left side (like in pic2). Why they are concentrated in the middle?

 

So, to clarify the question.

What should I do to have vertical lines spreaded among whole chart area but have my x-values not changed.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,smile.gif

 

Please try to set xAxisMinValue and xAxisMaxValue attributes under the chart element.

 

Ref code:

 

<chart ... xAxisMinValue='5180' xAxisMaxValue='5330'>

 

This would solve your purpose.

 

Hope this helps. smile.gif

Share this post


Link to post
Share on other sites
Guest Sumedh

Yes. That's what I need. Thank you very much.

FusionCharts support is the best! :D

 

 

Hi, smile.gif

 

I am glad that, solution worked.smile.gif

 

And thanks a lot for the compliments.tongue.gif

 

Happy FusionCharting ! biggrin.gif

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