Как писать горизонтальные числа на линии - график JS - PullRequest
0 голосов
/ 14 апреля 2020

Привет, ребята , я использую плагин JS, как мне написать эти вертикальные числа ? А как мне удалить горизонтальные числа ? введите описание изображения здесь Помогите мне пожалуйста

Это мой код

var ctx = document.getElementById('myChart').getContext('2d');
var chart = new Chart(ctx, {
    // The type of chart we want to create
    type: 'line',

    // The data for our dataset
    data: {
        labels: ['1.00x', '2.00x', '3.00x', '4.00x'], //, '5.00x', '8.00x', '7.00x'
        datasets: [{
            borderColor: '#00eeff',
            backgroundColor: 'transparent',
            borderDash: [7, 7],
            pointBorderColor: '#00eeff',
            pointBackgroundColor: '#00eeff',
            pointRadius: 5,
            pointHoverRadius: 10,
            pointHitRadius: 30,
            pointBorderWidth: 2,
            pointStyle: 'rectRounded',
            backgroundColor: 'rgba(54, 162, 235, 0.2)',
            borderColor: '#00eeff',
            data: [0]
        }]
    },

    // Configuration options go here
    options: {
    legend: {
      display: false
    },
    scales: {

    },
    tooltips: {
      mode: false,
      callbacks: {
        title: function() {},
        label: function() {}
      }
    }
  },
});
...