Skip to content

Releases: influxdata/giraffe

v2.7.1

29 Mar 19:20
395f67c
Compare
Choose a tag to compare

Annotations Are Ludicrously Clickable

  • Fixes an issue with the triangular annotation click targets being hard to click
  • Makes the annotation line clickable

v2.7.0

25 Mar 23:40
d8977e2
Compare
Choose a tag to compare

Annotations Are More Clickable Than Ever Before

v2.6.3

25 Mar 22:37
6abef0e
Compare
Choose a tag to compare

Map Bugfix

Maps will calculate coordinates when provided with lat and lon fields

v2.6.2

24 Mar 22:36
0ec0b5f
Compare
Choose a tag to compare

Zooming on the graph no longer resets domains

v2.6.1

19 Mar 22:17
7e23e2b
Compare
Choose a tag to compare

Fix typo in Annotation Tooltip testID

v2.6.0

19 Mar 18:59
55f7199
Compare
Choose a tag to compare

Utilities for Single Stat exported for use

  • getLatestValues and formatStatValue available as utilities
  • storybook runs properly when Giraffe is cloned with a different local name

v2.5.0

04 Mar 01:23
Compare
Choose a tag to compare

TimeFormatterFactoryOptions Interface available

Exposes the configurable options of time format

v2.4.0

03 Mar 19:13
a9fa73f
Compare
Choose a tag to compare

Single Click Interactions

  • Adds a single-click interaction handler option; the double-click interaction handler is still present
    • the SizedPlot now uses the single click handler instead of the double-click handler

v2.3.0

26 Feb 18:01
Compare
Choose a tag to compare

Beta Release of exportImage

The top level Giraffe interface exports a new function: exportImage. This function lets you export screenshots of your graphs.

  • exportImage takes your Giraffe graphs and produces a png screenshot from them.
    • Beta: The interface of this function and how it works might change without a breaking release and without warning
    • takes three arguments: Two required canvas elements: one representing the Axes, the other representing the main plot layer; and an optional margins structure to offset the two graphs for compositing

a screenshot of a histogram plot

const axesCanvasRef: React.RefObject<HTMLCanvasElement> = React.createRef()
const layerCanvasRef: React.RefObject<HTMLCanvasElement> = React.createRef()

<>
  <button onClick={produceScreenshot}>Open a Screenshot in a new Window</button>
  <Plot
    config={config}
    axesCanvasRef={axesCanvasRef}
    layerCanvasRef={layerCanvasRef}
  />
</>

produceScreenshot = async () => {
  const base64Image = exportImage(layerCanvasRef, axesCanvasRef)
  window.open(base64Image, '_blank')
}

v2.2.0

16 Feb 23:43
Compare
Choose a tag to compare

Say hello to InteractionHandlerArguments

export interface InteractionHandlerArguments {
  hoverX: number
  hoverY: number
  valueX: number | string
  valueY: number | string
  xDomain: number[]
  yDomain: number[]
  resetDomains: () => void
}