Home Forums Report Bugs Data Null

Data Null

Viewing 5 posts - 1 through 5 (of 5 total)
  • #27444

    hey i am creating chart and data get into data base when data not get how to print data not found in place of chart
    plz help me

    #27461

    @sana,

    Please take a look at this JSFiddle.


    Vishwas R
    Team CanvasJS

    #27463

    I am refer this jsfiddle but problem is our data get into database as a java code how to call into js its problem
    plz check our code.

    window.onload = function() {

    var chart1 = new CanvasJS.Chart(‘piechart’, {
    theme : “light2”,
    animationEnabled : true,
    exportFileName : “Service Transaction”,
    exportEnabled : true,
    title : {
    text : “Transaction Wise”
    },

    data : [ {
    type : “pie”,
    showInLegend : true,
    legendText : “{label}”,
    toolTipContent : “{label}: {y}%“,
    indexLabel : “{label} {y}%”,
    dataPoints :
    <%out.print(dataPointsTrxn);%>
    } ]
    });
    chart1.render();

    var chart2 = new CanvasJS.Chart(‘piechart1’, {
    theme : “light2”,
    animationEnabled : true,
    exportFileName : “Service Amount”,
    exportEnabled : true,
    title : {
    text : “Amount Wise”
    },
    data : [ {
    type : “pie”,
    showInLegend : true,
    legendText : “{label}”,
    toolTipContent : “{label}: {y}%“,
    indexLabel : “{label} {y}%”,
    dataPoints :
    <%out.print(dataPointsAmt);%>
    } ]
    });

    chart2.render();

    }
    plz check our code and plz suggest me also i apply this code on js fiddle its not working

    #27464

    Also plz refer how to apply null concept in multiple charts in one function

    #27476

    @sana,

    Can you kindly share sample project along with sample database over Google-Drive or Onedrive so that we can look into the code, run it locally to understand the scenario better and help you resolve?


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.