FusionCharts - Gallery Example - Line 2D Chart In Javascript
Created using FusionCharts Suite XT - www.fusioncharts.com
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<!--
Showcase of Line Chart
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var visitChart = new FusionCharts({
type: 'line',
renderAt: 'chart-container',
width: '500',
height: '300',
dataFormat: 'json',
containerBackgroundOpacity: "0",
dataSource: {
"chart": {
"xAxisName": "% of duration consumed",
"yAxisName": "% of duration buffer consumed",
//Cosmetics
"lineThickness" : "2",
"baseFont" : "Helvetica Neue,Arial",
"bgColor": "#ffffff",
"showBorder" : "0",
"showShadow" : "0",
"showValues": "0",
"canvasBorderAlpha" : "0",
"divlineAlpha" : "100",
"divlineColor" : "#000000",
"divlineThickness" : "1",
"divLineIsDashed" : "1",
"divLineDashLen" : "1",
"divLineGapLen" : "1",
"lineColor": "#000000",
"showXAxisLine" : "0",
"showAlternateHGridColor" : "0",
"anchorRadius": "0",
"numberSuffix": "%",
"canvasBgColor": "#FF0000,#FFFF00,#00AF50",
"canvasBgAlpha": "100,100,100",
"canvasBgAngle": "45",
"canvasBgRatio": "10,50,40"
},
"data": [
{
"label": "0%",
"value": "0"
},
{
"label": "10%",
"value": "8"
},
{
"label": "20%",
"value": "16"
},
{
"label": "30%",
"value": "29"
},
{
"label": "40%",
"value": "35"
},
{
"label": "50%",
...