Format parliament diagram
How to use this script:
- Type the list of parties in the box marked "List of parties". Each party
must have a name and a number of seats (can be 0), and if you like you can also add a colour.
The parties in the list must be separated by semicolons (";") and the party
information must be separated by commas (",") (For example, if you type:
"Party A, 33; Party B, 22, #99FF99" you will have two parties, one labeled "Party A" with 33 seats and
a random colour, and one labeled "Party B" in light green.)
- The script will create an svg diagram when you press "send".
- don't worry if it doesn't render properly in your browser, just save and open!
- If you want to use it on a Wikimedia project, I'd recommend using it on Wikimedia Commons; in that case, please use an appropriate category, for example Election apportionment diagrams.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
For the text of the GNU General Public License, please see http://www.gnu.org/licenses/.