Fixed title of pie charts.
* @param {boolean} isTitleVisible - determines whether a title should be shown
*/
function getTitle(isTitleVisible) {
- var title;
if (isTitleVisible) {
- title = {
+ return {
text: pieModel.name,
textStyle: {
fontWeight: 'normal',
left: 'center'
}
} else {
- title = null;
+ return null;
}
}
}
