Final year project question releted to mschart

how we can add dynamically data in chart with I need a code for that for connect mssql server database