Home jVector Map colors when displaying 2 datasets
Reply: 0

jVector Map colors when displaying 2 datasets

user1017 Published in April 22, 2018, 10:09 pm

I have 2 datasets- ctrl.gdpData and ctrl.pdpData, and I'm displaying them (on jVector world Map) like this-

        map: 'world_mill',
        series: {
            regions: [{
            values: [ctrl.gdpData, ctrl.pdpData],
            scale: ['#C8EEFF', '#0071A4'],
            normalizeFunction: 'polynomial'
        onRegionTipShow: function(e, el, code){
            el.html(el.html()+' (Deposit - '+ctrl.gdpData[code]+')'+' (Activation - '+ctrl.pdpData[code]+')');

The 'scale' that I used doesn't show any colors when I use the 2nd dataset also. I've tried using fill, backgroundcolor but none of them display the color that I want. Is there something that I'm missing? Is there a different way of displaying data from 2 datasets on the jVector world map?

PS- The display of data on the graph is perfect, no problems/errors there.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.313757 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO