C3 (since you tagged it) will let you do it like this:
var categories = ['Mark 1', 'Mark2', 'Mark 3'];
var chart = c3.generate({
data: {
columns: [
['raj',70,20,23],
['saran',45,70,20],
['sai', 70,42,34]
],
type: 'area',
//labels: true, // labels for all points
labels: {
format: function (v, id, i, j) {
return (i === categories.length - 1) ? id + v : "";
},
}
},
axis: {
x: {
tick: {
format: function(x) { return categories[x]; }
}
//type: 'category', // this way introduces a lot of padding
//categories: ['Mark 1', 'Mark2', 'Mark 3']
}
}
});
It's easy enough to look up the c3 example page and find the details - http://c3js.org/examples.html