Blockly.Blocks['plot_legend'] = { init: function() { this.setHelpUrl('http://www.example.com/'); this.setColour(Blockly.Blocks.plot.HUE); this.appendDummyInput() .appendField("make legend"); this.setInputsInline(false); this.setPreviousStatement(true); this.setNextStatement(true); this.setOutput(false); this.setTooltip('Makes the legend appear'); } };