Page 1 of 14

How to create a Parliament diagram!

PostPosted: Sun Apr 15, 2012 7:33 am
by ArghNeedAName
A while ago there was a thread for making diagrams like this to show the composition of your legislative assembly:

Image
Image


These diagrams (Slashme Diagrams) originate from Wikipedia and the script for creating them was programmed by a user called Slashme. Interested in making one yourself?

  1. Go to this website
  2. In the text box, type in the code as instructed:
    - Party name
    - Comma
    - Number of seats the party has
    - Comma
    - The hexidecimal code to show the colour you want the party to be (must have a # in front of it)
    - Semi-colon (except at the end)
    - Repeat for every other party

    For example, the diagram above was created by entering this:

    Socialist Party, 34, #660066; Labour Party, 171, #FF0000; Green Party, 69, #00FF00; Christian Democratic Party, 80, #FF9900; Reformist Party, 142, #0000FF; Free Republic Party, 40, #FFFF00; PDV, 64, #999999

    Do not enter any speech marks as this messes it up!

    Below is a (rather simplified) chart to show the hexidecimal codes for various colours:

    Image
  3. Click Send, then click to load the SVG code, and load of code should appear. Copy it.
  4. Open up Notepad (or some other simple text editor) and paste in the SVG code.
  5. Save the code. In the Save dialogue box, change the "Save as Type" to All Files, not Text Document. Name it parliament.svg.
  6. Now go onto this website or any other that converts SVG images to PNG format.
  7. Click Browse and select the SVG file you have just saved. Select to convert it to PNG.
  8. Click Submit and then save the file you produce (there's an option to preview it as well).
  9. To allow it to be viewed on NationStates, upload it to an image hosting website.

Any problems? Post here. Also, you're welcome to post your created diagrams on this thread!

PostPosted: Sun Apr 15, 2012 8:10 am
by Radiatia
Ah good on you! I'm always having people ask me how it's done, and it's not an easy process to explain.

Nice one!

PostPosted: Sun Apr 15, 2012 9:07 am
by Luziyca
Nice job on explaining. I did that, saved it as a PNG file directly (after some tweaks), then uploaded it to NSWiki (after adding the parties). Yeah, I wanted to do one, for my puppet (Elbania). The difference, was that the number on mine was Times New Roman Bold, compared to (I think) Tahoma font. Anyways, other than the font difference, it was essentially the same.

PostPosted: Sun Apr 15, 2012 10:00 am
by Astralsideria
Thanks very much :) Mightily useful

PostPosted: Sun Apr 15, 2012 10:21 am
by Novaya Tselinoyarsk
Very useful, thanks.

PostPosted: Sun Apr 15, 2012 10:24 am
by Chinese Regions
Thankyou very much!

PostPosted: Sun Apr 15, 2012 10:33 am
by Azebo
Ah this is extremely useful. Thank you for creating it :3

PostPosted: Sun Apr 15, 2012 10:45 am
by Mount Shavano
ArghNeedAName wrote:A while ago there was a thread for making diagrams like this to show the composition of your legislative assembly:



You can see these diagrams (Slashme Diagrams) on Wikipedia as the tool for creating them was invented by a user called Slashme. Interested in making one yourself?

  1. Go to this website
  2. In the text box, type in the code as instructed:
    - Party name
    - Comma
    - Number of seats the party has
    - Comma
    - The hexidecimal code to show the colour you want the party to be (must have a # in front of it)
    - Semi-colon (except at the end)
    - Repeat for every other party

    For example, the diagram above was created by entering this:

    Socialist Party, 34, #660066; Labour Party, 171, #FF0000; Green Party, 69, #00FF00; Christian Democratic Party, 80, #FF9900; Reformist Party, 142, #0000FF; Free Republic Party, 40, #FFFF00; PDV, 64, #999999

    Do not enter any speech marks as this messes it up!

    Below is a (rather simplified) chart to show the hexidecimal codes for various colours:

  3. Click Send, then click to load the SVG code, and load of code should appear. Copy it.
  4. Open up Notepad (or some other simple text editor) and paste in the SVG code.
  5. Save the code. In the Save dialogue box, change the "Save as Type" to All Files, not Text Document. Name it parliament.svg.
  6. Now go onto this website or any other that converts SVG images to PNG format.
  7. Click Browse and select the SVG file you have just saved. Select to convert it to PNG.
  8. Click Submit and then save the file you produce (there's an option to preview it as well).
  9. To allow it to be viewed on NationStates, upload it to an image hosting website.

Any problems? Post here.


You, sir, are a credit to the board.

PostPosted: Sun Apr 15, 2012 11:57 am
by North Europa
Thank you very much. It is very useful

PostPosted: Sun Apr 15, 2012 12:07 pm
by Greater Mackonia
You win 5 Internets.

PostPosted: Sun Apr 15, 2012 12:11 pm
by Delgrae
I was always wondering how to do this.

PostPosted: Sun Apr 15, 2012 2:21 pm
by TurtleShroom
Words can not describe how useful this wll be to me.

PostPosted: Mon Apr 16, 2012 2:35 am
by New Hayesalia
Are you a wizard?

PostPosted: Tue Apr 17, 2012 3:49 pm
by Lancov
Awesome!

PostPosted: Tue Apr 17, 2012 3:58 pm
by Sailsia
NICE! Thanks for the guide and links

PostPosted: Wed Apr 18, 2012 2:24 pm
by Arkiasis
Thanks a lot and great job. :D


Here's my result.

Image

PostPosted: Wed Apr 18, 2012 2:49 pm
by Urcea
:o

Image

PostPosted: Thu Apr 19, 2012 3:38 pm
by North Mexico
That's cute.
TAG

PostPosted: Thu Apr 19, 2012 4:10 pm
by SquareDisc City
Hey, this is pretty cool. Unfortunately it's not much good for me right now because my legislature has just 40 members! However, one of the parties would like to increase that, so if they do then I might want something like that.

PostPosted: Thu Apr 19, 2012 5:25 pm
by Dainer
Hmm, I like that one. I should try my hand at it very soon.

PostPosted: Thu Apr 19, 2012 5:30 pm
by Galonica
Tag. I'll to do one of these at some point.

PostPosted: Thu Apr 19, 2012 5:31 pm
by Eeri
tag, useful information, right now not working so well for me gotta really figure this out.

PostPosted: Thu Apr 19, 2012 5:46 pm
by Holy Trek
ArghNeedAName wrote:A while ago there was a thread for making diagrams like this to show the composition of your legislative assembly:



You can see these diagrams (Slashme Diagrams) on Wikipedia as the tool for creating them was invented by a user called Slashme. Interested in making one yourself?

  1. Go to this website
  2. In the text box, type in the code as instructed:
    - Party name
    - Comma
    - Number of seats the party has
    - Comma
    - The hexidecimal code to show the colour you want the party to be (must have a # in front of it)
    - Semi-colon (except at the end)
    - Repeat for every other party

    For example, the diagram above was created by entering this:

    Socialist Party, 34, #660066; Labour Party, 171, #FF0000; Green Party, 69, #00FF00; Christian Democratic Party, 80, #FF9900; Reformist Party, 142, #0000FF; Free Republic Party, 40, #FFFF00; PDV, 64, #999999

    Do not enter any speech marks as this messes it up!

    Below is a (rather simplified) chart to show the hexidecimal codes for various colours:

  3. Click Send, then click to load the SVG code, and load of code should appear. Copy it.
  4. Open up Notepad (or some other simple text editor) and paste in the SVG code.
  5. Save the code. In the Save dialogue box, change the "Save as Type" to All Files, not Text Document. Name it parliament.svg.
  6. Now go onto this website or any other that converts SVG images to PNG format.
  7. Click Browse and select the SVG file you have just saved. Select to convert it to PNG.
  8. Click Submit and then save the file you produce (there's an option to preview it as well).
  9. To allow it to be viewed on NationStates, upload it to an image hosting website.

Any problems? Post here.


Yea, I didn't get that pretty visual display like you got.

PostPosted: Thu Apr 19, 2012 5:48 pm
by Rastynhaven
I LOVE you! :lol:
Thank you so much!

PostPosted: Thu Apr 19, 2012 6:01 pm
by Holy Trek
And how the hell did you get that perfect 600??? :mad: :? I can't even get a perfect 200, which is the number of seats in my nation's Imperial Parliament.