charts.html

170 lines | 4.043 kB Blame History Raw Download
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://rawgit.com/highslide-software/pattern-fill/master/pattern-fill-v2.js"></script>
<script src="https://rawgit.com/highslide-software/pattern-fill/master/pattern-fill.js"></script>

<div id="container1"></div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div id="container2"></div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div id="container3" style="min-width: 310px; height: 500px; margin: 0 auto"></div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div id="container4" style="min-width: 310px; height: 500px; margin: 0 auto"></div>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div id="container5" style="min-width: 310px; height: 500px; margin: 0 auto"></div>

<script type="text/javascript">
$(function() {

  var gfxPath = 'https://raw.githubusercontent.com/highslide-software/pattern-fill/master/graphics/';

  //Highcharts.setOptions({
  //  colors: ['#696969', '#a5a5a5', '#787878', '#e1e1e1', '#3f3f3f']
  //});

  $('#container1').highcharts({
  	//exporting: { enabled: false },

    chart: {
            type: 'column'
        },
        title: {
            text: 'Throughput'
        },
        subtitle: {
            text: '5 users, 10 requests (all available), 10 times = 500 total requests'
        },
        xAxis: {
            categories: [
                'Petclinic',
                'Cloud Store',
                'Shopizer',
                'OpenMRS'
            ],
            crosshair: true
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Requests per second'
            }
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="color:{series.color};padding:0"><b>{point.y:.1f}/s</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0
            }
        },
        series: [{
            name: 'Non-caching',
            data: [13.6, 0,0,0]

        }, {
            name: 'Developers caching',
            data: [13.6, 0,0,0]

        }, {
            name: 'Non-caching + monitoring',
            data: [12.6, 0,0,0]

        }, {
            name: 'Automated Caching',
            data: [12.9, 0,0,0]

        }]
    });

    $('#container2').highcharts({
    	//exporting: { enabled: false },

      chart: {
              type: 'column'
          },
          title: {
              text: 'Cache Hit-ratio'
          },
          subtitle: {
              text: '5 users, 10 requests (all available), 10 times = 500 total requests'
          },
          xAxis: {
              categories: [
                  'Petclinic',
                  'Cloud Store',
                  'Shopizer',
                  'OpenMRS'
              ],
              crosshair: true
          },
          yAxis: {
              min: 0,
              title: {
                  text: 'Hit-ratio'
              }
          },
          tooltip: {
              headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
              pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                  '<td style="color:{series.color};padding:0"><b>{point.y:.1f}%</b></td></tr>',
              footerFormat: '</table>',
              shared: true,
              useHTML: true
          },
          plotOptions: {
              column: {
                  pointPadding: 0.2,
                  borderWidth: 0
              }
          },
          series: [{
              name: 'Developers caching',
              data: [0, 0,0,0]

          }, {
              name: 'Automated Caching',
              data: [0, 0,0,0]

          }]
      });

});

</script>