The Processing programming language has a lot of cool libraries. It uses the programmatic gauge element building method and has a ton of parameters you can adjust to suit your needs.