Skip to content

Commit

Permalink
changed chart type to pie
Browse files Browse the repository at this point in the history
  • Loading branch information
Emm-Anuel100 committed May 18, 2024
1 parent 14d9cb9 commit 89ace95
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion chart_views/custom_chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function updateChartData(data) {

// Chart instance
var myChart = new Chart(ctx, {
type: 'bar',
type: 'pie',
data: data,
options: options
});
Expand Down
2 changes: 1 addition & 1 deletion chart_views/general_chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function updateChartData(data) {
// Chart instance
var myChart = new Chart(ctx, {
type: 'bar',
type: 'pie',
data: data,
options: options
});
Expand Down
2 changes: 1 addition & 1 deletion chart_views/month_chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function updateChartData(data) {
// Chart instance
var myChart = new Chart(ctx, {
type: 'bar',
type: 'pie',
data: data,
options: options
});
Expand Down
2 changes: 1 addition & 1 deletion chart_views/today's_chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function updateChartData(data) {
// Chart instance
var myChart = new Chart(ctx, {
type: 'bar',
type: 'pie',
data: data,
options: options
});
Expand Down
2 changes: 1 addition & 1 deletion chart_views/week_chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function updateChartData(data) {
// Chart instance
var myChart = new Chart(ctx, {
type: 'bar',
type: 'pie',
data: data,
options: options
});
Expand Down
2 changes: 1 addition & 1 deletion chart_views/year_chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function updateChartData(data) {

// Chart instance
var myChart = new Chart(ctx, {
type: 'bar',
type: 'pie',
data: data,
options: options
});
Expand Down

0 comments on commit 89ace95

Please sign in to comment.