You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by "yaya0144 (GitHub)" <gi...@apache.org> on 2018/08/25 07:31:01 UTC

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

 在tooltip中重新设置了字体大小
 tooltip: {
            trigger: 'axis' ,
            textStyle: {
                fontSize:24
            }
        }

悬浮框的字变大了 ,但是前面的小圆点没有变化

期望效果:类目前小圆点可以调节大小

[ Full content available at: https://github.com/apache/incubator-echarts/issues/8945 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

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

Posted by "Ovilia (GitHub)" <gi...@apache.org>.
通过 http://echarts.baidu.com/option.html#tooltip.extraCssText 修改样式

[ Full content available at: https://github.com/apache/incubator-echarts/issues/8945 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

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

Posted by "yaya0144 (GitHub)" <gi...@apache.org>.
我暂时改了源码 
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>';
}

[ Full content available at: https://github.com/apache/incubator-echarts/issues/8945 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [incubator-echarts] Ovilia closed issue #8945: tooltip默认类目值前面的有色圆点不能够调节大小

Posted by "Ovilia (GitHub)" <gi...@apache.org>.
[ issue closed by Ovilia ]

[ Full content available at: https://github.com/apache/incubator-echarts/issues/8945 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org