<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>FAQ/barpercent</title><revhistory><revision><revnumber>2</revnumber><date>2013-03-08 10:17:56</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>1</revnumber><date>2007-06-05 14:31:37</date><authorinitials>PeterWatson</authorinitials></revision></revhistory></articleinfo><section><title>How do I produce an interactive bar chart of percentages in SPSS?</title><para>Interactive bar charts will plot either counts (default) or percentages for each group or groups, represented by bars or clusters of bars. </para><para>They can either be run from the menu or using syntax. The syntax below will place counts on the y-axis for bars specified by the variable aq1, on the x-axis.  </para><screen><![CDATA[IGRAPH /VIEWNAME='Bar Chart' /X1 = VAR(aq1) TYPE = SCALE /Y = $count
 /COORDINATE = VERTICAL  /TITLE='Distribution of High Prestige Probabilities'
 /X1LENGTH=3.0 /YLENGTH=3.0 /X2LENGTH=3.0 /CHARTLOOK='NONE' /BAR KEY=OFF SHAPE
  = RECTANGLE BASELINE = AUTO.
EXE.]]></screen><para>Replacing $count by $pct produces percentages on the y axis for each value of aq1 denoted by bars on the x-axis. </para></section></article>