graphExport(type, $event) {
      switch (type) {
      case "IMAGE":
        this.exportImage();
        break;
      case "JSON":
        this.exportJSON();
        break;
      case "CSV":
        this.exportCSV();
        break;
      default:
        // eslint-disable-next-line no-console
        console.warn(`Invalid option '${$event.target.innerHTML}' in ${this.element.id.toUpperCase()}`);
      }
    }
/**
     * Generate a file base on the supplied type using the graph data.
     * @param {String} type File type to export to.
     * @param {MouseEvent} $event MouseEvent.
     * @returns {void}
     */
Generate a file base on the supplied type using the graph data.
@param {String} type File type to export to.
Generate a file base on the supplied type using the graph data . @param { String } type File type to export to .
graphExport(type, $event) {
      switch (type) {
      case "IMAGE":
        this.exportImage();
        break;
      case "JSON":
        this.exportJSON();
        break;
      case "CSV":
        this.exportCSV();
        break;
      default:
        console.warn(`Invalid option '${$event.target.innerHTML}' in ${this.element.id.toUpperCase()}`);
      }
    }
graphExport ( type , $event ) { switch ( type ) { case "IMAGE" : this . exportImage ( ) ; break ; case "JSON" : this . exportJSON ( ) ; break ; case "CSV" : this . exportCSV ( ) ; break ; default : console . warn ( ` ${ $event . target . innerHTML } ${ this . element . id . toUpperCase ( ) } ` ) ; } }
Generate a file base on the supplied type using the graph data.
Generate a file base on the supplied type using the graph data .
// eslint-disable-next-line no-console