SimpleSVGScatterPlot

by stefano franco

HTML

<body>
 <svg height="400" width="400">
      <defs>
    <filter id="f3" x="0" y="0" width="200%" height="200%">
      <feOffset result="offOut" in="SourceAlpha" dx="20" dy="20" />
      <feGaussianBlur result="blurOut" in="offOut" stdDeviation="10" />
      <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
    </filter>
  </defs>
 
     <rect x=50 y=50 width="250" height="250" stroke-width=".5" fill="white" stroke="black"/>
     <circle cx="70" cy="240" r="4" stroke="black" stroke-width=".5" fill="yellow"/>
     <circle cx="110" cy="60" r="4" stroke="black" stroke-width=".5" fill="yellow"/>
     <circle cx="170" cy="220" r="4" stroke="black" stroke-width=".5" fill="yellow"/>
     <circle cx="270" cy="290" r="4" stroke="black" stroke-width=".5" fill="yellow"/>
     <circle cx="190" cy="160" r="4" stroke="black" stroke-width=".5" fill="yellow"/>
     <circle cx="90" cy="240" r="4" stroke="black" stroke-width=".5" fill="yellow"/>
      
</svg>
</body>


<svg height="140" width="140">
  <defs>
    <filter id="f3" x="0" y="0" width="200%" height="200%">
      <feOffset result="offOut" in="SourceAlpha" dx="20" dy="20" />
      <feGaussianBlur result="blurOut" in="offOut" stdDeviation="10" />
      <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
    </filter>
  </defs>
  <rect width="90" height="90" stroke="green" stroke-width="3"
  fill="yellow" filter="url(#f3)" />
</svg>