Consider I have an array of objects with the following structure
var dummyArray = [
{diff: "0.000", totalLength: 3},
{diff: "0.001", totalLength: 3},
{diff: "0.002", totalLength: 4},
{diff: "0.003", totalLength: 2},
{diff: "0.004", totalLength: 1},
{diff: "0.005", totalLength: 3},
{diff: "0.012", totalLength: 1},
{diff: "0.016", totalLength: 1},
{diff: "0.023", totalLength: 1},
{diff: "0.044", totalLength: 1},
{diff: "0.111", totalLength: 1},
{diff: "0.156", totalLength: 1}
];
Now I want to give the diff as a parameter to the following zingchart configurtaion.
"scale-x": {
"values": "1994:2014",
"max-items": 99,
"guide": {
"visible": false
}
},
Instead of values "1994:2014" Something like the following way
"scale-x": {
"values": dummyArray.diff,
"max-items": 99,
"guide": {
"visible": false
}
},
Consider datatables API, how we can give directly object(property) name.
Similarly, Is it possible to give something like the above way directly without manipulating the data by any array filters?
Thanks in advance