def make_data(chart, datas):
 for (i, data) in enumerate(datas):
  chart.add(data[0], adapt(chart, data[1]), secondary=bool((i % 2)))
 return chart

def make_data ( chart , datas ) : for ( i , data ) in enumerate ( datas ) : chart . add ( data [ 0 ] , adapt ( chart , data [ 1 ] ) , secondary = bool ( ( i % 2 ) ) ) return chart
add sample data to the test chart .