You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "phamhieu1412 (via GitHub)" <gi...@apache.org> on 2024/06/17 09:48:09 UTC

Re: [I] [Bug] Echarts - Tooltip goes out of page/window if text is long [echarts]

phamhieu1412 commented on issue #16699:
URL: https://github.com/apache/echarts/issues/16699#issuecomment-2172915966

   in my case, i fix that:
   
   formatter: `<div style="padding: 0px 0px 0px 0px;">
                 <div style="background-color: #FF0025; width: 100px; white-space:pre-wrap">thu thuan kinh doanh khong gom tbt abc aaa aabc adcv scva ads afffs casc sasd</div>
                 <div style="display: flex; align-items: center; margin: 9px 0px 10px 0px;">
                   <div style="width: 10px; height: 10px; background-color: ${
                     styles.maxPointColor.backgroundColor
                   };border-radius: 10px;"></div>
                   <div style="margin-left: 8px;">{c0}</div>
                 </div>
                 <div style="display: flex; align-items: center; margin: 9px 0px 0px 0px;">
                   <div style="width: 10px; height: 10px; background-color: ${
                     styles.thPointColor.backgroundColor
                   };border-radius: 10px;"></div>
                   <div style="margin-left: 8px;">{c1}</div>
                 </div>
               </div>`,


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org