結果 : create chart using code