jami

How To Set A Picture On Highlight Selective Data?

Recommended Posts

I use StackedColumn2D on my charts.

I want to set a Picture on selective data the, like the following example:

post-27499-0-49575700-1329693279_thumb.jpg

It's my php code :

for($t=0; $t<count($price2); $t++) {

if(($t%$num)==0){

$FC->addCategory($price2[$t], "showName=1");

}else{

$FC->addCategory($price2[$t], "showName=0");

}

}

 

 

for($k=0; $k<11; $k++) {

 

$FC->addDataset($numList[$k],"color=" . $color[$k]);

 

for($t=0; $t<count($price2); $t++) {

if(!is_null($BS2[$t][$k]) and $BS2[$t][$k]!=""){

$b = $BS2[$t][$k];

}else{

$b = 0;

}

$FC->addChartData($b );

// <= add code in this?

}

}

Edited by jami

Share this post


Link to post
Share on other sites
Guest Sumedh

Greetings,smile.gif

 

I am afraid, the feature which you are looking for, is not supported, as of now. sad.gif

 

As a work-around, you can try FusionCharts styles.

 

Using FusionCharts styles, you can make your charts more interactive.

 

Please refer link for more information:http://docs.fusioncharts.com/charts/contents/?Styles/Styles.html

 

Hope this helps. smile.gif

 

Hope you have a great day. smile.gif

Share this post


Link to post
Share on other sites

Greetings,smile.gif

 

I am afraid, the feature which you are looking for, is not supported, as of now. sad.gif

 

As a work-around, you can try FusionCharts styles.

 

Using FusionCharts styles, you can make your charts more interactive.

 

Please refer link for more information:http://docs.fusionch...les/Styles.html

 

Hope this helps. smile.gif

 

Hope you have a great day. smile.gif

 

I can't find the relative data.

How can I do it, anyone help me?

 

 

 

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Apologies for the miscommunication.

 

Using FusionCharts styles, you can enhance your chart's look and you can make them more interactive.

 

You can apply styles on the various chart's objects.

 

Styles lends a simple mechanism using which you can easily control the visual layout of charts.

 

You can apply styles using following elements:

>Font

>Animation

>Shadow

>Glow

>Bevel

>Blur

 

However, you can highlight selective data on the chart.

 

Please refer the link :http://docs.fusioncharts.com/charts/contents/?advanced/Highlight.html

 

For live demo:http://www.fusioncha...ual-data-points

 

Hope this helps. smile.gif

Share this post


Link to post
Share on other sites

Hi,

 

Apologies for the miscommunication.

 

Using FusionCharts styles, you can enhance your chart's look and you can make them more interactive.

 

You can apply styles on the various chart's objects.

 

Styles lends a simple mechanism using which you can easily control the visual layout of charts.

 

You can apply styles using following elements:

>Font

>Animation

>Shadow

>Glow

>Bevel

>Blur

 

However, you can highlight selective data on the chart.

 

Please refer the link :http://docs.fusioncharts.com/charts/contents/?advanced/Highlight.html

 

For live demo:http://www.fusioncha...ual-data-points

 

Hope this helps. smile.gif

 

How can I use displayValue on my code?

I also tried doing this:

$FC->addChartData($b, "displayValue=test" ); But it doesn't work.

please guide me if i am making any mistake, thanks.

Share this post


Link to post
Share on other sites
Guest Sumedh

Greetings, smile.gif

 

Could you please check, if the variable is taking value for data plot properly or not.

$FC->addChartData($b, "displayValue=test" )

 

And also, please confirm that, FusionCharts_Gen.PHP file is included in your project or not. If not then, include this file into your project.

 

Check the following code for your reference,

 

<?php

include('FusionCharts_Gen.php');

$FC = new FusionCharts("Column3D","600","400");

$FC->setSWFPath("./");

$strParam="caption=Weekly Sales;xAxisName=Week;yAxisName=Revenue;numberPrefix={:content:}quot;;

$FC->setChartParams($strParam);

$FC->addChartData("40800","label=Week 1");

$FC->addChartData("31400","label=Week 2");

$FC->addChartData("26700","label=Week 3");

$FC->addChartData("54400","displayValue=test");

?>

<html>

<head>

<title>Demo using PHP Class</title>

<script language='javascript' src='FusionCharts.js'></script>

</head>

<body>

<?php

$FC->renderChart();

?>

</body>

</html>

 

For more information about PHP class, please read here: http://docs.fusionch...ipleCharts.html

 

Also, find attached screenshot for your reference which is rendered using above posted code.

Hope this helps. smile.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