fixed linechart zero-injection, closes #2102