-->

Line Charts

Line Charts using C3PyO

    x = [2011, 2012, 2013, 2014, 2015, 2016]
    arsenal = [72, 74, 72, 68, 71, 65]
    chelsea = [69, 65, 75, 71, 73, 59]
    liverpool = [59, 47, 71, 101, 52, 63]
    man_city = [60, 93, 66, 102, 83, 71]
    man_utd = [78, 89, 86, 64, 62, 49]
    
    import c3pyo as c3
    chart = c3.LineChart()
    chart.plot(x, arsenal, color='red', label='Arsenal')
    chart.plot(x, chelsea, color='blue', label='Chelsea')
    chart.plot(x, liverpool, color='darkred', label='Liverpool')
    chart.plot(x, man_city, color='skyblue', label='Man City')
    chart.plot(x, man_utd, color='black', label='Man Utd')
    chart.xlabel('Year')
    chart.ylabel('Goals Scored')
    chart.show()