Home Forums Chart Support Creating data Tables in charts

Creating data Tables in charts

Viewing 6 posts - 1 through 6 (of 6 total)
  • #15388

    Hi , Is there a wat to insert data tables as chart elements as in excel inside bar charts?

    #15391

    @sherin,

    You can easily create a chart using the values from HTML Table data and can also update the dataPoints once the table data is changed as shown in the code snippet below:

    document.getElementById('customTable').addEventListener("change", function (e) {  
      index = e.target.parentNode.parentNode.rowIndex;
    
      if (!chart.options.data[0].dataPoints[index - 1])
        chart.options.data[0].dataPoints[index - 1] = {};
    
      chart.options.data[0].dataPoints[index - 1].y = Number(e.target.value);
      chart.render();
    });
    

    Please take a look at this JSFiddle for a working example with sample code on rendering chart from HTML Table data.

    CanvasJS line chart with dataPoint based on HTML table user input

    ___
    Suyash Singh
    Team CanvasJS

    #15392

    Hi,
    Can I create one with legend keys .

    #15413

    @sherin,

    Sorry, I am unable to understand your exact requirement. Can you please help us with some more explanation on what do you mean by “legend keys” so that we can understand your scenario better and help you out?

    Can you let us know if you are looking for Legends ?

    ___
    Suyash Singh
    Team CanvasJS

    #15423

    Hi, I was taking about datables in excel. Please see this link .
    http://www.dummies.com/software/microsoft-office/excel/chart-data-tables-and-excel-pivot-charts/

    I want to create exactly as in excel these data tables.

    #15456

    @sherin,

    Sorry, this feature is not available as of now.

    ___
    Suyash
    Team CanvasJS

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

You must be logged in to reply to this topic.