Download app/static/js/chart.js from rastof9/fb: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/spaces/rastof9/fb/resolve/main/app/static/js/chart.js
- Command line
-
hf download hf://spaces/rastof9/fb/app/static/js/chart.js
-
curl -L -o chart.js https://huggingface.co/spaces/rastof9/fb/resolve/main/app/static/js/chart.js
687 Bytes
| document.addEventListener("DOMContentLoaded", function () { | |
| const ctx = document.getElementById('sentimentChart').getContext('2d'); | |
| const sentimentData = JSON.parse(document.getElementById('sentimentData').textContent); | |
| new Chart(ctx, { | |
| type: 'line', | |
| data: { | |
| labels: sentimentData.dates, | |
| datasets: [{ | |
| label: 'Sentiment Trend', | |
| data: sentimentData.scores, | |
| borderColor: '#0073e6', | |
| fill: false | |
| }] | |
| }, | |
| options: { | |
| scales: { | |
| y: { | |
| beginAtZero: true | |
| } | |
| } | |
| } | |
| }); | |
| }); |