Add auto-progression engine (ProgressionService) with rep increase, weight increase, deload, and felt-easy acceleration rules. Add AnalyticsService for user stats, exercise progress charts, and volume-by-day data. New dashboard and schedule routes with Chart.js visualizations. Progression badges shown inline on workout day view. Navigation updated with Dashboard and Schedule links. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
885 B
HTML
31 lines
885 B
HTML
<canvas id="volume-chart" style="max-height:300px;"></canvas>
|
|
<script>
|
|
(function() {
|
|
var data = {{ volume_data_json|safe }};
|
|
var labels = Object.keys(data);
|
|
var values = Object.values(data);
|
|
|
|
new Chart(document.getElementById('volume-chart'), {
|
|
type: 'bar',
|
|
data: {
|
|
labels: labels,
|
|
datasets: [{
|
|
label: 'Total Volume (lbs)',
|
|
data: values,
|
|
backgroundColor: 'rgba(99, 102, 241, 0.7)',
|
|
borderColor: 'rgba(99, 102, 241, 1)',
|
|
borderWidth: 1
|
|
}]
|
|
},
|
|
options: {
|
|
responsive: true,
|
|
plugins: { legend: { display: false } },
|
|
scales: {
|
|
y: { beginAtZero: true, ticks: { color: '#ccc' } },
|
|
x: { ticks: { color: '#ccc' } }
|
|
}
|
|
}
|
|
});
|
|
})();
|
|
</script>
|