add xchart functional and draw test graphic