|
@@ -174,18 +174,18 @@ const barOptions = {
|
|
|
data: ['Punch Card'],
|
|
|
left: 'right'
|
|
|
},
|
|
|
- // tooltip: {
|
|
|
- // position: 'top',
|
|
|
- // formatter: function (params) {
|
|
|
- // return (
|
|
|
- // params.value[2] +
|
|
|
- // ' commits in ' +
|
|
|
- // hours[params.value[0]] +
|
|
|
- // ' of ' +
|
|
|
- // days[params.value[1]]
|
|
|
- // );
|
|
|
- // }
|
|
|
- // },
|
|
|
+ tooltip: {
|
|
|
+ position: 'top',
|
|
|
+ formatter: function (params) {
|
|
|
+ return (
|
|
|
+ params.value[2] +
|
|
|
+ ' commits in ' +
|
|
|
+ hours[params.value[0]] +
|
|
|
+ ' of ' +
|
|
|
+ days[params.value[1]]
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
grid: {
|
|
|
left: 2,
|
|
|
bottom: 10,
|
|
@@ -221,11 +221,11 @@ const barOptions = {
|
|
|
name: 'Punch Card',
|
|
|
type: 'scatter',
|
|
|
symbolSize: function (val) {
|
|
|
- return val[2] / 100;
|
|
|
+ return val[2] / 500;
|
|
|
},
|
|
|
data: [],
|
|
|
animationDelay: function (idx) {
|
|
|
- return idx / 100;
|
|
|
+ return idx / 500;
|
|
|
}
|
|
|
}
|
|
|
]
|