add legend flash and render bed and bedgraph track color in plot json