<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- Customizing the divisional lines in a chart.
If you need to force y-axis lower and upper limits, you need to disable the auto calculation of number of divisional lines using adjustDiv attributes.
Attributes:
1. adjustDiv - To disable automatic div calculation
2. yAxisMaxvalue - manually defined y-Axis max value
3. yAxisMinValue - manually defined y-Axis min value
4. numDivLines - Number of divisional lines you want to show on the y-axis (not including y-axis lower and upper limits)
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var vstrChart = new FusionCharts({
type: 'msline',
renderAt: 'chart-container',
width: '500',
height: '250',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Website Visitors",
"subCaption": "Last week Vs Current week",
"xAxisName": "Day",
"yAxisName": "No. of Visitors",
"theme": "fint",
"showValues": "0",
//Setting automatic calculation of div lines to off
"adjustDiv": "0",
//Manually defining y-axis lower and upper limit
"yAxisMaxvalue": "35000",
"yAxisMinValue": "5000",
//Setting number of divisional lines to 9
"numDivLines": "9",
"legendIconScale":"1"
},
"categories": [
{
"category": [
{
"label": "Mon"
},
{
"label": "Tue"
},
{
"label": "Wed"
},
{
"label": "Thu"
},
{
"label": "Fri"
},
{
"label": "Sat"
},
{
"label": "Sun"
}
]
}
],
"dataset": [
{
"seriesname": "Week 1",
"data": [
{
"value": "13000"
},
{
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.