🎨 Interactive Tooltip Styles Demo

📋 How to Test:

📍 Arrow Style (Default)

Traditional tooltip with arrow pointer

Loading...

✨ Line Connection Style

Animated line connection to tooltip

Loading...

🔧 Implementation Details

Setting Tooltip Style:

You can configure the tooltip style in two ways:

  1. Global Setting: Set tooltip_style in the image configuration (applies to all hotspots)
  2. Per Hotspot: Set display_style on individual hotspot data (overrides global setting)
// Example hotspot data with line style
{
    "title": "Product Feature",
    "description": "Click to learn more",
    "display_style": "line",  // Options: "arrow" or "line"
    "x": 45,
    "y": 60
}