series is a map of id
add a function works anduse events
color is type color