//Note: the var "chartSize" is defined in the power monitor code, in a seperate