Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
}
],
"require": {
"php": ">=7.1.0",
"laravel/nova": "^4.0"
"php": ">=8.0",
"laravel/nova": "^5.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/chart-js-integration.js

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion dist/js/chart-js-integration.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
/*!
* Chart.js v3.7.1
* @kurkle/color v0.2.1
* https://github.com/kurkle/color#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT License
*/

/*!
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/

/*!
* chartjs-plugin-annotation v2.2.1
* https://www.chartjs.org/chartjs-plugin-annotation/index
* (c) 2023 chartjs-plugin-annotation Contributors
* Released under the MIT License
*/
10,446 changes: 5,592 additions & 4,854 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
"vue-template-compiler": "^2.6.14"
},
"dependencies": {
"chart.js": "^3.7.0",
"chartjs-plugin-datalabels": "^2.0.0",
"chart.js": "^3.9.1",
"chartjs-plugin-annotation": "^2.2.1",
"chartjs-plugin-datalabels": "^2.2.0",
"serialize-javascript": "^4.0.0",
"sweetalert2": "^9.17.1",
"vue": "^3.2.31",
"vue-chartjs": "^4.0.0"
"vue": "^3.5.14",
"vue-chartjs": "^4.1.2"
}
}
24 changes: 12 additions & 12 deletions resources/js/chart-js-integration.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import ChartDataLabels from 'chartjs-plugin-datalabels';
import AnnotationPlugin from 'chartjs-plugin-annotation';
import { Chart, registerables } from 'chart.js';

import StackedChart from './components/StackedChart'
import BarChart from './components/BarChart'
import LineChart from './components/StripeChart'
import DoughnutChart from './components/DoughnutChart'
import PieChart from './components/PieChart'
import PolarAreaChart from './components/PolarAreaChart'
import ScatterChart from './components/ScatterChart'
import StackedChart from './components/StackedChart';
import BarChart from './components/BarChart';
import LineChart from './components/StripeChart';
import DoughnutChart from './components/DoughnutChart';
import PieChart from './components/PieChart';
import PolarAreaChart from './components/PolarAreaChart';
import ScatterChart from './components/ScatterChart';

Nova.booting((Vue) => {
const textColor = getComputedStyle(document.documentElement)
.getPropertyValue('--colors-gray-400');
const textColor = getComputedStyle(document.documentElement).getPropertyValue('--colors-gray-400');

Chart.unregister(ChartDataLabels);
// Chart.register(ChartDataLabels);
Chart.register(AnnotationPlugin);
Chart.register(...registerables);
Chart.defaults.color = `rgba(${textColor}, 1)`;

Expand All @@ -24,5 +25,4 @@ Nova.booting((Vue) => {
Vue.component('pie-chart', PieChart);
Vue.component('polar-area-chart', PolarAreaChart);
Vue.component('scatter-chart', ScatterChart);
})

});
Loading