var data1 = [
{name: "A", value: .0245},
{name: "B", value: .01492},
{name: "C", value: .02782},
{name: "D", value: .04253},
{name: "E", value: .02},
{name: "F", value: .02288},
{name: "G", value: .02015},
{name: "H", value: .06094},
{name: "I", value: .5},
];
var data2 = [
{newName: "AA", newValue: .0245},
{newName: "BB", newValue: .01492},
{newName: "CC", newValue: .02782},
{newName: "DD", newValue: .04253},
{newName: "EE", newValue: .005}
];
var options1 = {
id: "chart",
data: {
plain: data1
}
};
var barChart = new C9.BarChart(options1);
barChart.draw();
setTimeout(function() {
barChart.updateData(data2, {name: 'newName', value: 'newValue'});
}, 3000);