How To Use Charts?

I want to learn using charts. For example I have two different value:

$a= "2728,2583,2697,3030,2716,2760,1515";

$b = "2967,3173,3052,3283,3314,3202,2937";

I want to use these values in a line chart. like this:https://www.amcharts.com/demos/date-based-data/

How can I do? Is there any example part that I can check and learn?