Hey guys,
im new to jqxchart. Below is the chart I have referred to build my chart.
$(document).ready(function () {
var sampleData = [
{ Day: ‘Jan’, Inward: 30, Outward: 15 },
{ Day: ‘Feb’, Inward: 25, Outward: 25 },
{ Day: ‘Mar’, Inward: 30, Outward: 20 },
{ Day: ‘Apr’, Inward: 35, Outward: 25 },
{ Day: ‘May’, Inward: 20, Outward: 20 },
{ Day: ‘June’, Inward: 30, Outward: 20 },
{ Day: ‘July’, Inward: 60, Outward: 45 }
];
var sampleData = samplefn();
alert(sampleData);
// prepare jqxChart settings
var settings = {
title: “Chart Title”,
description: “Chart Description”,
enableAnimations: true,
showLegend: true,
padding: { left: 5, top: 5, right: 5, bottom: 5 },
titlePadding: { left: 90, top: 0, right: 0, bottom: 10 },
source: sampleData,
categoryAxis:
{
dataField: ‘Day’,
showGridLines: true
}, etc.,
I wanna connect to my Database SQL SERVER instead of this static values. I tried with many possibilities but it didnt work. Can any one plz explain to me how to connect to sql server db instead of the static values.
Thanks
Shahul