added generatechartmodel