dc_bargraph error?
Posted: Fri Jan 17, 2014 9:46 am
Roger
We found a while back that dc_bargraph() when writing the text under the graph was not showing the full text. For some reason it was only showing the top half of the letters in each word.
Following is the line in _dc_graph.prg that causes the issue around line 980:
::textObjects:setsize({30,10})
Before this line the text object sizes have been calculated using the textfont and displayed using DCSAY. In my case on my PC the max font height has been calculated as 26. Obviously the above shrinks the text objects down losing the top half of the text that would have been shown.
I commented out this line and it works as expected. I could not work out what the line was supposed to do.
I also found one other minor glitch involving the scale text and the billion/million/thousand division handling too, I believe the str( width parameter should always be 5 or you end up with asterisks.
We found a while back that dc_bargraph() when writing the text under the graph was not showing the full text. For some reason it was only showing the top half of the letters in each word.
Following is the line in _dc_graph.prg that causes the issue around line 980:
::textObjects:setsize({30,10})
Before this line the text object sizes have been calculated using the textfont and displayed using DCSAY. In my case on my PC the max font height has been calculated as 26. Obviously the above shrinks the text objects down losing the top half of the text that would have been shown.
I commented out this line and it works as expected. I could not work out what the line was supposed to do.
I also found one other minor glitch involving the scale text and the billion/million/thousand division handling too, I believe the str( width parameter should always be 5 or you end up with asterisks.