Sign in to follow this  
wouwenaar

Canvas border and x- and y-axis

Recommended Posts

[font=" Verdana; WHITE-SPACE: pre-wrap; COLOR: rgb(31,80,128); FONT-SIZE: 13px" class=Apple-style-span>Hi,

we have been given some beautiful designs of charts and I have been asked to convert them into Fusioncharts charts. I bump in to the following problem.. None of the charts have borders or canvas borders  but they do have an x- and y-axis. I can't imagine it isn't possible since drawing a chart on paper always starts with drawing those axis, but I have been going through the documentation back and forth and I can't find the solution.

This is how it should look (the background is white):

0892dea3-b3b1-4ff6-a7b3-652c.JPG[/font]

[font=" Verdana; WHITE-SPACE: pre-wrap; COLOR: rgb(31,80,128); FONT-SIZE: 13px" class=Apple-style-span>And this is what I've got:

b2c596a5-6626-48f6-8626-559d.JPG[/font]

I'll work out the vertical lines later, but how can I draw the black x- and y-axis?

 

Best regards,

Sebastian

 

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello Sebastian,

There is a solution for this.

If you can please set the CanvasBorderAlpha='0' in the <chart> element, and use a Vertical line to draw the y-axis like so:

<set label='Jan' value='420000' />

<vLine linePosition='0'/>

Now, for your X-Axis, you need to set a trendline with startValue='0'color='000000'.

Please refer to the following attachment for this.

Hope this helps.:)

data.xml

Edited by Guest

Share this post


Link to post
Share on other sites

Hello Madhumita,

that helped a lot, thanks!

I still have one thing that I need to tackle and that is the plotborder color. If I implement the tips you gave me, it looks like this..

0cd1f3cd-6337-41b7-81a8-7965.JPG

If use the showPlotBorder='0', it looks like this:

2faaba66-0625-454a-a620-2fff.JPG

Is there a way to get the best of two worlds? :)

Regards,

Sebastian

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello,

Could you use the attribute plotBorderAlpha for this and see if it suits you? You can range the value for this attribute from 0-100. If you keep the value at round 70, then the plot is shown in your assigned color and the X-Axis is not affected.

Hope this is "best of both worlds" enough for you. :)

Share this post


Link to post
Share on other sites

Yes! thank you..

I think I've got it.. See below. I tried to apply the same settings to a MsColumn2D chart but that does not work the same way... Is there a way to set the Y-axis in that kind of chart? I have added the modified the xml like this:

<categories>

  <category label='Scenario1/>

  <vLine  linePosition='0'/>

  <category label='Scenario2' />

  <category label='Scenario3' />

  </categories>

97976058-ea3d-463c-917f-d5dd.JPG

Thanks a lot for making this one work!

8d8ee811-9b8b-46de-9051-7a7e.JPG

Share this post


Link to post
Share on other sites
Guest Madhumita

Hi Sebastian,

I'm afraid the y-axis cant be shown in the Multi-Series charts using vertical lines as was being done in the single-series one's.

:)

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