Thank you Herbert and Carsten for quick and educational replies!<div>I used Herbert's because it was first ;)</div><div>My data is from R so I used </div><div><span class="Apple-style-span" style="white-space: pre-wrap;"><br>
</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;">> tbl <- cbind(tbl, paste("\\Bar", new.lbl[, 3], ";", sep = ""))</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;"><br>
</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;">to get the final column to read the bar command automatically and it worked like a charm!</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;">Beautiful 350 row longtable without having to enter all the bar lengths by hand!</span></div>
<div><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;">Thanks guys!!!</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;"><br>
</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;">Maja. </span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;"><br>
</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span><div class="gmail_quote"><br></div><div class="gmail_quote">On 13 April 2011 17:46, Carsten Vogel <span dir="ltr"><<a href="mailto:texnicer@web.de">texnicer@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
<br>
Funny, while I was fighting source code and feeling sick because of my Gefrickel, I always thought: How would a pro like Herbert do it?<br>
<br>
<br>
\documentclass{scrartcl}<br>
\usepackage[english]{babel}<br>
\usepackage[T1]{fontenc}<br>
\usepackage{lmodern}<br>
\usepackage{booktabs}<br>
\usepackage{pst-plot}<br>
\usepackage{calc}<br>
\usepackage{multido}<br>
\usepackage{capt-of}<br>
\usepackage[babel]{csquotes}<br>
<br>
<br>
\newlength{\MaxWidth}\setlength{\MaxWidth}{5cm}<br>
\newlength{\BarHeight}\setlength{\BarHeight}{1.2ex}<br>
\xdefinecolor{Bar1}{rgb}{0.8,0.8,1.0}<br>
<br>
\newpsstyle{Bar}{fillstyle=solid,fillcolor=Bar1,linewidth=.7pt,linecolor=black}<br>
\newcommand{\Bar}[1]{\psframe[style=Bar](#1,\BarHeight)}<br>
<br>
<br>
\newcommand{\Scale}{%<br>
        \multido{\Na=0+1}{6}{%<br>
                \psline(\Na,.2)(\Na,.3)%<br>
                \rput[t](\Na,.1){\footnotesize\sffamily\Na}%<br>
        }%<br>
        \psline(0,.2)(\MaxWidth,.2)<br>
}<br>
<br>
<br>
\begin{document}<br>
\noindent{\Large Something more straigthforward, vielleicht}\par\bigskip<br>
\captionof{table}[Example 1]{Custom \enquote{bar-chart}}<br>
\noindent\begin{center}\begin{tabular}{llp{\MaxWidth}}\toprule<br>
Column1                 & Column2       & Column3\\\midrule<br>
Content1                & Content2      & \Bar{4.2}\\\addlinespace<br>
Content3                & Content4      & \Bar{3.5}\\\addlinespace<br>
Content5                & Content6      & \Bar{1.5}\\\addlinespace<br>
Content7                & Content8      & \Bar{4.5}\\\addlinespace<br>
Content9                & Content10     & \Bar{2.75}\\\addlinespace<br>
                                        &                                       & \Scale\\\addlinespace<br>
\bottomrule\end{tabular}\end{center}<br>
\end{document}<div><div></div><div class="h5"><br>
_______________________________________________<br>
PSTricks mailing list<br>
<a href="mailto:PSTricks@tug.org" target="_blank">PSTricks@tug.org</a><br>
<a href="http://tug.org/mailman/listinfo/pstricks" target="_blank">http://tug.org/mailman/listinfo/pstricks</a><br>
archive: <a href="http://www.tug.org/pipermail/pstricks/" target="_blank">http://www.tug.org/pipermail/pstricks/</a><br>
</div></div></blockquote></div><br></div>