Sign in to follow this  
bussez

Events

Recommended Posts

Good morning, I would use events to function as the thermometer gauge


I would like to see loop temp. MAX, MIN, CURRENT.

Example temp changed through math.random but I would use the 3 variables temp taken with php script.

I tried without success

"Events": {

                "RenderComplete": function (evt, arg) {

                    var chargeInterval = setInterval (function () {

                                             

                            count ++;

                        

                            if (count == 1) {

                                value = <?php echo $max  ?>; }

                            

                             if (count == 2) {

                                value =<?php echo $min ?>;                       

                            }

                        

                        if (count == 3) {

                       value =<?php  echo $current ?>;

                            count = 0;

                            }

                        

                        

                         

                        FusionCharts.items ["myThm"]. FeedData ("& value =" + value);

                    }, 3000);

 

thank you!!
Edited by bussez

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
Sign in to follow this