Thanks David. morky01 I'm not sure if this is something you've seen as well. Here is the full code.
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
items: [
{ xtype: 'container', itemId: 'chart_box' }
],
launch: function () {
this._makeChart();
},
_makeChart: function () {
var chart_data = [{
x: Date.UTC(2014, 10, 28),
x2: Date.UTC(2014, 11, 18),
y: 0,
partialFill: 0.25
}, {
x: Date.UTC(2014, 11, 2),
x2: Date.UTC(2014, 11, 5),
y: 1,
partialFill: 0.25
}, {
x: Date.UTC(2014, 11, 8),
x2: Date.UTC(2014, 11, 9),
y: 2
}, {
x: Date.UTC(2014, 11, 9),
x2: Date.UTC(2014, 11, 19),
y: 1
}, {
x: Date.UTC(2014, 11, 10),
x2: Date.UTC(2014, 11, 23),
y: 2
}];
var series = [{
name: ['Project 1'],
type: 'xrange',
// pointPadding: 0,
// groupPadding: 0,
pointWidth: 20,
data: chart_data,
dataLabels: {
enabled: true
}
}];
var chart_config = {
chart: {
type: 'xrange'
},
title: {
text: 'Highcharts X-range'
},
xAxis: {
type: 'datetime'
},
yAxis: {
title: {
text: ''
},
categories: ['Prototyping', 'Development', 'Testing'],
reversed: true
},
series: series
};
this.down('#chart_box').add({
xtype: 'rallychart',
chartData: {
categories: ['Prototyping', 'Development', 'Testing'],
series: series
},
chartConfig: chart_config
});
}
});