\documentclass[]{article}
\usepackage{barchart}


\begin{document}
\section{Bar Chart Example}

\begin{figure}[ht]
	\begin{barchart}[min = 0, max = 10, step = 2, height = 0.75em, scale = 2, label=Something nice]
		\barc[label = test, rotation = true, width = 20pt, color = blue!60]{1} 
		\barcskip{5pt}
		\barc[width = 20pt, color = cyan!60]{3}
		\barcskip{5pt}
		\barc[width = 20pt, color = yellow!60]{7}
		\barcskip{5pt}
		\barc[label = a long label, rotation = true,width = 20pt, color = orange!60]{5}
		\barcskip{5pt}
		\barc[width = 20pt, color = red!60]{3}
		\barcskip{5pt}
		\barc[color = magenta!60]{6}
		\barcskip{5pt}
		\barc[color = green!60]{6}
		\barcskip{5pt}
		\barc[label = lol,color = green!60]{9}
		\barcskip{5pt}
		\barc[color = green!60, plain=true]{3}
		\barcskip{5pt}
		\barc[color = green!60]{3}
		\barcskip{5pt}
		\barc[label = again?, rotation=true, color = green!60, plain=true]{3}
		\barcskip{5pt}
		\barc[color = green!60, label=a loooong label]{3}
	\end{barchart}
	\caption{A nice caption}
\end{figure}

\begin{figure}[ht]
	\begin{barchart}[min = 0, max = 100, step = 10, height = 0.5ex, scale = 1, label=Something nice]
		\barc[label = test, width = 20pt, color = blue!60]{50} 
		\barcskip{5pt}
		\barc[width = 30pt, color = cyan!60]{75}
		\barcskip{5pt}
	\end{barchart}
	\caption{A nice caption}
\end{figure}

\end{document}	 