Skip to content

Commit

Permalink
fix order map chart dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ClicShopping committed May 2, 2023
1 parent 36ef2d0 commit 5749197
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
3.424
add missing products_no_purchased files

fix order map chart dashboard


-------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@ public function getOutput()

$content_width = 'col-md-' . (int)MODULE_ADMIN_DASHBOARD_ORDER_MAP_APP_CONTENT_WIDTH;

$output = '<div class="col-12 ' . $content_width . ' d-flex" style="padding-right:0.5rem; padding-top:0.5rem">';
$output = '<div class="col-12 ' . $content_width . ' d-flex" style="padding-right:0.5rem; padding-top:0.5rem; height:310px;">';
$output .= '<div class="card flex-fill w-100">';
$output .= '<div class="map-container">';
$output .= '<div id="vmap"></div>';
$output .= '<div class="separator"></div>';
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '<div class="separator"></div>';


$output .= '
<script>
$(document).ready(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function display(): string|bool
if (isset($_SESSION['admin'])) {
$output = '<!-- Start Chart -->' . "\n";
$output .= '<link href="https://cdn.jsdelivr.net/npm/chart.css" rel="stylesheet" crossorigin="anonymous">' . "\n";
$output .= '<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>' . "\n";
$output .= '<script src="https://cdn.jsdelivr.net/npm/chart.js@4.3.0"></script>' . "\n";
$output .= '<!-- End Chart -->' . "\n";
} else {
return false;
Expand Down

0 comments on commit 5749197

Please sign in to comment.