xela92 commented on issue #19377:
URL: https://github.com/apache/echarts/issues/19377#issuecomment-2454945720

   It seems I may have a workaround.
   
   I tried to fully replace the tooltip with a templated string with some html 
inside, like this:
   
   ```
   options: {
   [...],
   tooltip: {
      formatter: (params) => `
                <div><i>${moment(params[0].axisValue).format('ddd YYYY-MM-DD 
HH:mm')}</i></div>
                <div class="mt-[10px]">
                ${params
                  .map(
                    (series) =>
                      `
                     <div class="flex gap-[5px] items-center mb-[5px]">
                         <svg width="20" height="20">
                             <circle cx="10" cy="10" r="5" 
fill="${series.color}" />  
                         </svg>
                         ${series.seriesName}: <b>series.data</b></text>
                     </div>
                     `,
                  )
                  .join('\n')}
                 </div>`
      }
   ```
   
   and I found out my example now works with Google Chrome without crashing.
   
   Without this workaround, with approx 1500-2000 items moving between the 
items would lead to crash after seconds; now it seems I'm unable to make it 
crash again.
   
   That would mean that the issue is in the way the internat tooltip is 
managed, maybe some kind of caching strategy?
   
   Hope it helps!


-- 
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