Pie
You can resize the image using the handle that appears when you mouse over the south and east sides of the canvas. You maybe wondering why sometimes it resizes to where you released the mouse button and sometimes it does not. The reason is because of the 'autoExtend' property which is a feature (not a bug). If you set the autoExtent to 'false', then it resizes to where you release your mouse button.
new CanvasXpress('canvas',
{y: {vars: ['Gene1', 'Gene2', 'Gene3', 'Gene4', 'Gene5', 'Gene6'],
smps: ['Smp1', 'Smp2', 'Smp3', 'Smp4', 'Smp5', 'Smp6', 'Smp7', 'Smp8', 'Smp9', 'Smp10', 'Smp11', 'Smp12', 'Smp13', 'Smp14', 'Smp15', 'Smp16'],
data: [[10, 12, 3, 4, 100, 43, 32, 44, 25, 1, 35, 25, 28, 1, 23, 24],
[12, 4, 60, 5, 24, 14, 32, 13, 45, 26, 34, 52, 12, 67, 3, 15],
[7, 12, 20, 13, 49, 52, 42, 92, 46, 24, 26, 12, 2, 34, 7, 56],
[21, 10, 30, 8, 65, 166, 47, 58, 93, 26, 8, 35, 23, 3, 25, 2],
[15, 14, 100, 5, 34, 30, 82, 51, 46, 16, 28, 83, 4, 9, 35, 8],
[100, 82, 73, 4, 3, 4, 5, 2, 4, 67, 23, 12, 34, 25, 6, 25, 6]]}},
{graphType: 'Pie',
layout: '3X5',
xAxis: ['Smp1', 'Smp2', 'Smp3', 'Smp4', 'Smp5', 'Smp6', 'Smp7', 'Smp8', 'Smp9', 'Smp10', 'Smp11', 'Smp12', 'Smp13', 'Smp14', 'Smp15'],
background: 'rgb(244,244,244)',
colorScheme: 'basic',
pieSegmentPrecision: 0,
pieSegmentSeparation: 1,
showPieGrid: true,
showPieSampleLabel: true,
pieSegmentLabels: 'inside'});
new CanvasXpress('canvas1',
{y: {vars: ['Gene1', 'Gene2', 'Gene3', 'Gene4', 'Gene5', 'Gene6'],
smps: ['Smp1'],
data: [[6.1],
[7.3],
[4.2],
[12.7],
[9.1],
[60.6]]}},
{graphType: 'Pie',
pieSegmentPrecision: 1,
pieSegmentSeparation: 2,
pieSegmentLabels: 'outside',
pieType: 'solid'});