5 <script type="text/javascript">
\r
6 window.onload = function () {
\r
7 var chart = new CanvasJS.Chart("chartContainer", {
\r
9 text: "Server Performance",
\r
12 animationEnabled: true,
\r
14 title: "Server Load (TPS)",
\r
19 title: "Response Time (sec)",
\r
23 verticalAlign: 'bottom',
\r
24 horizontalAlign: "center"
\r
30 markerType: "square",
\r
31 toolTipContent: "<span style='\"'color: {color};'\"'><strong>{name}</strong></span><br/><strong> Load</strong> {x} <br/><strong> Response</strong></span> {y}sec",
\r
33 name: "Server Pluto",
\r
56 name: "Server Mars",
\r
57 markerType: "triangle",
\r
59 toolTipContent: "<span style='\"'color: {color};'\"'><strong>{name}</strong></span><br/><strong> Load</strong> {x} <br/><strong> Response</strong></span> {y}sec",
\r
83 itemclick: function (e) {
\r
84 if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) {
\r
85 e.dataSeries.visible = false;
\r
88 e.dataSeries.visible = true;
\r
98 <script src="../../canvasjs.min.js"></script>
\r
99 <title>CanvasJS Example</title>
\r
102 <div id="chartContainer" style="height: 400px; width: 100%;">
\r