Chart - Change ''.trim() for $.trim()

Fix for #2683