Update visualization.js

Fixed Tooltip,
Added Legend