troubleshooting Question

Chart.js Question

Avatar of Bob Schneider
Bob SchneiderFlag for United States of America asked on
ASPJavaScriptMicrosoft SQL Server
3 Comments1 Solution8 ViewsLast Modified:
Hi!  I am implementing a Chart.js into my classic ASP/SQL Server web page.  I have successfully implemented the "demo" code.  How can I replace the demo arrays for x and y with values from my db using classic asp?
                                    var xValues = [50,60,70,80,90,100,110,120,130,140,150];
                                    var yValues = [7,8,8,9,9,9,10,11,14,14,15];
                                    new Chart("myChart", {
                                    type: "line",
                                    data: {
                                        labels: xValues,
                                        datasets: [{
                                        fill: false,
                                        lineTension: 0,
                                        backgroundColor: "rgba(0,0,255,1.0)",
                                        borderColor: "rgba(0,0,255,0.1)",
                                        data: yValues
                                    options: {
                                        legend: {display: false},
                                        scales: {
                                        yAxes: [{ticks: {min: 6, max:16}}],

Open in new window

Thank you!
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros