# visualizer/3.10.12/classes/Visualizer/Gutenberg/src/index.js

Visualizer – Tables &amp; Charts Manager with Built-in AI Generator, version 3.10.12. 64 lines.

- Page: https://pluginprobe.com/plugins/visualizer/3.10.12/code/classes/Visualizer/Gutenberg/src/index.js
- Raw: https://pluginprobe.com/plugins/visualizer/3.10.12/raw/classes/Visualizer/Gutenberg/src/index.js
- Modified: 2020-07-08T14:32:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/visualizer/3.10.12/code/classes/Visualizer/Gutenberg/src/index.js#L10-L20`.

```javascript
/**
 * Block dependencies
 */
import EditorArea from './Editor.js';

import './style.scss';

/**
 * Internal block libraries
 */
const { __ } = wp.i18n;

const { registerBlockType } = wp.blocks;

/**
 * Register block
 */
export default registerBlockType( 'visualizer/chart', {

	// Block Title
	title: __( 'Visualizer Chart' ),

	// Block Description
	description: __( 'A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages.' ),

	// Block Category
	category: 'common',

	// Block Icon
	icon: 'chart-pie',

	// Block Keywords
	keywords: [
		__( 'Visualizer' ),
		__( 'Chart' ),
		__( 'Google Charts' )
	],
	attributes: {
		id: {
			type: 'number'
		},
		lazy: {
            default: '-1',
			type: 'string'
		},
		route: {
			type: 'string'
		}
	},
	supports: {
		customClassName: false
	},

	// Defining the edit interface
	edit: EditorArea,

	// Defining the front-end interface
	save() {

		// Rendering in PHP
		return null;
	}
});

```
