Firstly, after the chart is drawn, I open its popup menu & click on "Properties" to bring up the Properties menu for the Chart. However, if I then go to the Domain Axis or Range Axis within Properties, the value for axes Labels shows an AttributedString value instead of the actual axis labels that are shown on the Chart. The chart title field however, shows the correct String value. How can I fix this so as to have the axis labels also show their actual values instead of AttributedString values ?
Secondly, when I try to rename these x, y-axis labels, the new value is shown correctly within "Properties" but is shown as its AttributedString value on the main chart. I want to be able to rename the x and y-axis labels on the Chart and have it show them correctly on the Chart and within the "Properties" menu. e.g., if I currently draw a Chart & rename its x-axis label within "Properties", it now shows it as:
Code: Select all
java.text.AttributedString@364adedd
Kindly let me know the cause of this AttributedString error and how can it be fixed and how can I detect when user clicks "Ok" after renaming a Chart's title or its x or y-axis labels & get those values ? Thanks.