anirbansarkar

Combination of bar and line chart

Recommended Posts

Guest Basundhara Ghosal

Hi Anirban,

Could you please try using "StackedBar2D.swf/StackedBar3D.swf " file of the Trial pack of FusionCharts for the same.

In case this does not suits your requirement, could you please specify the issue a bit elaborately?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Hi,

I tried using the Stacked2D and Stacked3D chart but it is not producing the desired output. I am underlining my requirement below:

In the X axis, I need to plot the different financial years, say 05-06 to 09-10. So there will be 5 plots in the X axis. Now every plot will have a single bar (i.e total 5 bars in the chart) and each bar will be further divided into 4 quarters for that financial year. So my ultimate requirement is 1 bar divided into four quarters (depicted in four different shades) for a financial year.

I hope I have been able to make my point.

Thanks and regards.

Anirban Sarkar

Share this post


Link to post
Share on other sites

Hi all,

I have a bar graph which charts some values along both the axis. My requirement is as follows:

I want to have a link on each of the bars and on clicking on each of the links, a pop up page is to be opened which will display some data in tabular format. I am attaching the code that I have coded for the purpose but is not quite sure where to establish the link.

Kindly refer the attached zip file.

Thanks and regards.

Anirban Sarkar 

code.zip

Share this post


Link to post
Share on other sites

Hi anirban,

 

please change your code like this.

 

 

 

$strLink = "link=P-detailsWin,width=400,height=300,toolbar=no,scrollbars=no, resizable=no-display_details.php%3Fparam%3D$pass_param";

 

$FC_gen->addChartData($row_gen[0],$strLink);

 

 

 

please refer to bellow links-

 

http://www.fusioncharts.com/docs/Contents/DrillDown/PopUps.html

 

http://www.fusioncharts.com/docs/Contents/PHPClassAPI/Functions.html

Edited by Guest

Share this post


Link to post
Share on other sites

I have a bar graph where every generated bar has a link which opens a popup window to display some tabular information. I want to specify a user defined colour to the individual bars and over ride the default colour.

The code I am using is given below :

<CODE>

$FC_gen->addChartData($row_gen[0],"link=javascript:open_pop($sub_chart_type,$wing_cd,$fin_yr_no,$ctr_gen,0)",'color=00436e');

</CODE> 

When I am specifying the bar colour by using 'color=00436e', the bars of the chart are not appearing.

It seems that I am going wrong somewhere.

Any help will be highly appreciated.

Thanks and regards,

Anirban Sarkar

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Anirban,

Thanks for your appreciation.

Could you please send us the XML codes that you are using, sothat we might test it in our lab?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Many thanks for your response.

As per your requirement, I am giving the code snippet in the attached file. Hope this will suffice.

Another thing, from where can I control the maximum and minimum range of the Y axis, i.e my Y axis data range will vary from say -273 to 13570.

Thanks and regards,

Anirban Sarkar

code.zip

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Anirban,

Please re-check your code and try mentioning the "color" attribute for each <set> element for the same.

Also, please refer to the link that we are sending you as all the detailed information on the same are elaborately described in our online documentation.

Ref.- http://www.fusioncharts.com/docs?/PHP_BasicExample.html

  http://www.fusioncharts.com/docs?/AttDesc/DataPlot.html

  http://www.fusioncharts.com/docs/

Hope this helps. :)

Share this post


Link to post
Share on other sites

Many thanks for your response.

The links were very helpful and I could finally change the colour of the linked bars. But still one problem is persisting.

Going through the article I could make out that the setAdaptiveYMin='1' chart attribute will automatically adjust the range of the Y axis based on the values that is being sent to XML. But when I am implementing it in my chart, it is not working.

I also tried using the setAdaptiveYMin='1' chart attribute in the chart tag as well but without any success.

I am using the following:

<CODE>

$FC_iot->addChartData($row_q1[0],"setAdaptiveYMin='1';link=javascript:open_pop_major($sub_chart_type,$wing_cd,$fin_yr_no,3,$org_id)");

</CODE>

Any help will be highly appreciated.

Thanks and regards.

Anirban

Share this post


Link to post
Share on other sites

Hi Anirbansarkar,

 

"setAdaptiveYMin" is a chart tag attribute. so you have to add it in chart tag.

 

but here you are adding it in set tag that's why it is not working.

 

you may refer to the following links-->

 

1.http://www.fusioncharts.com/docs/ (Chart XML API)

 

 

 

2.http://www.fusioncharts.com/docs/Contents/PHPClassAPI/FirstChart.html

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Anirban,

Thanks for sharing the idea.

Glad that your issue is resolved.

Keep smiling and keep FusionCharting. :)

Share this post


Link to post
Share on other sites

Back after a long time :)

I am plotting a bar graph where some divisions like Generation, Mains etc come in the x axis and the corresponding values appear along the y axis. I want to specify a particular colour for each of the divisions plotted.

Previously, I was plotting with a uniform color which I was specifying the dataset tag. But in this case that will obviously not work.

I am attaching the relevant part of the code for your reference, if required.

Regards.

code.zip

Share this post


Link to post
Share on other sites

Hi,

 

Could you please confirm whether the data values shown on top of each stacked column is the sum? (See attached screenshot)

 

post-8144-0-03171900-1318570350_thumb.jpg

 

This is because the data for each <et> element is displayed inside each plot whereas the sum is shown on top.

 

Could you please send us the relevant XML data so that we might test it?

 

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