Chartjs-How to use canvasjs to draw column chart using text data

0👍

You must have to read the file to two separate datasets (LABELS and DATA) and insert them like this:

  data = {
          labels: ["DNS_SERVER", "FTP_SERVER", "AUTH_SERVER"],
          datasets: [{
             label: 'Performance',
              data: [2.768651, 2.488129, 2.768651]
                    }]
         };

Above is a nominal way.
You can change “labels:” dataset and “data:” dataset for your loaded data.

Leave a comment