Our scripting tool DataVoila is a great little helper for serious business stuff like extracting information from log files or converting CSV documents into XML format. But did you know DataVoila can be fun?
Here’s how. I have created a small script project that takes a list of buzzwords as input and uses them to generate randomly populated Bingo cards in SVG format like this one.
While DataVoila’s “Input” editor contains the buzzwords to show on the Bingo cards, the “Output” editor holds the template SVG code.
Included in the SVG code is a placeholder comment <!– Placeholder –> that gets replaced by SVG <text> elements when generating the output files.
In DataVoila’s script editor, you can easily configure the output directory to which the generated files are saved. It’s also possible to set the number of Bingo cards to create.
By measuring the width of each buzzword and adjusting the font size accordingly, the script makes sure that the text fits into a square’s bounds. Bingo!