JavaScript
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
backgroundColor: "transparent",
title: {
text: "",
fontWeight: "bolder",
fontColor: "red",
fontFamily: "tahoma",
fontSize: 20,
padding: 10
},
axisX: {
title: "Demo Complexity",
minimum: 1,
maximum: 10,
gridThickness: 1,
interval: 1,
gridColor: "lightgrey",
reversed: true
},
axisY: {
title: "Demo Priority",
includeZero: true,
gridThickness: 1,
interval: 1,
minimum: 1,
maximum: 10,
gridColor: "lightgrey",
},
toolTip: {
shared: true
},
data: [{ //sub
type: "bubble",
color: "#00aeff",
showInLegend: false,
fillOpacity: 0.6,
markerBorderColor: "#000000",
markerBorderThickness: 1,
toolTipContent: "<b>id:</b> #{id}<br/>{title}<br/ ><b>Total:</b> {z}",
dataPoints: [{
"x": 1,
"y": 0,
"z": 0,
"id": "",
"title": ""
}, {
"x": 2,
"y": 0,
"z": 0,
"id": "",
"title": ""
}, {
"x": 3,
"y": 1,
"z": 273,
"id": "00021",
"title": "Demo-1"
}, {
"x": 4,
"y": 1,
"z": 991,
"id": "00007",
"title": "Demo-2"
}, {
"x": 5,
"y": 1,
"z": 511,
"id": "00016",
"title": "Demo-3"
}, {
"x": 6,
"y": 0,
"z": 0,
"id": "",
"title": ""
}, {
"x": 7,
"y": 0,
"z": 0,
"id": "",
"title": ""
}, {
"x": 8,
"y": 1,
"z": 595,
"id": "00030",
"title": "Demo-5"
}, {
"x": 9,
"y": 1,
"z": 49,
"id": "00011",
"title": "Demo-7"
}, {
"x": 10,
"y": 0,
"z": 0,
...