Here is an example dataset for reference:
var info = [
{row: 0, col: 0, value: [{x: 1, y: 19}, {x: 2, y: 20}]},
{row: 0, col: 1, value: [{x: 1, y: 24}, {x: 2, y: 27}]},
{row: 1, col: 1, value: [{x: 1, y: 31}, {x: 2, y: 26}]},
{row: 1, col: 2, value: [{x: 1, y: 29}, {x: 2, y: 19}]},
]
I'm struggling to set the x-domain properly.
var x1 = d3.scale.ordinal()
.domain(info.map(function(d) { return d.value.x; }))
.rangeRoundBands([0, chartW], 0.1);
This section is causing an error:
.domain(info.map(function(d) { return d.value.x; }))
Any suggestions on how I can iterate through the inner array of values object?
Appreciate any help you can provide!