av pop wip
This commit is contained in:
1 parent
96b1353915
commit
a8e3c62185
4 files changed
+18
-8
No files matched your search
@@ -28,7 +28,7 @@ class ChartEvent extends ChartWidget
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" viewBox="0 0 256 256"><path d="M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8Zm144-8.9c0,35.52-29,64.64-64,64.9a64,64,0,0,1-64-64V56H192ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"></path></svg>
|
||||
Events
|
||||
</span>
|
||||
<span>'.$this->type.'</span>
|
||||
<span>' . $this->type . '</span>
|
||||
</span>
|
||||
');
|
||||
}
|
||||
@@ -62,10 +62,15 @@ class ChartEvent extends ChartWidget
|
||||
tooltip: {
|
||||
callbacks: {
|
||||
label: (context) => {
|
||||
return [' '+context.parsed.y, ' '+context.dataset.playing_date[context.dataIndex], ' '+context.dataset.events[context.dataIndex], ' '+context.dataset.results_per_event[context.dataIndex]];
|
||||
if(context.dataset.label == 'Average League' || context.dataset.label == 'Average Team'){
|
||||
return [context.dataset.label+' '+context.dataset.data[0]];
|
||||
}
|
||||
else {
|
||||
return [' '+context.parsed.y, ' '+context.dataset.playing_date[context.dataIndex], ' '+context.dataset.events[context.dataIndex], ' '+context.dataset.results_per_event[context.dataIndex]];
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
|
||||
@@ -27,7 +27,7 @@ class ChartEventMoAv extends ChartWidget
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" viewBox="0 0 256 256"><path d="M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8Zm144-8.9c0,35.52-29,64.64-64,64.9a64,64,0,0,1-64-64V56H192ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"></path></svg>
|
||||
Events
|
||||
</span>
|
||||
<span>'.$this->type.' Moving Average</span>
|
||||
<span>' . $this->type . ' Moving Average</span>
|
||||
</span>
|
||||
');
|
||||
}
|
||||
@@ -66,7 +66,12 @@ class ChartEventMoAv extends ChartWidget
|
||||
tooltip: {
|
||||
callbacks: {
|
||||
label: (context) => {
|
||||
return [' '+context.parsed.y, ' '+context.dataset.playing_date[context.dataIndex], ' '+context.dataset.events[context.dataIndex], ' '+context.dataset.results_per_event[context.dataIndex]];
|
||||
if(context.dataset.label == 'Average League' || context.dataset.label == 'Average Team'){
|
||||
return [context.dataset.label+' '+context.dataset.data[0]];
|
||||
}
|
||||
else {
|
||||
return [' '+context.parsed.y, ' '+context.dataset.playing_date[context.dataIndex], ' '+context.dataset.events[context.dataIndex], ' '+context.dataset.results_per_event[context.dataIndex]];
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
@@ -46,8 +46,8 @@ class StatsMedianAverage extends StatsOverviewWidget
|
||||
$this->columns = [
|
||||
'default' => 1,
|
||||
'sm' => 2,
|
||||
'md' => 3,
|
||||
'lg' => $max_boxes,
|
||||
'lg' => 4,
|
||||
'xl' => $max_boxes,
|
||||
];
|
||||
|
||||
$statistic_type = HelperStatisticType::get($this->filters);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function animate(element, end, fixtotwo) {
|
||||
console.log(element, end);
|
||||
// console.log(element, end);
|
||||
|
||||
var element = document.getElementById(element);
|
||||
const startTime = performance.now();
|
||||
|
||||
Reference in new issue
Block a user