Javascript Sourced Data

Javascript Sourced Data

JiaweiTanJiaweiTan Posts: 6Questions: 2Answers: 0

Hello, I have a question to ask.
Is it possible to select which column to display the dataset?
As shown from my sample, my column [0] and [2] does not contain any data.
However, when I want to display my array, I still have to push in some value for the data to display at the right column.

Here's my sample. http://live.datatables.net/muzaboye/2/edit?html,css,js,output

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Answer ✓

    Is it possible to select which column to display the dataset?

    I'm afraid I don't actually quite understand this question. Could you elaborate please?

    I would suggest looking at using objects rather than arrays for your data if you don't want to specify every single data point. There is no way around that with arrays, but objects make that easy!

    Allan

This discussion has been closed.