<commit_before>// Libraries
import React, {PureComponent, createRef, RefObject} from 'react'

// Components
import {
  Popover,
  PopoverPosition,
  PopoverInteraction,
  PopoverType,
} from '@influxdata/clockface'


export default class GraphTips extends PureComponent{
  private triggerRef: RefObject<HTMLSpanElement> = createRef()

  public render() {
    return (
      <>
        <span ref={this.triggerRef}>?</span>
        <Popover
          type={PopoverType.Outline}
          position={PopoverPosition.Below}
          triggerRef={this.triggerRef}
          distanceFromTrigger={8}
          showEvent={PopoverInteraction.Hover}
          hideEvent={PopoverInteraction.Hover}
          contents={() => (
            <span>
              <h1>Graph Tips:</h1>
              <p>
                <code>Click + Drag</code> Zoom in (X or Y)
                <br />
                <code>Shift + Click</code> Pan Graph Window
                <br /><commit_msg>improvement (ui): popover change for grpah tips<commit_after>// Libraries
import React, {PureComponent, createRef, RefObject} from 'react'

// Components
import {
  Popover,
  PopoverPosition,
  PopoverInteraction,
  PopoverType,
} from '@influxdata/clockface'

export default class GraphTips extends PureComponent {
  private triggerRef: RefObject<HTMLSpanElement> = createRef()

  public render() {
    return (
      <>
        <span ref={this.triggerRef}>?</span>
        <Popover
          type={PopoverType.Outline}
          position={PopoverPosition.Below}
          triggerRef={this.triggerRef}
          distanceFromTrigger={8}
          showEvent={PopoverInteraction.Hover}
          hideEvent={PopoverInteraction.Hover}
          contents={() => (
            <span>
              <h1>Graph Tips:</h1>
              <p>
                <code>Click + Drag</code> Zoom in (X or Y)
                <br />
                <code>Shift + Click</code> Pan Graph Window
                <br />
{'fraction_non_alphanumeric': 0.1118488253319714, 'fraction_numerical': 0.0030643513789581204, 'mean_word_length': 2.195758564437194, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '365502', 'n_tokens_mistral': 573, 'n_tokens_neox': 555, 'n_words': 122}