forked from 0x2620/oxjs
update Ox.Chart
This commit is contained in:
parent
511c355223
commit
c5af338d2d
4 changed files with 178 additions and 37 deletions
|
|
@ -76,7 +76,7 @@ Ox.load.Geo = function(options, callback) {
|
|||
@*/
|
||||
|
||||
Ox.COUNTRIES = data;
|
||||
var colors = {
|
||||
Ox.GEO_COLORS = {
|
||||
|
||||
'North America': [0, 0, 255],
|
||||
'Northern America': [0, 0, 255],
|
||||
|
|
@ -217,7 +217,7 @@ Ox.load.Geo = function(options, callback) {
|
|||
};
|
||||
|
||||
Ox.getGeoColor = function(str) {
|
||||
return colors[str] || [128, 128, 128];
|
||||
return Ox.GEO_COLORS[str] || [128, 128, 128];
|
||||
};
|
||||
|
||||
callback(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue