Chartly.js is a web component that allows end users to create (‘program’) a chart using the Blockly visual programming environment. Charts are ‘compiled’ to a JSON specification for the chart. At run time, Chartly interprets the JSON and draws the chart using d3.js.
Chartly is open-source under the MIT license.
Try Chartly: Chartly Demo
Get the code: Chartly at GitHub