| | 733 | <xsl:template name="gnuplot_efforts_type"> |
| | 734 | <xsl:param name="source_file"/> |
| | 735 | <xsl:param name="suffix"/> |
| | 736 | <xsl:param name="effort_type"/> |
| | 737 | <xsl:variable name="file"><xsl:value-of |
| | 738 | select="$imagedir"/>/efforts_version_<xsl:value-of |
| | 739 | select="$suffix"/>.gnuplot</xsl:variable> |
| | 740 | |
| | 741 | <redirect:write file="{$file}"> |
| | 742 | set terminal svg size 1024 800 fsize 8 |
| | 743 | set xdata time |
| | 744 | set format x "%m/%y" |
| | 745 | set xtics nomirror rotate by -45 |
| | 746 | set timefmt "%Y%m%d%H%M" |
| | 747 | set key outside |
| | 748 | set style fill solid 1.0 border -1 |
| | 749 | set boxwidth 0.5 relative |
| | 750 | set yrange [0:] |
| | 751 | |
| | 752 | # setting style of the lines (ls 1 and ls 2) |
| | 753 | set style line 1 lt rgb "#00FF00" |
| | 754 | set style line 2 lt rgb "#FF0000" |
| | 755 | set style line 3 lt rgb "#0000FF" |
| | 756 | |
| | 757 | set title "Efforts for <xsl:value-of select="$effort_type"/>" |
| | 758 | show title |
| | 759 | <xsl:variable name="position.1"><xsl:call-template name="get_position"> |
| | 760 | <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.internal.effort.remaining.version.prefix, $effort_type)"/> |
| | 761 | </xsl:call-template></xsl:variable> |
| | 762 | <xsl:variable name="position.2"><xsl:call-template name="get_position"> |
| | 763 | <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.internal.effort.spent.version.prefix, $effort_type)"/> |
| | 764 | </xsl:call-template></xsl:variable> |
| | 765 | <xsl:variable name="position.3"><xsl:call-template name="get_position"> |
| | 766 | <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.effort.remaining.version.prefix, $effort_type)"/> |
| | 767 | </xsl:call-template></xsl:variable> |
| | 768 | <xsl:variable name="position.4"><xsl:call-template name="get_position"> |
| | 769 | <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.effort.spent.version.prefix, $effort_type)"/> |
| | 770 | </xsl:call-template></xsl:variable> |
| | 771 | <xsl:variable name="position.5"><xsl:call-template name="get_position"> |
| | 772 | <xsl:with-param name="key" select="concat($kpi.jira.issue.crs.effort.remaining.version.prefix, $effort_type)"/> |
| | 773 | </xsl:call-template></xsl:variable> |
| | 774 | <xsl:variable name="position.6"><xsl:call-template name="get_position"> |
| | 775 | <xsl:with-param name="key" select="concat($kpi.jira.issue.crs.effort.spent.version.prefix, $effort_type)"/> |
| | 776 | </xsl:call-template></xsl:variable> |
| | 777 | <xsl:variable name="position.7"><xsl:call-template name="get_position"> |
| | 778 | <xsl:with-param name="key" select="concat($kpi.jira.issue.tasks.effort.remaining.version.prefix, $effort_type)"/> |
| | 779 | </xsl:call-template></xsl:variable> |
| | 780 | <xsl:variable name="position.8"><xsl:call-template name="get_position"> |
| | 781 | <xsl:with-param name="key" select="concat($kpi.jira.issue.tasks.effort.spent.version.prefix, $effort_type)"/> |
| | 782 | </xsl:call-template></xsl:variable> |
| | 783 | |
| | 784 | set output '<xsl:value-of select="$imagedir"/>/svg/efforts_version_bugs_internal_<xsl:value-of |
| | 785 | select="$suffix"/>.svg' |
| | 786 | 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',\ |
| | 787 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.2"/> w lines title 'Effort Spent' |
| | 788 | set output '<xsl:value-of select="$imagedir"/>/svg/efforts_version_bugs_<xsl:value-of |
| | 789 | select="$suffix"/>.svg' |
| | 790 | 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',\ |
| | 791 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.4"/> w lines title 'Effort Spent' |
| | 792 | set output '<xsl:value-of select="$imagedir"/>/svg/efforts_version_crs_<xsl:value-of |
| | 793 | select="$suffix"/>.svg' |
| | 794 | 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',\ |
| | 795 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.6"/> w lines title 'Effort Spent' |
| | 796 | set output '<xsl:value-of select="$imagedir"/>/svg/efforts_version_tasks_<xsl:value-of |
| | 797 | select="$suffix"/>.svg' |
| | 798 | 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',\ |
| | 799 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.8"/> w lines title 'Effort Spent' |
| | 800 | |
| | 801 | set terminal jpeg size 800 600 |
| | 802 | set output '<xsl:value-of select="$imagedir"/>/jpg/efforts_version_bugs_internal_<xsl:value-of |
| | 803 | select="$suffix"/>.jpg' |
| | 804 | 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',\ |
| | 805 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.2"/> w lines title 'Effort Spent' |
| | 806 | set output '<xsl:value-of select="$imagedir"/>/jpg/efforts_version_bugs_<xsl:value-of |
| | 807 | select="$suffix"/>.jpg' |
| | 808 | 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',\ |
| | 809 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.4"/> w lines title 'Effort Spent' |
| | 810 | set output '<xsl:value-of select="$imagedir"/>/jpg/efforts_version_crs_<xsl:value-of |
| | 811 | select="$suffix"/>.jpg' |
| | 812 | 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',\ |
| | 813 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.6"/> w lines title 'Effort Spent' |
| | 814 | set output '<xsl:value-of select="$imagedir"/>/jpg/efforts_version_tasks_<xsl:value-of |
| | 815 | select="$suffix"/>.jpg' |
| | 816 | 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',\ |
| | 817 | '<xsl:value-of select="$source_file"/>' using 1:<xsl:value-of select="$position.8"/> w lines title 'Effort Spent' |
| | 818 | |
| | 819 | </redirect:write> |
| | 820 | </xsl:template> |
| | 821 | |