Added core 3d chart function