filter commands before generate line chart