首页 > 其他 > 详细

echarts配置更改图形大小标识等等

时间:2015-06-01 09:41:54      阅读:274      评论:0      收藏:0      [点我收藏+]

$(‘.line’).echarts({

    tooltip : {
    trigger: ‘item‘,
    formatter:‘漏洞数量<br/> {a}漏洞 {b}:{c}个‘//悬浮框显示

    },



    type: ‘bar‘,
    data: data,

//柱形图距离远近
barWidth:40,
barGap:’10%’,
labels: [‘高危’,’中危’,’低危’],//图标曲线代表
xAxis: [
{
type: ‘category’
}
],
yAxis: [
{
type: ‘value,
name: ”,
axisLabel: {
formatter: ”
}
}
],
grid:{//宽高
x:30,
x2:50

    },
    markLine: [[{//添加自定义线

                    tooltip : {

    formatter:‘漏洞数量<br/>{b}:{c}‘

},

        name: ‘平均值‘,
        value: avg_val,
        x: 30,
        yAxis: avg_val
    }, {
            xAxis: 100000,
        yAxis: avg_val
    }]]
});

echarts配置更改图形大小标识等等

原文:http://blog.csdn.net/merlin_feng/article/details/46295141

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!