Creating custom API's for toggling grouped bars with mixed scales