Chart.js Test
How do I make an chart.js test?
What is a chart.js test? How do you make a chart.js test? This script and codes were developed by Valentin Treu on 20 December 2022, Tuesday.
Chart.js Test - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Chart.js Test</title>
</head>
<body> <html> <head> <meta charset="utf-8" /> <title></title> <script data-require="jquery" data-semver="2.1.4" src="https://code.jquery.com/jquery-2.1.4.js"></script> <script src="charts2.0.js"></script> </head> <body> <canvas id="canvas"></canvas> <script> var barChartData = { labels: ["Mai 2015", "September 2015", "Mai 2016", "September 2016"], datasets: [ { label: "Punkte", type:'line', data: [130, 155, 145, 170], fill: false, borderColor: '#EC932F', backgroundColor: '#EC932F', pointBorderColor: '#EC932F', pointBackgroundColor: '#EC932F', pointHoverBackgroundColor: '#EC932F', pointHoverBorderColor: '#EC932F', yAxisID: 'y-axis-1' }, { type: 'line', showLine: false, label: "Platz", data: [51, 65, 40, 49], fill: false, backgroundColor: '#71B37C', borderColor: '#71B37C', hoverBackgroundColor: '#71B37C', hoverBorderColor: '#71B37C', pointBorderWidth: 1, pointHoverRadius: 10, pointHoverBackgroundColor: "rgba(75,192,192,1)", pointHoverBorderColor: "rgba(220,220,220,1)", pointHoverBorderWidth: 2, pointRadius: 10, pointHitRadius: 10, pointBackgroundColor: ['#EC932F', '#123123', '#555555', '#999999'], yAxisID: 'y-axis-2' } ] }; window.onload = function() { var ctx = document.getElementById("canvas").getContext("2d"); window.myBar = new Chart(ctx, { type: 'line', data: barChartData, options: { responsive: true, tooltips: { enabled: true, mode: 'single', callbacks: { label: function(item, data) { console.log(data); if (item.datasetIndex == 1) { return data.datasets[1].label + ': ' + item.yLabel + ' (Winners Group)'; } return data.datasets[0].label + ': ' + item.yLabel; } } }, elements: { line: { fill: false, tension: 0 } }, scales: { xAxes: [{ display: true, gridLines: { display: true }, labels: { show: true }, ticks: { beginAtZero: false }, position: "bottom" }], yAxes: [{ type: "linear", display: true, position: "left", id: "y-axis-1", gridLines:{ display: true }, labels: { show:true, } }, { type: "linear", display: true, position: "right", id: "y-axis-2", gridLines:{ display: false }, labels: { show:true, } }] } } }); }; </script> </body>
</html> <script src='https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.2/Chart.min.js'></script>
</body>
</html>
Developer | Valentin Treu |
Username | rivella50 |
Uploaded | December 20, 2022 |
Rating | 3 |
Size | 2,148 Kb |
Views | 14,168 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Cegmka | 2,065 Kb |
Pure CSS3 News Ticker V2 | 2,802 Kb |
Chart Legend | 1,975 Kb |
Signature | 1,741 Kb |
Guestbook Entries | 1,734 Kb |
Beispiel Kaskade | 1,405 Kb |
Infobox video | 2,124 Kb |
Bootstrap 4 Gridsystem Demo | 1,535 Kb |
Float example | 2,045 Kb |
Infobox artikel | 1,893 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Fading Navigation Bar | J-w-v | 2,805 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
Sequence.js - Sliding Horizontal Parallax | Maheshc | 4,537 Kb |
Sign Up Form | Sicontis | 5,272 Kb |
Typefaces with descriptions | Megandoty | 2,944 Kb |
Long Shadow Button | Uixcrazy | 3,550 Kb |
Experiment - SCSS SVG Background Image with Variables | See8ch | 3,270 Kb |
Freecodecamp - Tribute Page | Samoht513 | 3,583 Kb |
A Pen by Oliver Schafeld | Schafeld | 1,720 Kb |
Shape Outside - Polygon | Stacy | 3,954 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!