Added code for creating chart without chaining