Rank: Administration
Groups: Administrators, Moderator, Registered Joined: 11/5/2012(UTC) Posts: 131
Thanks: 0 times Was thanked: 15 time(s) in 15 post(s)
|
Hi, Your requirement can be achieved with code like: Code:$(document).ready(function () {
$('#jqChart').bind('dataPointLabelCreating', function (e, data) {
var context = data.context;
if (context.series.title != 'Titles') { return; }
data.text = context.dataItem[2];
});
$('#jqChart').jqChart({ legend: { visible: false }, axes: [ { location: 'left', type: 'linear', interval: 1, extendRangeToOrigin: true }, { location: 'bottom', type: 'category', categories: ['Category 1', 'Category 2'] }, { location: 'bottom', type: 'linear', interval: 1, minimum: 0, maximum: 2, labels: { visible: false }, majorTickMarks: { visible: false }, lineWidth: 0, margin: 0 } ], series: [ { type: 'column', data: [2, 3] }, { type: 'column', data: [1, 1] }, { title: 'Titles', type: 'scatter', data: [[0.35, 1.7, '2GB'], [0.65, 0.7, '1GB'], [0.65, 1.1, '2:1'],
[1.35, 2.7, '3GB'], [1.65, 0.7, '1GB'], [1.65, 1.1, '3:1']], markers: { visible: false }, labels: { font: '13px sans-serif' } } ] }); }); Best, Ivan Petrov jqChart Inc.
|