@kvalev/vue-calendar-heatmap
Version:
A calendar heatmap Vuejs component built on SVG, inspired by github's contribution calendar graph
18 lines (12 loc) • 487 B
JavaScript
export const DEFAULT_RANGE_COLOR = ['#ebedf0', '#dae2ef', '#c0ddf9', '#73b3f3', '#3886e1', '#17459e']
export const DEFAULT_LOCALE = {
months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
days: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
on: 'on',
less: 'Less',
more: 'More'
}
export const DEFAULT_TOOLTIP_UNIT = 'contributions'
export const DAYS_IN_ONE_YEAR = 365
export const DAYS_IN_WEEK = 7
export const SQUARE_SIZE = 10