Montinew commented on issue #15488:
URL: https://github.com/apache/echarts/issues/15488#issuecomment-3648204171

   I found a practical workaround that works reliably for me.
   
   **Problem:**
   With asynchronous time series (timestamps differ slightly), tooltip 
aggregation fails because exact x-value alignment is required.
   
   **Workaround:**
   Bind each series to its own `time` xAxis and enable `tooltip.smartFormatter`.
   smartFormatter allows the tooltip to display a single, consolidated 
timestamp instead of showing a separate timestamp per series.
   Additional xAxes can be hidden.
   
   ```
   {
     "tooltip": { "smartFormatter": true },
     "xAxis": [
       { "type": "time" },
       { "type": "time", "show": false },
       { "type": "time", "show": false }
     ],
     "yAxis": { "type": "value" },
     "series": [
       { "name": "Series 1", "type": "line", "xAxisIndex": 0, "data": [[t1, 
v1]] },
       { "name": "Series 2", "type": "line", "xAxisIndex": 1, "data": [[t2, 
v2]] },
       { "name": "Series 3", "type": "line", "xAxisIndex": 2, "data": [[t3, 
v3]] }
     ]
   }
   ```
   <img width="1462" height="662" alt="Image" 
src="https://github.com/user-attachments/assets/6400009a-75ec-4515-9751-4c3ffff35b8e";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to