Skip to content

Commit

Permalink
fix var naming
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham committed Oct 31, 2024
1 parent 5b4155b commit 382ddaf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ function add_project_moves_chart_shortcode( $atts ) {
<canvas id="projectMovesChart"></canvas>
</div>
<script>
const project_archived_move_dates = <?php echo json_encode( $archived_move ); ?>;
const project_incubating_move_dates = <?php echo json_encode( $incubating_move ); ?>;
const project_graduated_move_dates = <?php echo json_encode( $graduated_move ); ?>;
const chart_archived_background_colors = <?php echo json_encode( $archived_background ); ?>;
const chart_incubating_background_colors = <?php echo json_encode( $incubating_background ); ?>;
const chart_graduated_background_colors = <?php echo json_encode( $graduated_background ); ?>;
const project_archived_move_dates = <?php echo json_encode( $archived_move ); ?>;
const project_incubating_move_dates = <?php echo json_encode( $incubating_move ); ?>;
const project_graduated_move_dates = <?php echo json_encode( $graduated_move ); ?>;
const moves_chart_archived_background_colors = <?php echo json_encode( $archived_background ); ?>;
const moves_chart_incubating_background_colors = <?php echo json_encode( $incubating_background ); ?>;
const moves_chart_graduated_background_colors = <?php echo json_encode( $graduated_background ); ?>;
</script>

<?php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ function projectMovesChart() {
{
label: 'Incubating',
data: project_incubating_move_dates,
backgroundColor: chart_incubating_background_colors
backgroundColor: moves_chart_incubating_background_colors
},
{
label: 'Graduated',
data: project_graduated_move_dates,
backgroundColor: chart_graduated_background_colors
backgroundColor: moves_chart_graduated_background_colors
},
{
label: 'Archived',
data: project_archived_move_dates,
backgroundColor: chart_archived_background_colors
backgroundColor: moves_chart_archived_background_colors
},
]
};
Expand Down

0 comments on commit 382ddaf

Please sign in to comment.