Chart formatting and tests