I am using jqx pie chart.Its working fine but when I am running it in laptop or in small screen pie chart is not resizing.
can anyone help me to achieve it.
here is code i am using:
` var settings1 = {
enableAnimations: true,
showLegend: true,
showBorderLine: true,
legendLayout: {
left: 400,
top: 150,
width: 100,
height: 400,
flow: ‘vertical’
},
padding: { left: 1, top: 10, right: 250, bottom: 200 },
source: dataAdapter,
colorScheme: ‘scheme2’,
title: ‘Statistics of Sample Collected’,
description: ‘Taluk Report’,
seriesGroups: [{
type: ‘pie’,
showLabels: false,
useGradient: false,
series: [{
dataField: ‘samplescollected’,
displayText: ‘hobliname’,
labelRadius: 170,
initialAngle: 15,
radius: 145,
centerOffset: 0
}]
}]
};
// setup the chart
$(‘#jqxpie’).jqxChart(settings1);
$(‘#jqxpie’).jqxChart({ backgroundColor: ‘#bccbde’ });
}