HEAD:docs/samples/LineChart/single_bar_chart.html
var data1 = [
{name: 'A', value: .08167},
{name: 'B', value: .01492},
{name: 'C', value: .02782},
{name: 'D', value: .04253},
{name: 'E', value: .12702},
{name: 'F', value: .02288},
{name: 'G', value: .02015},
{name: 'H', value: .06094},
{name: 'I', value: .06966},
{name: 'J', value: .00153},
{name: 'K', value: .00772},
{name: 'L', value: .04025},
{name: 'M', value: .02406},
{name: 'N', value: .06749},
{name: 'O', value: .07507},
{name: 'P', value: .01929},
{name: 'Q', value: .00095},
{name: 'R', value: .05987},
{name: 'S', value: .06327},
{name: 'T', value: .09056},
{name: 'U', value: .02758},
{name: 'V', value: .00978},
{name: 'W', value: .02360},
{name: 'X', value: .00150},
{name: 'Y', value: .01974},
{name: 'Z', value: .00074},
];
var options1 = {
id: "demo1",
width: 1100,
height: 500,
data: {
plain: data1,
},
title: {
text: "Frequency of English Letters"
=======
var options = {
id: "chart",
axis: {
x: {
tick: {
rotate: -60
}
}
},
data: {
file: {
url: '../../data/data_social_media.tsv',
type: 'tsv'
},
keys: {
name: 'Social Media',
value: 'Rate'
}
>>>>>>> 52d9940cac00e9dafaf99b9939baea706fcce0a3:docs/samples/data_adapter/load_data_from_tsv.html
}
};
var barChart = new C9.BarChart(options);
barChart.draw();
Social Media Rate
Facebook 86.91
Pinterest 6.43
Twitter 3.2
Tumblr 1.1
VKontakte 0.61
YouTube 0.59
reddit 0.52
StumbleUpon 0.3
LinkedIn 0.1
Google+ 0.09
Fark 0.07
Instagram 0.07
Other 0.01