mikko

Highlight categories

Recommended Posts

I've got several charts with data divided by days of month. I'd like to highlight the weekends (or any given day, actually), but haven't found anything to do this. (I've attached an image to demonstrate how it should look like).

 

 

 

I've tried vLines, but they don't let me set the colour between two lines. vTrendlines would do the trick, but they only work with scatter charts - mine all are multi-series 2D line.

 

 

 

Any way to do this without touching the source code?

post-1542-128441565383_thumb.png

Share this post


Link to post
Share on other sites

Can you give me sample of your VTrendLines?

 

I tried it many ways but it cant be helped,

 

I am using PHP Class to generate XML Data.

 

This is my code,

 

 

 

 

 

for ($i=1; $i<=$sum;$i++) {

 

if (isset($data[$i]))

 

$FC->addChartData($data[$i]);

 

else $FC->addChartData(0);

 

 

 

$day = intval(date('w', mktime(0, 0, 0, $m, $i, $y)));

 

if ($day == 0 || $day == 6)

 

$FC->addVTrendLine("startValue=".($i-1).".5;endValue=".$i.".5;alpha=25;color=FF0000");

 

}

 

 

 

 

 

Thanks

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionChats forum. :)

Could you please have a look to the following link:-

Ref:-http://www.fusioncharts.com/docs/Contents/ChartSS/Scatter.html

However if it does not work, please send us the generated XML codes that you are using as an attachment so that we might look into it.

Also could you please specify us a bit elaborately the issue that you are facing?

Awaiting your reply. :) 

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