//CHART var $capteurChart = $('#luminosite-chart') //------------- //- MESURES CHART - //-------------- // eslint-disable-next-line no-unused-vars var capteurChart = new Chart($capteurChart, { data: { labels: {!! json_encode($t_labels) !!}, datasets: [ { label: {!! json_encode($label_legend) !!}, type: 'line', data: {!! json_encode($t_data_luminosite) !!}, backgroundColor: 'transparent', borderColor: '{!! $t_colors['Luminosité'] !!}', pointBorderColor: '{!! $t_colors['Luminosité'] !!}', pointBackgroundColor: '{!! $t_colors['Luminosité'] !!}', fill: false // pointHoverBackgroundColor: '#007bff', // pointHoverBorderColor : '#007bff' } ] }, options: { maintainAspectRatio: false, tooltips: { mode: mode, intersect: intersect }, hover: { mode: mode, intersect: intersect }, legend: { display: false, }, scales: { yAxes: [{ display: true, gridLines: { display: true, lineWidth: '4px', color: 'rgba(0, 0, 0, .2)' }, ticks: $.extend({ beginAtZero: true, suggestedMax: {!! $max !!} }, ticksStyle) }], xAxes: [{ display: true, gridLines: { display: true }, ticks: ticksStyle }] } } })