Changes between Version 215 and Version 216 of WikiStart


Ignore:
Timestamp:
Jan 11, 2016 4:26:26 PM (21 months ago)
Author:
bphamhuu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v215 v216  
    1919  <fieldset>
    2020    <legend><b>rasdaman downloads</b></legend>
    21     <script src="http://www.amcharts.com/lib/3/amcharts.js"></script>
    22     <script src="http://www.amcharts.com/lib/3/serial.js"></script> 
    23     <script src="http://www.amcharts.com/lib/3/themes/light.js"></script>
    24     <script>
    25             var chart = AmCharts.makeChart("chartdiv", {
    26                 "type": "serial",
    27                 "theme": "light",
    28                 "marginRight": 20,
    29                 "autoMarginOffset": 10,
    30                 "dataDateFormat": "YYYY-MM-DD",
    31                 "valueAxes": [{
    32                         "id": "v1",
    33                         "axisAlpha": 0,
    34                         "position": "left"
    35                     }],
    36                 "balloon": {
    37                     "borderThickness": 1,
    38                     "shadowAlpha": 0
    39                 },
    40                 "fontSize": 14,
    41                 "graphs": [{
    42                         "id": "g1",
    43                         "bullet": "round",
    44                         "bulletBorderAlpha": 1,
    45                         "bulletColor": "#FFFFFF",
    46                         "bulletSize": 5,
    47                         "hideBulletsCount": 50,
    48                         "connect": true,
    49                         "lineThickness": 2,
    50                         "title": "red line",
    51                         "useLineColorForBulletBorder": true,
    52                         "valueField": "value",
    53                         "balloonText": "<div style='margin:2px; font-size:11px;'><span style='font-size:11px;color:#ddb510'>[[category]]</span><br><span style='font-size:11px;color:#1eff0a'><b>Downloads: [[value]]</b></span><br>[[description]]</div>",
    54                         //"balloonFunction": adjustBalloonText
    55                     }],
    56                 "chartScrollbar": {
    57                     "graph": "g1",
    58                     "oppositeAxis": false,
    59                     "offset": 30,
    60                     "scrollbarHeight": 20,
    61                     "backgroundAlpha": 0,
    62                     "selectedBackgroundAlpha": 0.1,
    63                     "selectedBackgroundColor": "#888888",
    64                     "graphFillAlpha": 0,
    65                     "graphLineAlpha": 0.5,
    66                     "selectedGraphFillAlpha": 0,
    67                     "selectedGraphLineAlpha": 0,
    68                     "autoGridCount": true,
    69                     "color": "#AAAAAA"
    70                 },
    71                 "chartCursor": {
    72                     "pan": true,
    73                     "valueLineEnabled": true,
    74                     "valueLineBalloonEnabled": true,
    75                     "cursorAlpha": 0,
    76                     "valueLineAlpha": 0.2
    77                 },
    78                 "categoryField": "date",
    79                 "categoryAxis": {
    80                     "parseDates": true,
    81                     "dashLength": 1,
    82                     "minorGridEnabled": true
    83                 },
    84                 "export": {
    85                     "enabled": true
    86                 },
    87                 "dataProvider": [{"date": "2015-11-9","value": 5,"description": "Slovenia: 2<br>Australia: 1<br>Germany: 1<br>United States: 1"},{"date": "2015-11-10","value": 11,"description": "Germany: 9<br>Greece: 1<br>United States: 1"},{"date": "2015-11-11","value": 7,"description": "Spain: 3<br>Slovenia: 2<br>Greece: 1<br>Sweden: 1"},{"date": "2015-11-12","value": 11,"description": "Germany: 3<br>Greece: 3<br>Serbia: 2<br>Slovenia: 2<br>United States: 1"},{"date": "2015-11-13","value": 14,"description": "Germany: 10<br>Greece: 2<br>Slovenia: 2"},{"date": "2015-11-14","value": 3,"description": "Germany: 2<br>Spain: 1"},{"date": "2015-11-15","value": 16,"description": "Germany: 14<br>Greece: 1<br>United States: 1"},{"date": "2015-11-16","value": 13,"description": "France: 4<br>Germany: 3<br>Greece: 2<br>Slovenia: 2<br>Spain: 1<br>United States: 1"},{"date": "2015-11-17","value": 11,"description": "United States: 4<br>Germany: 2<br>Greece: 2<br>Slovenia: 2<br>Spain: 1"},{"date": "2015-11-18","value": 16,"description": "Greece: 7<br>Germany: 6<br>Slovenia: 2<br>United States: 1"},{"date": "2015-11-19","value": 15,"description": "Germany: 8<br>Greece: 3<br>Slovenia: 2<br>United States: 2"},{"date": "2015-11-20","value": 6,"description": "Germany: 2<br>United States: 2<br>Greece: 1<br>Italy: 1"},{"date": "2015-11-21","value": 5,"description": "Greece: 3<br>Germany: 2"},{"date": "2015-11-22","value": 2,"description": "Germany: 1<br>Greece: 1"},{"date": "2015-11-23","value": 19,"description": "Germany: 16<br>Slovenia: 2<br>United States: 1"},{"date": "2015-11-24","value": 11,"description": "Germany: 8<br>Slovenia: 2<br>Austria: 1"},{"date": "2015-11-25","value": 5,"description": "Germany: 2<br>Slovenia: 2<br>Greece: 1"},{"date": "2015-11-26","value": 17,"description": "Germany: 13<br>Slovenia: 2<br>Greece: 1<br>United Kingdom: 1"},{"date": "2015-11-27","value": 7,"description": "United Kingdom: 4<br>Greece: 2<br>Germany: 1"},{"date": "2015-11-28","value": 10,"description": "Germany: 10"},{"date": "2015-11-29","value": 1,"description": "Greece: 1"},{"date": "2015-11-29","value": 9,"description": "Germany: 4<br>Greece: 4<br>Macedonia: 1"},{"date": "2015-11-30","value": 6,"description": "Greece: 4<br>Slovenia: 2"},{"date": "2015-12-1","value": 8,"description": "Slovenia: 2<br>United Kingdom: 2<br>United States: 2<br>Germany: 1<br>Luxembourg: 1"},{"date": "2015-12-2","value": 11,"description": "United States: 6<br>Germany: 3<br>Slovenia: 2"},{"date": "2015-12-3","value": 11,"description": "United States: 6<br>Luxembourg: 3<br>Germany: 2"},{"date": "2015-12-4","value": 6,"description": "Germany: 2<br>Slovenia: 2<br>Luxembourg: 1<br>United States: 1"},{"date": "2015-12-5","value": 4,"description": "Germany: 3<br>Greece: 1"},{"date": "2015-12-6","value": 10,"description": "Germany: 8<br>Greece: 2"},{"date": "2015-12-7","value": 7,"description": "Slovenia: 2<br>United States: 2<br>Australia: 1<br>Germany: 1<br>Greece: 1"},{"date": "2015-12-8","value": 9,"description": "Slovenia: 4<br>Germany: 2<br>United States: 2<br>Greece: 1"},{"date": "2015-12-9","value": 7,"description": "United Kingdom: 2<br>United States: 1<br>Germany: 3<br>Greece: 1"},{"date": "2015-12-10","value": 6,"description": "United States: 1<br>Slovenia: 2<br>Germany: 3"},{"date": "2015-12-11","value": 4,"description": "Slovenia: 2<br>Germany: 1<br>Greece: 1"},{"date": "2015-12-12","value": 3,"description": "Greece: 3"},{"date": "2015-12-13","value": 1,"description": "Greece: 1"},{"date": "2015-12-14","value": 9,"description": "United States: 2<br>Slovenia: 2<br>Germany: 3<br>Italy: 1<br>Greece: 1"},{"date": "2015-12-15","value": 11,"description": "Romania: 1<br>Italy: 2<br>United States: 2<br>Slovenia: 2<br>Germany: 2<br>Greece: 2"},{"date": "2015-12-16","value": 19,"description": "Romania: 1<br>Italy: 1<br>United States: 3<br>Slovenia: 2<br>Germany: 9<br>Greece: 3"},{"date": "2015-12-17","value": 19,"description": "United States: 1<br>Slovenia: 2<br>Romania: 2<br>Germany: 11<br>Greece: 3"},{"date": "2015-12-18","value": 10,"description": "Canada: 1<br>Poland: 1<br>United States: 1<br>Slovenia: 2<br>Austria: 1<br>Germany: 3<br>Greece: 1"},{"date": "2015-12-19","value": 4,"description": "Iran Islamic Republic of: 1<br>Germany: 2<br>Greece: 1"},{"date": "2015-12-20","value": 4,"description": "Romania: 2<br>Greece: 2"},{"date": "2015-12-21","value": 5,"description": "Canada: 1<br>Slovenia: 2<br>Germany: 1<br>Greece: 1"},]
    88             });
    89 
    90             chart.addListener("rendered", zoomChart);
    91 
    92             zoomChart();
    93 
    94             function zoomChart() {
    95                 var top = Math.ceil(65 * (chart.dataProvider.length) / 100);               
    96                 chart.zoomToIndexes(top, chart.dataProvider.length - 1);
    97             }
    98 
    99             // This function is for event handle
    100             function adjustBalloonText(graphDataItem, graph) {
    101                 var value = graphDataItem.values.value;
    102 
    103                 if (value < 20) {
    104                     return "<span style='font-size:15px;'><b>Downloads: " + value + "</b><br>United States: 2<br>United Kingdom: 3<br>China:3</span>";
    105                 }
    106                 else {
    107                     return "<span style='font-size:15px;'><b>Downloads: " + value + "</b><span style='font-size:15px;'><br>United States: 2<br>United Kingdom: 3<br>China:3<br>Italy:10<br>Netherland:2<br>Austria:20</span>";
    108                 }
    109             }
    110   </script>
    111   <div id="chartdiv" style="width:100%; height:160px;"></div>
     21    <iframe src="http://kahlua.eecs.jacobs-university.de:8080/CountDownload/index"></iframe>
     22  </fieldset>
    11223  </td></tr>
    11324</table>