There are unfortunatly missing files in your script, so I cannot execute it.
However, if you change style and your histogram has already been drawn with an existing style (attributes are marked in the object), you should force the current style to be used in teh histogram. Just before your second Draw, add the line as shown below