A
A
Antonio092020-04-25 22:35:56
JavaScript
Antonio09, 2020-04-25 22:35:56

How to make the window pop up in chartjs not only when hovering over a point on the chart, but always (when hovering over a bar, the value pops up)?

Or is it not possible in this library?
https://codepen.io/Shokeen/pen/dvRoLN

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Andreev, 2020-04-25
@Antonio09

var chartOptions = {
  legend: {
    display: true,
    position: 'top',
    labels: {
      boxWidth: 80,
      fontColor: 'black'
    }
  },
  //Добавить это:
  tooltips: {
  mode: 'x-axis'
},
};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question