Show line chart dynamically

Hi,
I am using core ui admin template using angular.
I want to make Line chart dynamic using database, can you please help me out by sharing any working code