jQWidgets Forums

jQuery UI Widgets Forums Chart how to connect to db in jqxchart

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • how to connect to db in jqxchart #22158

    shahulhameed
    Member

    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

    how to connect to db in jqxchart #22189

    Peter Stoev
    Keymaster

    Hi,

    Here’s a sample which displays a Chart bound to MySQL Database: http://www.jqwidgets.com/jquery-widgets-demo/demos/php/chart.htm?web

    Hope this helps.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.