Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jvectormap color regions

(function() {
    var myCustomColors = {
        'AU-SA': '#4E7387',
        'AU-WA': '#333333',
        'AU-VIC': '#89AFBF',
        'AU-TAS': '#817F8E',
        'AU-QLD': '#344B5E',
        'AU-NSW': '#344B5E',
        'AU-ACT': '#344B5E',
        'AU-NT': '#344B5E'
    };

    map = new jvm.WorldMap({
        map: 'au_merc_en',
        container: $('#ausie'),
        backgroundColor: '#eff7ff',
        series: {
            regions: [{
                attribute: 'fill'
            }]
        }
    });

    map.series.regions[0].setValues(myCustomColors);
})();
Comment

PREVIOUS NEXT
Code Example
Javascript :: deploy react to azure : web.config 
Javascript :: django csrf failed ajax 
Javascript :: vue trigger function after certain time 
Javascript :: mouse over jest 
Javascript :: confirm closing tab 
Javascript :: js jquery class ending with string 
Javascript :: testing jest 
Javascript :: redux thunk 
Javascript :: readystate==4 
Javascript :: rotate13 text in javascript 
Javascript :: remove all chars from string and leave only numbers javascript and leav space betwin numbers 
Javascript :: delegate click in jquery 
Javascript :: write buffer to file in node 
Javascript :: input mask 9 number add 
Javascript :: ng-lazyload-image 
Javascript :: leaflet flyto 
Javascript :: Nextjs mongodb connection setup 
Javascript :: js shallow copy 
Javascript :: angular convert boolean to yes no 
Javascript :: React Redux reducer crud 
Javascript :: java script to send email 
Javascript :: javascript create object from key value pairs 
Javascript :: Fetch Data Using Getx 
Javascript :: array push 
Javascript :: jquery script cdn stackoverflow 
Javascript :: javascript conditional 
Javascript :: script defer attribute 
Javascript :: slice() in js 
Javascript :: graphql yoga access http headers 
Javascript :: get contents between tags javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =