1. 程式人生 > 其它 >linux核心排程的機制 tasklet/workqueue/kthread_worker/kthreadx詳解及示例【轉】

linux核心排程的機制 tasklet/workqueue/kthread_worker/kthreadx詳解及示例【轉】

繪製基本雷達圖

 var option = { 
        title:{
            text:''
        },
        tooltip:{},
        radar:[{
            indicator:[
                {name:'易用性',max:'100'},
                {name:'功能',max:'100'},
                {name:'拍照',max:'100'},
                {name:'跑分',max:'100'},
                {name:
'續航',max:'100'}, ], shape:'circle',//圓形 splitNumber:5,//圈數 } ], series: [ { name:"手機評分", type:'radar', label:{ show:true, position:'bottom
' }, areaStyle:{}, data:[ { name:'華為手機', value:[80,90,80,82,90], areaStyle:{ color:'rgba(128,200,100,0.5)' } }, { name:
'中興手機', value:[70,82,75,70,78], areaStyle:{ color:'rgba(0,100,100,0.6)' } } ] } ],};

繪製多雷達圖

 

 var option = { 
        color:["red",'green','blue','#660099','#FA807','grey'],
        backgroundColor:'rgba(128,128,128,0.1)',
        title:{
            text:'多雷達圖',top:15,
            subtext:'202018013138李賢輝',
            textStyle:{color:'green'},left:240
        },
        tooltip:{trigger:'axis',backgroundColor:'rgba(0,0,250,0.8)'},
        toolbox:{
            show:true,
            feature:{
                saveAsImage:{show:true},
                dataView:{show:true },
            }
           
        },
        legend:{top:560,left:140,data:['某軟體','小米','蘋果','降水量','蒸發量',]},
        radar:[
            {
                nameGap:3,shape:'polygon',
                name:{
                    textStyle:{
                        forntSize:12,color:'#fff',backgroundColor:'green',
                        borderRadius:3,padding:[2,2]
                    }
                },
                indicator:[
                    {text:'品牌',max:100},{text:'內容',max:100},
                    {text:'可用性',max:100},{text:'功能',max:100},
                ],
                center:['25%','30%'],radius:80
            },
            {
                nameGap:3,shape:'polygon',
                name:{
                    textStyle:{
                        forntSize:12,color:'#fff',backgroundColor:'blue',
                        borderRadius:3,padding:[2,2]
                    }
                },
                indicator:[{text:'外觀',max:100},
                    {text:'拍照',max:100},{text:'系統',max:100},
                    {text:'效能',max:100},{text:'螢幕',max:100},
                ],
                center:['60%','30%'],radius:80
            },
            {
                nameGap:3,shape:'polygon',
                name:{
                    textStyle:{
                        forntSize:12,color:'red',backgroundColor:'lightblue',
                        borderRadius:3,padding:[2,2]
                    }
                },
                indicator:(function(){
                    var res = [];
                    for(var i=1;i <=12;i++){res.push({text:i+'',max:100});}
                    return res;
                })(),
                center:['41%','67%'],radius:80
            },
        ],
        series: [
            {
                type:'radar',tooltip:{trigger:'item'},
                itemStyle:{normal:{areaStyle:{type:'default'}}},
                data:[{value:[65,72,88,80],name:'某軟體'}]
            },
            {
                type:'radar',radarIndex:1,
                tooltip:{trigger:'item'},
                data:[
                    {value:[85,90,90,95,95],name:'小米'},
                    {value:[95,80,95,90,93],name:'蘋果'}
                ]
            },
            {
                type:'radar',radarIndex:2,
                tooltip:{trigger:'item'},
                itemStyle:{normal:{areaStyle:{type:'default'}}},
                data:[
                    {value:[5,6,9,56,69,73,77,88,50,22,7,5],name:'降水量'},
                    {value:[3,5,8,34,45,77,68,65,36,23,7,4],name:'蒸發量'}
                ]
            },
        ],};

瀏覽器佔比變化

  var option = { 
        backgroundColor:'rgba(204,204,204,0.7)',
        title:{
            text:'瀏覽器佔比變化',top:20,
            textStyle:{color:'blue'},left:30
        },
        tooltip:{trigger:'item',backgroundColor:'rgba(0,0,250,0.8)'},
        legend:{
            type:'scroll',bottom:15,
            data:(function(){
                var list = [];
                for (var i = 1 ;i <= 28;i++){
                    list.push(i + 2000 + '');
                }
                return list;
            })()
        },
        visualMap:{
            top:'47%',right:20,color:['red','yellow'],calculable:true
        },
        radar:{
            nameGap:3,
            indicator:[
                {text:'IE8-',max:400,color:'green'},
                {text:'IE9-',max:400,color:'green'},
                {text:'Safari',max:400,color:'blue'},
                {text:'Firefox',max:400,color:'blue'},
                {text:'Chrome',max:400,color:'red'},
            ],
        },
        series:(function(){
            var series =[];
            for(var i = 1;i<=28;i++){
                series.push({
                    name:'瀏覽器(資料純屬虛構)',type:'radar',Symbol:'none',
                    lineStyle:{width:1},
                    emphasis:{areaStyle:{color:'rgba(0,250,0,0.3)'}},
                    data:[
                        {
                            value:[
                                (40 - i) * 10,
                                (38 - i) * 4 +60,
                                i * 5 + 10,
                                i * 9,
                                i * i /2
                            ],
                            name:i+2000+''
                        }
                    ]
                });
            }
            return series
        })()
    };