Gallery / Scatter plots

point

Equal data units on both axes

Fixed aspect when shape in data units must not stretch with the panel.

Equal data units on both axes

Source

Svelte, builder, JSON

<script lang="ts">
  import {
    CoordFixed,
    GeomPoint,
    GGPlot,
    Inspect,
    Labs,
  } from "@ggts-sh/svelte";

  import { unitCircle } from "./data.js";
</script>

<GGPlot
  data={unitCircle}
  aes={{ x: "x", y: "y" }}
  width="container"
  height={440}
>
  <GeomPoint size={3} />
  <CoordFixed />
  <Labs
    title="Equal data units on both axes"
    subtitle="A circular cloud stays circular when the aspect ratio locks x and y"
    x="x"
    y="y"
  />
  <Inspect mode="xy" pin maxDistance={24} />
</GGPlot>

Meta

Details

Family
Scatter plots
Source
point/fixed-aspect
Rendering
SVG
Techniques

point · coordinates · fixed-aspect · responsive