add legends and add highlight underline

Add legend in preview graph.
add underline of highlight metrics in legend.