Friday 15 June 2012

javascript - How to remove axis, and other information from Bar Chart? -



javascript - How to remove axis, and other information from Bar Chart? -

i need draw line graph, line graph no axes, values​​, etc. graph , percentage @ end.

q: how remove items graph, indicate axes, axes, etc. need leave line graph , interest.

$('#audience').jqchart({ legend: { visible: false }, border: { visible: false }, title: { text: 'chart title', font: '12px sans-serif', linewidth: 1, // strokestyle: 'black', fillstyle: 'white' }, animation: { duration: 1 }, series: [ { pointwidth: 0.2, type: 'bar', fillstyle: '#7fbbe5', data: [['a', 33]], labels: { stringformat: ' %s %%', valuetype: 'datavalue', font: '11px sans-serif', fillstyle: 'white' }, tickoptions: { showgridline: false } }, { pointwidth: 0.2, type: 'bar', fillstyle: '#92b5c7', data: [['a', 67]], tickoptions: { showgridline: false }, labels: { stringformat: ' %s %%', valuetype: 'datavalue', font: '11px sans-serif', fillstyle: 'white' } } ] });

i have image, show, have, , need: http://i57.tinypic.com/2h3x3yx.jpg

you can splice jqchart axes -

var axes = $('#jqchartdiv').jqchart('option', 'axes'); //remove series axes.splice(0, axes.length );

javascript jquery bar-chart jqchart

No comments:

Post a Comment