I have created a couple pie charts in a Tab Container based on the sample ArcGIS API for JavaScript Sandbox. In this sample, if you click on the "Pie Chart " tab, you will see a vertical scroll bar. How can I get rid of this bar? Also, I would like to display the percentage inside the pie chart sectors when hovered. Any suggestions are greatly appreciated.
Thanks
Solved! Go to Solution.
There are two ways you can get rid of the vertical scroll. First, you can turn that off in the style of the ContentPane
var cp2 = new ContentPane({
style:"overflow:hidden",
title: "Pie Chart"
});
The other way is to make the pie chart smaller
tc.watch("selectedChildWidget", function(name, oldVal, newVal){
if ( newVal.title === "Pie Chart" ) {
chart.resize(170,170); //was 180,180
}
});
There are two ways you can get rid of the vertical scroll. First, you can turn that off in the style of the ContentPane
var cp2 = new ContentPane({
style:"overflow:hidden",
title: "Pie Chart"
});
The other way is to make the pie chart smaller
tc.watch("selectedChildWidget", function(name, oldVal, newVal){
if ( newVal.title === "Pie Chart" ) {
chart.resize(170,170); //was 180,180
}
});
Thank You Ken.