Fix for issue#1: sample chart doesn't work