commit
3ee70a7d8c
@ -237,6 +237,9 @@ abstract class Report
|
||||
->setColors(array_values($colors))
|
||||
->setDataset($this->tables[$table_key], 'donut', array_values($values));
|
||||
|
||||
$chart->options['legend']['width'] = 150;
|
||||
$chart->options['legend']['position'] = 'right';
|
||||
|
||||
return $chart;
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,9 @@ class ExpensesByCategory extends Widget
|
||||
|
||||
$chart = $this->getDonutChart(trans_choice('general.expenses', 2), '100%', 300, 6);
|
||||
|
||||
$chart->options['legend']['width'] = 210;
|
||||
$chart->options['legend']['position'] = 'right';
|
||||
|
||||
return $this->view('widgets.donut_chart', [
|
||||
'chart' => $chart,
|
||||
]);
|
||||
|
12
public/css/app.css
vendored
12
public/css/app.css
vendored
@ -46881,7 +46881,7 @@ input[type="date"]::-webkit-inner-spin-button,
|
||||
border-bottom-right-radius: 4px;
|
||||
cursor: pointer !important;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 0 !important;
|
||||
margin-bottom: -8px !important;
|
||||
}
|
||||
|
||||
.el-select__footer:hover {
|
||||
@ -46902,11 +46902,7 @@ input[type="date"]::-webkit-inner-spin-button,
|
||||
}
|
||||
|
||||
.el-select-dropdown__list {
|
||||
padding: 8px 0 0 0;
|
||||
}
|
||||
|
||||
.el-select-dropdown__item:last-child {
|
||||
margin-bottom: 8px;
|
||||
padding: 8px 0 8px 0;
|
||||
}
|
||||
|
||||
.el-select .el-select__tags {
|
||||
@ -48223,6 +48219,10 @@ body{
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.sm\:grid-cols-2{
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.sm\:grid-cols-3{
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
@ -157,7 +157,7 @@ export default {
|
||||
description: "Widget Dashboard Id"
|
||||
},
|
||||
widget_id: {
|
||||
type: Number,
|
||||
type: [Number, String],
|
||||
default: 0,
|
||||
description: "Edit Widget ID"
|
||||
},
|
||||
|
8
resources/assets/sass/app.css
vendored
8
resources/assets/sass/app.css
vendored
@ -309,7 +309,7 @@
|
||||
border-bottom-right-radius: 4px;
|
||||
cursor: pointer !important;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 0 !important;
|
||||
margin-bottom: -8px !important;
|
||||
}
|
||||
|
||||
.el-select__footer:hover {
|
||||
@ -330,11 +330,7 @@
|
||||
}
|
||||
|
||||
.el-select-dropdown__list {
|
||||
padding: 8px 0 0 0;
|
||||
}
|
||||
|
||||
.el-select-dropdown__item:last-child {
|
||||
margin-bottom: 8px;
|
||||
padding: 8px 0 8px 0;
|
||||
}
|
||||
|
||||
.el-select .el-select__tags {
|
||||
|
Loading…
x
Reference in New Issue
Block a user