/**
  * Returns whether the enable trend graph link should be shown.
  *
  * @param request the request to get the cookie from
  * @return the graph configuration
  */
 public boolean canShowEnableTrendLink(final StaplerRequest request) {
   GraphConfigurationView configuration = createUserConfiguration(request);
   if (configuration.hasMeaningfulGraph()) {
     return !configuration.isDeactivated() && !configuration.isVisible();
   }
   return false;
 }
  /**
   * Returns whether the trend graph is visible.
   *
   * @param request the request to get the cookie from
   * @return <code>true</code> if the trend is visible
   */
  public boolean isTrendVisible(final StaplerRequest request) {
    GraphConfigurationView configuration = createUserConfiguration(request);

    return configuration.isVisible() && configuration.hasMeaningfulGraph();
  }