Jamie 1

Angle Gauge Limits

Recommended Posts

Hello. I am making a gauge to show if we are ahead or behind our schedule. 

Hence the gauge needs to swing from -60 mins to +60 mins, with '0' at the centre.

Problem. I have the Lower Value set at  -60 and it needs to stay there so the gauge looks level. BUT upon update the Lower Limit always increases the lower limit. 

This happens regardless of the updated value. So if the updated value is +14, it still changes the Lower Limit. See picture.

How can I stop it changing its self please?

Jamie

IMG_1899-01-06-18-11-16.thumb.jpeg.5375463b699e4fc3b835a2275b87869d.jpeg

 $Schedule = 
        array(
            "chart" => array(
                        "caption" => $schedule_main[0]['n1'],
                        "showValue" => "1",
                        "valueBelowPivot" => "1",
                        "majorTMNumber" => "4",
                        "minorTMNumber" => "4",
                        "gaugeFillMix" => "{dark-30},{light-60},{dark-10}",
                        "gaugeOuterRadius" => "100%",
                        "gaugeInnerRadius" => "60%",
            
                        "minValue" => "-60",
            
                        "theme" => "fint"
                    )
            );

    $colorRange =  array(
            "color" => array(
                        array(
                            "minValue" => "-60",
                            "maxValue" => $schedule_main[0]['t2'],
                            "code" => $schedule_main[0]['colourL']
                        ),
                        array(
                            "minValue" => $schedule_main[0]['t2'],
                            "maxValue" => $schedule_main[0]['t1'],
                            "code" => $schedule_main[0]['colourM']
                        ),
                        array(
                            "minValue" => $schedule_main[0]['t1'],
                            "maxValue" => $schedule_main[0]['tmax'],
                            "code" => $schedule_main[0]['colourH']
                        )
                    )
    );

 

Edited by Jamie 1

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