thinknirmal

z-index and PHP

Recommended Posts

I love the charts except that the drop-downs of the page menu are running behind the chart.:crying:

Is there any way to solve this?

I am using the following line of code to embed the chart on the page:

 

<?php echo renderChart(HTTP_SERVER . "/PowerCharts/PowerCharts/CandleStick.swf", "", $mbXML, 
"marketingBreakup", 660, 250, false, false);?>

Thank you for any help!

Edited by Guest

Share this post


Link to post
Share on other sites

Hi thinknirmal,

 

 

 

Please set the setTransparent field "true" in the renderChart() function.

 

 

 

Thereby, the code will be something like the following:

 

<?php echo renderChart(HTTP_SERVER . "/PowerCharts/PowerCharts/CandleStick.swf", "", $mbXML,

 

"marketingBreakup", 660, 250, false, false,true);?>

 

 

 

I hope this helps. :)

Share this post


Link to post
Share on other sites
ayan.pal (2/17/2010)
please set the setTransparent field "true" in the renderChart() function.

Hi Ayan!

I tried to set that and seeing no change in the rendering. I am using IE 8.0 on Windows 7 (in case that determines something).

Thank you.

Share this post


Link to post
Share on other sites

Hello Ayan,

Thank you for your response.

Please find the attached text file containing the output HTML.

I noticed the following line of output without the intended boolean value at the end:

var chart_marketingBreakup = new FusionCharts("http://bb.ews.com.my/PowerCharts/PowerCharts/CandleStick.swf", "marketingBreakup", "660", "250", "0", "0");

I thought it's happening because of browser cache. So tried after flushing the cache, but to no positive effect. It's the same again. So I guess it's the PHP extension of Powercharts not recognising the boolean value.

Hope you can help me out of this. Thank you.

- Nirmal Natarajan

chartHTML.txt

Share this post


Link to post
Share on other sites
ayan.pal (2/17/2010)
Please try using attached FusionCharts.php.

Dear Ayan,

I tried using your FusionCharts.php. But when I specify the last boolean parameter as true in the PHP code, the javascript is throwing an error saying Object doesn't support this property or method.

Data from Javascript Debugger:

  'FusionCharts' is undefined  index.php?page=price_manager&id=1208, line 641 character 3
  'chart_marketingBreakup' is null or not an object  index.php?page=price_manager&id=1208, line 642 character 17
  'chart_marketingBreakup' is null or not an object  index.php?page=price_manager&id=1208, line 644 character 3
  'chart_marketingBreakup' is null or not an object  index.php?page=price_manager&id=1208, line 646 character 3

Line reference:

Line 642:

chart_marketingBreakup.setTransparent(1)

This behaviour is not seen if I omit the last parameter or when I set it to false and the chart loads without any error.

Also please find the attchment you had requested. Thank you for your continuous help and I appreciate your support.

Nirmal Natarajan

old_FusionCharts.zip

Edited by Guest

Share this post


Link to post
Share on other sites

Hi Nirmal,

 

 

 

Its really strange this code is working fine in our labs, could you please make sure once whether you have correctly reference/included FusionCharts.js in you page? (as FusionCharts.php depends upon FusionCharts.js file).

Share this post


Link to post
Share on other sites
Rahul Kumar (2/18/2010)
could you please make sure once whether you have correctly reference/included FusionCharts.js in you page? (as FusionCharts.php depends upon FusionCharts.js file).

Sorry for the late reply. Had a break for some days.

As for the .js file, of course I included it. Without it the chart won't even be displayed no matter what the parameters are, right?

Share this post


Link to post
Share on other sites
Basundhara Ghosal (2/25/2010)
Please try using the Fusioncharts.js file that we are sending you as an attachment.

Thank you Basundhara! That file fixed the issue. :w00t:

Appreciate your support.

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Nirmal,

Thanks for your appreciation.

Glad to help you.

Keep smiling and keep FusionCharting. :)

Share this post


Link to post
Share on other sites
Guest Angie

Dear User,

 

We are delighted to announce that PowerCharts is now ready for your iPads and iPhones too. We have just released PowerCharts v3.2. Starting v3.2, PowerCharts has HighCharts embedded within it, and offers both Flash and JavaScript (HTML5) charting . The Flash charts are displayed on a majority of devices and the JavaScript charts on devices that do not support Flash, all of it without writing a line of code.

 

Automatic rendering of JavaScript charts on devices (like iPad and iPhone) where Flash player is not supported.

 

5 new chart types:

 

Heat Map Chart

 

Box and Whisker Chart

 

Step Line Chart

 

Error Line Chart

 

Error Scatter Chart

 

 

* Support for JSON data format.

 

* Support for LinkedCharts, where a single data source controls multiple charts.

 

* Interactive legends in charts allow selective showing/hiding of data series.

 

* Legends now support icons for each data series.

 

* Better management of labels on charts.

 

* Labels now have an auto rendering mode to prevent them from overlapping, the chart selects the best display mode depending on the length of the labels and the width of the chart.

 

* Long labels are truncated, with ellipses appended to the truncated end of each label, and a tooltip bearing the completed label text is displayed when the user hovers over a truncated label.

 

* Support for line breaks and wrapping in all text elements including: caption, sub caption, X-axis title, Y-axis title, Labels and tooltips.

 

* In Line charts, data values can now be positioned either above or below the dataplots. Automatic positioning of data values is also supported.

 

* In Step-line charts dataplots can be joined using vertical lines.

 

* Custom alignment of caption and sub caption using STYLES.

 

* Advanced print management using JavaScript.

 

* Additional options for efficient event handling using JavaScript.

 

* Support for dynamic update of chart properties using JavaScript(barring select scatter and drag charts).

 

* Charts now support % based sizes along with dynamic resizing (barring select scatter and drag charts).

 

 

Learn more about everything new in PowerCharts v3.2 at : http:/ www.fusioncharts.com/PowerCharts/

 

We would love to hear from you at: http://www.fusioncharts.com/contact/

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