canvas-heatmap
Advanced tools
Comparing version 1.2.19 to 1.2.20
{ | ||
"name": "canvas-heatmap", | ||
"version": "1.2.19", | ||
"version": "1.2.20", | ||
"description": "Interactive heatmap, capable of displaying 1,000,000+ data points using canvas and d3. ", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -89,2 +89,3 @@ # Canvas Heatmap | ||
| colors | Color range for the plot (see below for example) | Red -> Blue | Array | | ||
| language | Select language for time axis. EN, DE, FR, ES | EN | String | | ||
@@ -91,0 +92,0 @@ #### Colors |
@@ -217,2 +217,146 @@ import { | ||
}, | ||
EN: { | ||
decimal: ",", | ||
thousands: ".", | ||
grouping: [3], | ||
currency: ["€", ""], | ||
dateTime: "%a %b %e %X %Y", | ||
date: "%d.%m.%Y", | ||
time: "%H:%M:%S", | ||
periods: ["AM", "PM"], | ||
days: [ | ||
"Sunday", | ||
"Monday", | ||
"Tuesday", | ||
"Wednesday", | ||
"Thursday", | ||
"Friday", | ||
"Saturday", | ||
], | ||
shortDays: ["Sun", "Mon", "Tues", "Weds", "Thurs", "Fri", "Sat"], | ||
months: [ | ||
"January", | ||
"February", | ||
"March", | ||
"April", | ||
"May", | ||
"June", | ||
"July", | ||
"August", | ||
"September", | ||
"October", | ||
"November", | ||
"December", | ||
], | ||
shortMonths: [ | ||
"Jan", | ||
"Feb", | ||
"Mar", | ||
"Apr", | ||
"May", | ||
"Jun", | ||
"Jul", | ||
"Aug", | ||
"Sep", | ||
"Oct", | ||
"Nov", | ||
"Dec", | ||
], | ||
}, | ||
FR: { | ||
decimal: ",", | ||
thousands: ".", | ||
grouping: [3], | ||
currency: ["€", ""], | ||
dateTime: "%a %b %e %X %Y", | ||
date: "%d.%m.%Y", | ||
time: "%H:%M:%S", | ||
periods: ["AM", "PM"], | ||
days: [ | ||
"Dimanche", | ||
"Lundi", | ||
"Mardi", | ||
"Mercredi", | ||
"Jeudi", | ||
"Vendredi", | ||
"Samedi", | ||
], | ||
shortDays: ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"], | ||
months: [ | ||
"Janvier", | ||
"Février", | ||
"Mars", | ||
"Avril", | ||
"Mai", | ||
"Juin", | ||
"Juillet", | ||
"Août", | ||
"Septembre", | ||
"Octobre", | ||
"Novembre", | ||
"Décembre", | ||
], | ||
shortMonths: [ | ||
"Janv", | ||
"Févr", | ||
"Mars", | ||
"Avr", | ||
"Mai", | ||
"Juin", | ||
"Juil", | ||
"Août", | ||
"Sept", | ||
"Oct", | ||
"Nov", | ||
"Déc", | ||
], | ||
}, | ||
ES: { | ||
decimal: ",", | ||
thousands: ".", | ||
grouping: [3], | ||
currency: ["€", ""], | ||
dateTime: "%a %b %e %X %Y", | ||
date: "%d.%m.%Y", | ||
time: "%H:%M:%S", | ||
periods: ["AM", "PM"], | ||
days: [ | ||
"Domingo", | ||
"Lunes", | ||
"Martes", | ||
"Miércoles", | ||
"Jueves", | ||
"Viernes", | ||
"Sábado", | ||
], | ||
shortDays: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa"], | ||
months: [ | ||
"Enero", | ||
"Febrero", | ||
"Marzo", | ||
"Abril", | ||
"Mayo", | ||
"Junio", | ||
"Julio", | ||
"Agosto", | ||
"Septiembre", | ||
"Octubre", | ||
"Noviembre", | ||
"Diciembre", | ||
], | ||
shortMonths: [ | ||
"Enero", | ||
"Feb", | ||
"Mar", | ||
"Abr", | ||
"Mayo", | ||
"Jun", | ||
"Jul", | ||
"Agosto", | ||
"Sept", | ||
"Oct", | ||
"Nov", | ||
"Dic", | ||
], | ||
}, | ||
}; | ||
@@ -222,3 +366,3 @@ if (name in lang) { | ||
} else { | ||
console.error("Language: "+name+" not recognised.") | ||
console.error("Language: " + name + " not recognised."); | ||
} | ||
@@ -225,0 +369,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
925297
7886
107