- aggiornato sistema per inviare le newsletter !
This commit is contained in:
@@ -7,7 +7,7 @@ import { useGlobalStore } from '@store/globalStore'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { useQuasar } from 'quasar'
|
||||
|
||||
import { Chart, ChartItem, ChartConfiguration } from 'chart.js'
|
||||
import { Chart, BarController, BarElement, LineController, LinearScale, CategoryScale, PointElement, LineElement, Title, ChartItem, ChartConfiguration } from 'chart.js';
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
@@ -68,6 +68,9 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function mounted() {
|
||||
Chart.register(BarController, BarElement,
|
||||
LineController, LinearScale, CategoryScale, PointElement, LineElement, Title);
|
||||
|
||||
myarrdata.value = []
|
||||
myarrdataLine.value = []
|
||||
myarrbg.value = []
|
||||
@@ -173,7 +176,7 @@ export default defineComponent({
|
||||
fill: true,
|
||||
}
|
||||
|
||||
if (props.showMedia)
|
||||
if (props.showMedia && myarrdataLine.value)
|
||||
chartData.datasets.push(media)
|
||||
|
||||
const configBar: ChartConfiguration = {
|
||||
|
||||
Reference in New Issue
Block a user