code for Wechart