Chart builder with JS (demo)