| | 772 | set title "Efforts for <xsl:value-of select="$effort_type"/> (<xsl:value-of select="$version"/>)" |
| | 773 | show title |
| | 774 | <xsl:variable name="position.1"><xsl:call-template name="get_position"> |
| | 775 | <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.internal.effort.remaining.version.prefix, $effort_type)"/> |
| | 776 | </xsl:call-template></xsl:variable> |
| | 777 | <xsl:variable name="position.2"><xsl:call-template name="get_position"> |
| | 778 | <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.internal.effort.spent.version.prefix, $effort_type)"/> |
| | 779 | </xsl:call-template></xsl:variable> |
| | 780 | <xsl:variable name="position.3"><xsl:call-template name="get_position"> |
| | 781 | <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.effort.remaining.version.prefix, $effort_type)"/> |
| | 782 | </xsl:call-template></xsl:variable> |
| | 783 | <xsl:variable name="position.4"><xsl:call-template name="get_position"> |
| | 784 | <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.effort.spent.version.prefix, $effort_type)"/> |
| | 785 | </xsl:call-template></xsl:variable> |
| | 786 | <xsl:variable name="position.5"><xsl:call-template name="get_position"> |
| | 787 | <xsl:with-param name="key" select="concat($kpi.jira.issue.crs.effort.remaining.version.prefix, $effort_type)"/> |
| | 788 | </xsl:call-template></xsl:variable> |
| | 789 | <xsl:variable name="position.6"><xsl:call-template name="get_position"> |
| | 790 | <xsl:with-param name="key" select="concat($kpi.jira.issue.crs.effort.spent.version.prefix, $effort_type)"/> |
| | 791 | </xsl:call-template></xsl:variable> |
| | 792 | <xsl:variable name="position.7"><xsl:call-template name="get_position"> |
| | 793 | <xsl:with-param name="key" select="concat($kpi.jira.issue.tasks.effort.remaining.version.prefix, $effort_type)"/> |
| | 794 | </xsl:call-template></xsl:variable> |
| | 795 | <xsl:variable name="position.8"><xsl:call-template name="get_position"> |
| | 796 | <xsl:with-param name="key" select="concat($kpi.jira.issue.tasks.effort.spent.version.prefix, $effort_type)"/> |
| | 797 | </xsl:call-template></xsl:variable> |
| | 798 | |
| | 799 | set output '<xsl:value-of select="$imagedir"/>/svg/efforts_version_bugs_internal_<xsl:value-of |
| | 800 | select="$suffix"/>.svg' |
| | 801 | plot '<xsl:value-of select="$source_file"/>' using 1:($<xsl:value-of select="$position.1"/>+$<xsl:value-of select="$position.2"/>) w lines title 'Complete Effort',\ |
| | 802 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.2"/> w lines title 'Effort Spent' |
| | 803 | set output '<xsl:value-of select="$imagedir"/>/svg/efforts_version_bugs_<xsl:value-of |
| | 804 | select="$suffix"/>.svg' |
| | 805 | plot '<xsl:value-of select="$source_file"/>' using 1:($<xsl:value-of select="$position.3"/>+$<xsl:value-of select="$position.4"/>) w lines title 'Complete Effort',\ |
| | 806 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.4"/> w lines title 'Effort Spent' |
| | 807 | set output '<xsl:value-of select="$imagedir"/>/svg/efforts_version_crs_<xsl:value-of |
| | 808 | select="$suffix"/>.svg' |
| | 809 | plot '<xsl:value-of select="$source_file"/>' using 1:($<xsl:value-of select="$position.5"/>+$<xsl:value-of select="$position.6"/>) w lines title 'Complete Effort',\ |
| | 810 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.6"/> w lines title 'Effort Spent' |
| | 811 | set output '<xsl:value-of select="$imagedir"/>/svg/efforts_version_tasks_<xsl:value-of |
| | 812 | select="$suffix"/>.svg' |
| | 813 | plot '<xsl:value-of select="$source_file"/>' using 1:($<xsl:value-of select="$position.7"/>+$<xsl:value-of select="$position.8"/>) w lines title 'Complete Effort',\ |
| | 814 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.8"/> w lines title 'Effort Spent' |
| | 815 | |
| | 816 | set terminal jpeg size 800 600 |
| | 817 | set output '<xsl:value-of select="$imagedir"/>/jpg/efforts_version_bugs_internal_<xsl:value-of |
| | 818 | select="$suffix"/>.jpg' |
| | 819 | plot '<xsl:value-of select="$source_file"/>' using 1:($<xsl:value-of select="$position.1"/>+$<xsl:value-of select="$position.2"/>) w lines title 'Complete Effort',\ |
| | 820 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.2"/> w lines title 'Effort Spent' |
| | 821 | set output '<xsl:value-of select="$imagedir"/>/jpg/efforts_version_bugs_<xsl:value-of |
| | 822 | select="$suffix"/>.jpg' |
| | 823 | plot '<xsl:value-of select="$source_file"/>' using 1:($<xsl:value-of select="$position.3"/>+$<xsl:value-of select="$position.4"/>) w lines title 'Complete Effort',\ |
| | 824 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.4"/> w lines title 'Effort Spent' |
| | 825 | set output '<xsl:value-of select="$imagedir"/>/jpg/efforts_version_crs_<xsl:value-of |
| | 826 | select="$suffix"/>.jpg' |
| | 827 | plot '<xsl:value-of select="$source_file"/>' using 1:($<xsl:value-of select="$position.5"/>+$<xsl:value-of select="$position.6"/>) w lines title 'Complete Effort',\ |
| | 828 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.6"/> w lines title 'Effort Spent' |
| | 829 | set output '<xsl:value-of select="$imagedir"/>/jpg/efforts_version_tasks_<xsl:value-of |
| | 830 | select="$suffix"/>.jpg' |
| | 831 | plot '<xsl:value-of select="$source_file"/>' using 1:($<xsl:value-of select="$position.7"/>+$<xsl:value-of select="$position.8"/>) w lines title 'Complete Effort',\ |
| | 832 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.8"/> w lines title 'Effort Spent' |
| | 833 | |
| | 834 | </redirect:write> |
| | 835 | </xsl:template> |
| | 836 | |
| | 837 | <xsl:template name="gnuplot_all_versions_efforts_type"> |
| | 838 | <xsl:param name="source_file"/> |
| | 839 | <xsl:param name="suffix"/> |
| | 840 | <xsl:param name="effort_type"/> |
| | 841 | <xsl:variable name="file"><xsl:value-of |
| | 842 | select="$imagedir"/>/efforts_version_<xsl:value-of |
| | 843 | select="$suffix"/>.gnuplot</xsl:variable> |
| | 844 | |
| | 845 | <redirect:write file="{$file}"> |
| | 846 | set terminal svg size 1024 800 fsize 8 |
| | 847 | set xdata time |
| | 848 | set format x "%m/%y" |
| | 849 | set xtics nomirror rotate by -45 |
| | 850 | set timefmt "%Y%m%d%H%M" |
| | 851 | set key outside |
| | 852 | set style fill solid 1.0 border -1 |
| | 853 | set boxwidth 0.5 relative |
| | 854 | set yrange [0:] |
| | 855 | |
| | 856 | # setting style of the lines (ls 1 and ls 2) |
| | 857 | set style line 1 lt rgb "#00FF00" |
| | 858 | set style line 2 lt rgb "#FF0000" |
| | 859 | set style line 3 lt rgb "#0000FF" |
| | 860 | |