Personal tools

Template:TestTemplate: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 4: Line 4:
<script language="javascript" type="text/javascript" src="/resource_browser/rb_js/highcharts/modules/exporting.js"></script>
<script language="javascript" type="text/javascript" src="/resource_browser/rb_js/highcharts/modules/exporting.js"></script>
<script type="text/javascript">
<script type="text/javascript">
var data = [];
var content = "</html>{{{1}}}<html>";
var content = "</html>{{{1}}}<html>";
var content_array = content.split(",");
var content_array = content.split(",");
Line 13: Line 14:
var counted = countItems(content,tmp);
var counted = countItems(content,tmp);
alert(tmp + " : " +counted);
alert(tmp + " : " +counted);
 
var x = [tmp , counted];
data.push(x);
}
}


Line 49: Line 51:
                 type: 'pie',
                 type: 'pie',
                 name: 'Browser share',
                 name: 'Browser share',
                 data: [
                 data: data
                    ['Firefox',  45.0],
                    ['IE',      26.8],
                    ['Dolphin',2] ,
                    {
                        name: 'Chrome',
                        y: 12.8,
                        sliced: true,
                        selected: true
                    },
                    ['Safari',    8.5],
                    ['Opera',    4.2],
                    ['Others',  0.7]
                ]
             }]
             }]
         });
         });

Revision as of 09:52, 12 June 2013