[doc] added legend to example