Chart.js #5858 test01

by Akihiko Kusanagi

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"></script>
<canvas id="myChart"></canvas>

JavaScript

var ctx = document.getElementById('myChart').getContext('2d');
var chart = new Chart(ctx, {
  type: 'bubble',
  data: {
    labels: [0, 1, 2, 3],
    datasets: [{
      data: [{x:0,y:0}, {x:1,y:1}, {x:2,y:2}, {x:3,y:3}],
      fill: false,
      pointStyle: 'circle',
      backgroundColor: 'red',
      borderColor: 'black',
      borderWidth: 3,
    }]
  },
  "options": {
    /*"elements": {
      "point": {
        "rotation": [-180, -157.5, -135, -112.5, -90, -67.5, -45, -22.5, 0, 22.5, 45, 67.5, 90, 112.5, 135, 157.5, 180],
        "backgroundColor": gradient,
        "borderColor": "#cccccc"
      },
      "line": {
        fill: false
      }
    },*/
    "layout": {
      "padding": 20
    }
  }
});