How to make the tooltip not display the hour, minute and second when the ecahrts scatter chart type=time

1. Problem:
When implementing the echarts chart with the x-axis as the time axis and the combination of the scatter chart and the line chart, I encountered a problem, as shown in the figure:

insert image description here
2. Imagine:
the requirement does not need to display the hour, minute and second of the date, but the scatter The graph needs time, minute, and second data. The desired effect is as follows:

insert image description here
3. Realize the configuration
inxAxis


axisPointer: {
    
    
     label: {
    
    
     formatter: function (params) {
    
    
         var date = new Date(params.value)
         var day = date.toLocaleDateString();
         return day;
     }
 }}

I hope the recorded problem can help you~

Guess you like

Origin blog.csdn.net/weixin_52443895/article/details/129063050
Recommended