The technique of drawing bar charts with text characters is not new, but with the advent of better graphics, it's no longer commonly used. Had you heard of this before you read the article? Do you have uses for it? Do you think that it's more trouble than using code or a third-party chart generator? Let us know in the enterprise.general discussion group.
Simplify and Enhance Your Reporting with Character-based Bar Charts
Numerous software packages and programming languages have built-in capabilities for producing text-based bar charts by making use of either ASCII or UNICODE characters. Because these bar graphs are nothing more than text characters themselves, you don't need any special third-party software to create them. Consequently, you can incorporate such graphs easily and at virtually no cost anywhere you need to present tabular data.
by Tom Dierickx
March 10, 2003
Introduction ack in January of 2002, I was thumbing through the December issue of elementkjournal's, "Inside Microsoft Access", when I came across the MSDN article entitled, "Graphically Display Percentages on Forms and Feports" by Sean Kavanagh. The technique shown in the article was so simple and straightforward, yet so elegant and flexible, that it sent me on a mission to find out if it could be extended to other packages. What was Sean's technique? Simple. Pick a text character and repeat it as many times as necessary to create a bar chart. While the article's specific implementation used Micrsoft Access's built-in String() function, you can apply the same general approach in many different environments.
In fact, the capability to add visually appealing text-based bar charts to reports and applications already exists in nearly every software packageand you can apply it without much effort. Including a visual data representation in a report or analysis, can aid users in the interpretation of the data, and can often provide insights that may not otherwise have been obvious. The purpose of many data-driven applications and, certainly, of most canned reports, is to assist in the conversion of raw data into informationand it's precisely this idea of conversion of data into information that makes the topic interesting and useful. The technique is especially valuable in database applications where SQL queries might be the final output and are, inherently, tabular.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!