Así que estoy creando un gráfico de líneas donde he mostrado el eje x con el tiempo en formato 'HH: mm' pero en la información sobre herramientas quiero mostrar el tiempo en 'HH: mm: ss'. Si estoy tratando de personalizar mi información sobre herramientas, toma cada segundo como 0. ¿Hay alguna forma de personalizar la información sobre herramientas para que los segundos sean visibles correctamente?
x-axis: ["11:05", "11:06", "11:06", "11:07", "11:07", "11:08", "11:08", "11:09"] If I convert it to seconds then the data will be ["11:05:30", "11:06:00", "11:06:30", "11:07:00", "11:07:30", "11:08:00", "11:08:30", "11:09:00"] but I need to display my x axis only in hours and minutes. callback function: tooltips: { callbacks: { title: (tooltipItems, data) => { let label = tooltipItems[0].label; label = momentInstance(labelText, 'hh:mm:ss').format(MMM DD - hh:mm:ss A'); return label; }, } It is displaying as "11:05:00", "11:06:00", "11:06:00", "11:07:00", "11:07:00", "11:08:00", "11:08:00", "11:09:00" for each data point.