Get support for vincentchalamon/jQueryGraduatorPlugin

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

vincentchalamon/jQueryGraduatorPlugin

jQueryGraduatorPlugin

This jQuery plugin allows you to create a colored graduation.

How to use

This plugin requires jQuery 1.8+, jQuery UI & jQuery color plugin :

<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="path/to/jquery.graduator.js"></script>

Now you can use jQuery color plugin as following :

$('#graduator').graduator({
    items: [
        {
            color: '#03FF0B',
            label: 'Limité'
        },
        {
            color: '#FFFF00',
            label: 'Significatif'
        },
        {
            color: '#FF9100',
            label: 'Critique'
        },
        {
            color: '#FF0000',
            label: 'Catastrophique'
        }
    ],
    count: 3,
    url: '/url/to/save/slider/value',
    callback: function (result) {
        // Do what you want on slider result
    },
    value: 54
});

Options

You must set following options to graduator :

  • items : array of items to create
    • color : item start color
    • label : item label
  • count : number of elements in each item (default : 5)
  • url : url to save slider value
  • callback : function to call on slider result
  • value : slider value

Compatibility

This plugin has been tested under IE7+ up to IE9, Safari, Firefox, Chrome & Opéra.

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2