Observed in Stata/MP 15.0 on a Windows platform. If it has been fixed in 15.1, sorry for the false alert.
It seems that the presence of an apostrophe in value labels confuses some part of the charting ados in Stata making it incorrectly estimate the width of the string. The following code demonstrates the problem:
The chart named g1 is having correctly estimated widths of the texts, while g2 is incorrect. The only difference between the two is the line between the graphing commands, which inserts the apostrophe character into the value label.
Thank you, Sergiy Radyakin
It seems that the presence of an apostrophe in value labels confuses some part of the charting ados in Stata making it incorrectly estimate the width of the string. The following code demonstrates the problem:
Code:
version 15.0 clear all input byte(id ind grade) 1 1 1 1 2 2 1 3 1 2 1 2 2 2 1 2 3 3 3 1 1 3 2 3 3 3 1 end label values ind ind label def ind 1 "Indicator 1", modify label def ind 2 "Indicator 2", modify label def ind 3 "Indicator 3", modify label values grade instructor_preparation label def instructor_preparation 1 "Excellent", modify label def instructor_preparation 2 "Very Good", modify label def instructor_preparation 3 "Good", modify label def instructor_preparation 4 "Fair", modify label def instructor_preparation 5 "Poor", modify graph hbar , over(grade) over(ind) scale(0.5) stack asyvar legend(rows(1)) name(g1) label def ind 2 "Indicator's 2", modify graph hbar , over(grade) over(ind) scale(0.5) stack asyvar legend(rows(1)) name(g2)
Thank you, Sergiy Radyakin
Comment