JavaScript
FusionCharts.ready(function() {
var profitChart = new FusionCharts({
type: 'scatter',
renderAt: 'chart-container',
id: 'myChart',
width: '500',
height: '350',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Old Stock Clearance",
"subcaption": "Price Vs Profit",
"yaxisname": "Price (In USD)",
"xaxisname": "Profit (In %)",
"yaxismaxvalue": "1000",
"xnumbersuffix": "%",
"ynumberprefix": "$",
//attributes used to define x-axis limits
"xaxismaxvalue": "40",
"xaxisminvalue": "-20",
//Theme
"theme": "fint"
},
"dataset": [{
"drawline": "0",
"seriesname": "Televisions",
"color": "#6baa01",
"anchorsides": "3",
"anchorradius": "4",
"anchorbgcolor": "#6baa01",
"anchorbordercolor": "#6baa01",
"data": [{
"id": "TV_1",
"x": "-9.89",
"y": "642"
}, {
"id": "TV_2",
"x": "21.59",
"y": "947"
}, {
"id": "TV_3",
"x": "-8.8",
"y": "433"
}, {
"id": "TV_4",
"x": "-10.88",
"y": "750"
}, {
"id": "TV_5",
"x": "5.43",
"y": "593"
}, {
"id": "TV_6",
"x": "23.76",
"y": "426"
}, {
"id": "TV_7",
"x": "17.74",
"y": "575"
}, {
"id": "TV_8",
"x": "8.71",
"y": "962"
}, {
"id": "TV_9",
"x": "-1.56",
"y": "205"
}, {
"id": "TV_10",
"x": "16.42",
"y": "937"
}, {
"id": "TV_11",
"x": "10.42",
"y": "689"
}, {
"id": "TV_12",
"x": "-1.19",
"y": "425"
}, {
"id": "TV_13",
"x": "-12.58",
"y": "804"
}, {
...