chart factory init