_setOption handler
Refactor chart renderer