.github
app
bootstrap
config
database
modules
overrides
public
resources
assets
css
js
components
Breadcrumb
Cards
Charts
BarChart.js
DoughnutChart.js
LineChart.js
PieChart.js
config.js
globalOptionsMixin.js
optionHelpers.js
Collapse
CreditCard
Feed
Inputs
Navbar
NotificationPlugin
SidebarPlugin
Tabs
Timeline
WorldMap
forms
AkauntingCarousel.vue
AkauntingCompanyEdit.vue
AkauntingContactCard.vue
AkauntingCountdown.vue
AkauntingCurrencyConversion.vue
AkauntingDate.vue
AkauntingDropzoneFileUpload.vue
AkauntingEditItemColumns.vue
AkauntingHtmlEditor.vue
AkauntingItemButton.vue
AkauntingModal.vue
AkauntingModalAddNew.vue
AkauntingMoney.vue
AkauntingRecurring.vue
AkauntingSearch.vue
AkauntingSelect.vue
AkauntingSelectRemote.vue
AkauntingWidget.vue
Badge.vue
BaseAlert.vue
BaseButton.vue
BaseDropdown.vue
BaseHeader.vue
BasePagination.vue
BaseProgress.vue
BaseSlider.vue
BaseSwitch.vue
BaseTable.vue
ButtonCheckbox.vue
ButtonRadioGroup.vue
CloseButton.vue
DataRangePicker.vue
Field-Attributes.vue
LoadingPanel.vue
Modal.vue
NavbarToggleButton.vue
index.js
directives
mixins
plugins
views
Install.vue
bootstrap.js
install.js
polyfills.js
sass
lang
views
routes
storage
tests
.editorconfig
.env.example
.env.testing
.gitattributes
.gitignore
.htaccess
LICENSE.txt
README.md
artisan
composer.json
composer.lock
index.php
manifest.json
nginx.example.com.conf
package-lock.json
package.json
phpunit.xml
serviceworker.js
web.config
webpack.mix.js
31 lines
587 B
JavaScript
Vendored
31 lines
587 B
JavaScript
Vendored
import { Pie, mixins } from 'vue-chartjs';
|
|
import globalOptionsMixin from "@/components/Charts/globalOptionsMixin";
|
|
|
|
export default {
|
|
name: 'pie-chart',
|
|
extends: Pie,
|
|
mixins: [mixins.reactiveProp, globalOptionsMixin],
|
|
props: {
|
|
extraOptions: {
|
|
type: Object,
|
|
default: () => ({})
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
ctx: null
|
|
};
|
|
},
|
|
mounted() {
|
|
this.$watch(
|
|
'chartData',
|
|
(newVal, oldVal) => {
|
|
if (!oldVal) {
|
|
this.renderChart(this.chartData, this.extraOptions);
|
|
}
|
|
},
|
|
{ immediate: true }
|
|
);
|
|
}
|
|
};
|