You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/08/25 07:59:58 UTC

[GitHub] yaya0144 commented on issue #8945: tooltip默认类目值前面的有色圆点不能够调节大小

yaya0144 commented on issue #8945: tooltip默认类目值前面的有色圆点不能够调节大小
URL: https://github.com/apache/incubator-echarts/issues/8945#issuecomment-415951266
 
 
   我暂时改了源码 
   function getTooltipMarker(opt, extraCssText) {
       opt = isString(opt) ? {color: opt, extraCssText: extraCssText} : (opt || {});
       var color = opt.color;
       var type = opt.type;
       var extraCssText = opt.extraCssText;
   
       if (!color) {
           return '';
       }
   
       return type === 'subItem'
           ? '<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;'
               + 'border-radius:4px;width:4px;height:4px;background-color:'
               + encodeHTML(color) + ';' + (extraCssText || '') + '"></span>'
           : '<span style="display:inline-block;margin-right:5px;'
               + 'border-radius:20px;width:20px;height:20px;background-color:'
               + encodeHTML(color) + ';' + (extraCssText || '') + '"></span>';
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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