Rank: Advanced Member
Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered Joined: 1/3/2011(UTC) Posts: 483
Thanks: 0 times Was thanked: 87 time(s) in 87 post(s)
|
Hi, please, try the following code: Code:$(document).ready(function () {
$('#jqChart').bind('shapeRendering', function (e, shape) {
var maxWidth = 10;
if (shape.width > maxWidth) {
var dx = (shape.width - maxWidth) / 2;
shape.x += dx; shape.width = maxWidth; } });
$('#jqChart').jqChart({ title: 'shapeRendering Event', series: [ { type: 'column', title: 'Column', data: [['A', 46], ['B', 35], ['C', 68], ['D', 30], ['E', 27], ['F', 85], ['G', 43], ['H', 29]] } ] }); }); Best Regards, Dragan Matek jqChart Inc.
|