zoukankan      html  css  js  c++  java
  • jQuery & highcharts

    jQuery, highcharts,

    http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js


    <script type="text/javascript">
    data4 =[[ ' UNREACH.GEN ' , 35.9 ] , [ ' ABR ' , 33.2 ] , [ ' NPD.FUNC.MUST ' , 6.2 ] , [ ' SV.FMT_STR.PRINT_FORMAT_MISMATCH.UNDESIRED ' , 5.1 ] , [ ' UNINIT.STACK.MIGHT ' , 3.1 ] , [ ' NPD.FUNC.MIGHT ' , 2.6 ] , [ ' NPD.CHECK.MIGHT ' , 1.8 ] , [ ' RH.LEAK ' , 1.2 ] , [ ' UNINIT.STACK.MUST ' , 1 ] , [ ' LOCRET.ARG ' , 1 ] , [ ' Others ' , 8.8 ]]

    var chart;
    $(document).ready(function() {
       chart = new Highcharts.Chart({
          chart: {
             renderTo: 'codespiechart'
          },
          title: {
             text: 'Top 10 Codes'
          },
          plotArea: {
             shadow: null,
             borderWidth: null,
             backgroundColor: null
          },
          tooltip: {
             formatter: function() {
                return '<b>'+ this.point.name +'</b>: '+ this.y +' %';
             }
          },
          plotOptions: {
             pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                enabled: true,
                    color: '#FFFFFF',
                    connectorColor: '#BDBDBD',
                    formatter: function() {
                        return '<b>'+ this.point.name +'</b>: '+ this.y +' %';
                        }
                 }
             }
          },
           series: [{
             type: 'pie',
             name: 'codespiechart',
             data: data4
          }]
       });
    });
    </script>

  • 相关阅读:
    栈的压入、弹出序列
    HM代码分析--TAppEncoder
    HM代码分析--TAppDecoder
    包含min函数的栈
    GMOJ 6841. 【2020.11.5提高组模拟】淘淘蓝蓝之树 林
    【2020.11.5提高组模拟】总结
    dsu on tree学习总结 (树上启发式合并)
    GMOJ 6847. 【2020.11.03提高组模拟】通往强者之路
    2020.11.03【NOIP提高A组】模拟
    【2020.11.02提高组模拟】总结
  • 原文地址:https://www.cnblogs.com/cutepig/p/2146107.html
Copyright © 2011-2022 走看看