Brett89
16 Apr 2012, 7:26 PM
I want to present a column chart that has a Number left axis, and a Category bottom axis. The chart shows work done in each month. Ideally, my data structure will look like this:
[
{
Month: 'January',
ID: 1,
Name: 'Foo',
Value: 1
},
{
Month: 'January',
ID: 2,
Name: 'Bar',
Value: 4
},
{
Month: 'February',
ID: 1,
Name: 'Foo',
Value: 2
},
{
Month: 'February',
ID: 2,
Name: 'Bar',
Value: 5
},
{
Month: 'March',
ID: 1,
Name: 'Foo',
Value: 3
},
{
Month: 'March',
ID: 2,
Name: 'Bar',
Value: 6
}
]
With this data structure, is there any way to get the 3 months down the bottom (January, February, March), with each month having 2 columns (one for ID 1 Values and another for ID 2 Values)? Currently I've only been able to achieve repeating the months (January, January, February, February, March, March) with 1 column in each month.
Thank you for your time.
[
{
Month: 'January',
ID: 1,
Name: 'Foo',
Value: 1
},
{
Month: 'January',
ID: 2,
Name: 'Bar',
Value: 4
},
{
Month: 'February',
ID: 1,
Name: 'Foo',
Value: 2
},
{
Month: 'February',
ID: 2,
Name: 'Bar',
Value: 5
},
{
Month: 'March',
ID: 1,
Name: 'Foo',
Value: 3
},
{
Month: 'March',
ID: 2,
Name: 'Bar',
Value: 6
}
]
With this data structure, is there any way to get the 3 months down the bottom (January, February, March), with each month having 2 columns (one for ID 1 Values and another for ID 2 Values)? Currently I've only been able to achieve repeating the months (January, January, February, February, March, March) with 1 column in each month.
Thank you for your time.