#!/bin/bash DIR=`dirname $0` if [ $# != 2 ]; then echo "You must specify the path to the chart.pl script and the Chart Directory libraries." exit 1 fi SCRIPT="$1 --legend-position=right" LIBRARIES=$2 export PERL5LIB=$LIBRARIES pushd $DIR > /dev/null $SCRIPT -s bar --title "01 sample-percentages" -x "Samples" -y "% Samples" --y-range=0:101 ./plot_files/percent_0 $SCRIPT -s bar --title "02 sample-counts" -x "Samples" -y "# Samples" ./plot_files/count_0 $SCRIPT -s bar --title "11 app-percentages" -x "Apps" -y "% Apps" --y-range=0:101 ./plot_files/app_percent_0 ./plot_files/app_percent_1 ./plot_files/app_percent_2 ./plot_files/app_percent_3 ./plot_files/app_percent_4 $SCRIPT -s bar --title "12 app-counts" -x "Apps" -y "# Apps" ./plot_files/app_count_0 ./plot_files/app_count_1 ./plot_files/app_count_2 ./plot_files/app_count_3 ./plot_files/app_count_4 echo -e "\n
\n