FusionCharts Forum: y axis minimum and maximum data error - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

y axis minimum and maximum data error y axis minimum and maximum data

#1 User is offline   anangwe 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 09-August 10

Posted 09 August 2010 - 06:14 AM

Hi,People



I am rendering a graph which picks values from the database the x axis picks the dates and the yaxis picks the values.



the mysql picks the variables for the values



the code is



$minSQL = "SELECT MIN(rate_value) As MinValue FROM $ratesTable";

$minResult = mysql_query($minSQL);

$myArray = mysql_fetch_array($minResult);

$minValue = $myArray['MinValue'];





$maxSQL = "SELECT MAX(rate_value) As ManValue FROM $ratesTable";

$maxResult = mysql_query($manSQL);

$myArray = mysql_fetch_array($manResult);

$maxValue = $myArray['ManValue'];



i pass the parameters to the $strParam like

------------------------------------

yAxisMinValue=$minValue;yAxisMaxValue=$maxValue;

---------------------------------------



thus the min and max values are picked and run correctly ,when the graph is rendered it shows a different max value

and it generates its own progression eg if i set a value of 520 and 522 the y axis picks all these values



521,537,552,568,584,600



where do these values {521,537,552,568,584,600} originate from and how do i tweak them to my own standard



My Script is attached below



Many thanks,



Benjamin Anangwe

Attached File(s)


BA
0

Other Replies To This Topic

#2 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 10 August 2010 - 07:00 AM

Hi,

Welcome to FusionCharts forum. :D

If the datavalues that your chart is fetching from the database exceeds the maximum value specified then it will automatically build the scale to adjust all the datavalues.

In case you wish to fix the yaxis max value and min value, you need to apply your own logic to specify these two values and also you need to confirm that the maxvalue of the datavalue set does not exceeds the specified max value. 

Hope this helps.

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#3 User is offline   Sanjukta 

  • Supreme Being
  • Group: Administrators
  • Posts: 1593
  • Joined: 15-March 10

Posted 28 September 2010 - 01:48 PM

Hello,

We are very excited to announce the release of FusionCharts v3.2 that leverages Flash and JavaScript (HTML5) to create stunning charts. It introduces the new zoom charts, Pareto & Marimekko charts and works with both XML and JSON data.

You will be pleased to know that FusionCharts v3.2 comes with the addition of the attribute "yAxisMinValue" in Stacked Charts. More details at:
http://www.fusioncha...ory.asp?Stacked

It now works on iPads and iPhones as well. Please visit http://www.fusioncharts.com/ipad/ to find out what's new.

Furthermore, with this release, we have changed our licensing policies and pricing for our core products - FusionCharts, FusionWidgets, FusionMaps & PowerCharts.

Please share your valuable feedback at: support@fusioncharts.com

Thank you and have a good day. :)
Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sanjukta

Follow us @Twitter!
0

Other Replies To This Topic

#4 User is offline   Angshu 

  • Supreme Being
  • Group: Administrators
  • Posts: 3222
  • Joined: 08-December 10

Posted 19 January 2011 - 07:47 AM


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/

Help us improve our documentation with your precious feedback at:

http://documentation...sioncharts.com/

Best,

Angshu

Follow us on @Twitter


0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic