Question: How can I generate a graph by code ?

Answer:

Actually, TfrxChartView built on top of Tee Chart library provides a huge amount of different properties. We export some of them into IfrxChartView and accompanying interfaces. 

To set the size of graph you can cast IfrxChartView to IfrxComponent and set Width and Height properties.