anychart.onDocumentReady(function () {
var stage = anychart.graphics.create("container");
var title = anychart.standalones.title();
title.fontFamily("verdana, helvetica, arial, sans-serif").fontWeight("normal");
title.text("<span style='color:#86cf38; font-size: 16px;'>System Availability</span> <span style='color: #666666; font-size: 10px; font-weight: normal;'>(last 30 days)</span>");
title.orientation("top").align("left").vAlign("bottom").margin(10).padding(0).height(20).useHtml(true);
title.container(stage).draw();
var Availability = anychart.data.set([
[Date.UTC(2013, 10), 98.6, 98.6, 95.3, 97.9, 99.0, 97.0, 96.1],
[Date.UTC(2013, 11), 98.5, 98.9, 95.9, 98.4, 98.4, 97.9, 96.1],
[Date.UTC(2014, 0), 98.5, 98.8, 96.7, 98.5, 99.1, 98.2, 96.0],
[Date.UTC(2014, 1), 99.0, 98.3, 95.6, 98.8, 98.2, 98.9, 95.9],
[Date.UTC(2014, 2), 99.2, 98.6, 96.8, 99.0, 98.2, 98.2, 95.7],
[Date.UTC(2014, 3), 99.0, 98.7, 95.8, 99.3, 97.9, 98.7, 95.5],
[Date.UTC(2014, 4), 99.3, 98.9, 96.3, 99.2, 98.6, 98.4, 95.0],
[Date.UTC(2014, 5), 99.1, 98.3, 95.6, 99.4, 99.1, 98.5, 94.9],
[Date.UTC(2014, 6), 99.0, 98.1, 95.4, 99.4, 98.4, 98.6, 94.8],
[Date.UTC(2014, 7), 99.3, 99.0, 95.5, 99.5, 99.2, 98.5, 95.0],
[Date.UTC(2014, 8), 99.5, 98.9, 96.7, 99.6, 99.2, 98.7, 94.8],
[Date.UTC(2014, 9), 99.7, 99.3, 96.9, 99.7, 99.3, 98.8, 94.4]
var AcceptedAvailability = anychart.data.set([
var table = anychart.standalones.table();
table.top(title.getRemainingBounds().getTop());
AcceptedAvailability.row(i)[0],
AcceptedAvailability.row(i)[1] + "%"
table.contents(contents);
table.cellBorder("#B8B8B8");
table.getCol(1).width(130);
table.getCol(3).width(50);
table.vAlign("middle").hAlign("center").fontWeight(600).fontSize(12);
table.container(stage).draw();
var line = anychart.sparkline(Availability.mapAs({x: 0, value: [(i + 1)]}));
anychart.scales.dateTime()
for (var rowCounter = 0; rowCounter<(Availability.getRowsCount() - 1);rowCounter++){
bulletData += Availability.row(rowCounter)[i+1];
var bullet = anychart.bullet([{"value": bulletData/(Availability.getRowsCount() - 1), "type": "line", gap: 0.4}]);
bullet.range(0).from(AcceptedAvailability.row(i)[1]).to(100).fill("#ccc");
bullet.title().enabled(false);
bullet.axis().enabled(false);
bullet.background().enabled(true).stroke("#ccc").fill("#fff");
bullet.scale(anychart.scales.linear().minimum(85).maximum(100)).padding(0).margin(10);
var legend = anychart.standalones.legend();
legend.itemsFormatter(function (){
"iconType": function(path, size) {
var x = Math.round(size / 2);
var y = Math.round(size / 2);
.moveTo(x, y - height / 2)
.lineTo(x, y + height / 2)
.lineTo(x + 2, y + height / 2)
.lineTo(x + 2, y - height / 2)
"iconType": function(path, size) {
var x = Math.round(size / 2);
var y = Math.round(size / 2);
.moveTo(x - 2, y - height / 2)
.lineTo(x - 2, y + height / 2)
.lineTo(x + 3, y + height / 2)
.lineTo(x + 3, y - height / 2)
legend.title().enabled(false);
legend.titleSeparator().enabled(false);
legend.paginator().enabled(false);
legend.fontSize("10px").itemsLayout("horizontal").iconTextSpacing(0).align("right").position("center-bottom").padding(0).margin(0).itemsSpacing(0);
legend.parentBounds(anychart.math.rect(0, 15, stage.width(),15));
legend.background().enabled(false);
legend.container(stage).draw();