Skip to content
Elijah Meeks edited this page Feb 1, 2018 · 1 revision

<SparkXYFrame /> is a wrapper around XYFrame that renders it as a <span> so it can be placed in a <p>. Its height (and width if not set) are based on the computed line-height of the line it is embedded in.

Some of the built-in defaults of the frame are different from the usual XYFrame:

  • Axes default to tickFormat: () => "" and baseline: false
  • Hover annotation defaults to a react-annotation that displays the hovered value (there are no HTML annotations in a spark frame)