diff --git a/dabo/functions/genchart.sh b/dabo/functions/genchart.sh index 3df1687..9ff75b6 100644 --- a/dabo/functions/genchart.sh +++ b/dabo/functions/genchart.sh @@ -49,11 +49,12 @@ function genchart { do linecolor=$(echo "$colors" | cut -d, -f${fieldnum}) linename=$(cat ${g_tmp}/g_genchart_headline | cut -d, -f${fieldnum} | tr [:lower:] [:upper:]) + linelastvalue=$(tail -n1 ${g_tmp}/g_genchart_data | cut -d, -f${fieldnum}) if [ ${fieldnum} -eq 1 ] then - echo "${linename}
" + echo "

${linename} (${linelastvalue})

" else - echo "${linename}
" + echo "

${linename} (${linelastvalue})

" fi >>${g_tmp}/g_genchart/legend local linenum=1 for line in $(cat ${g_tmp}/g_genchart_data) diff --git a/dabo/functions/webpage.sh b/dabo/functions/webpage.sh index 0f7d376..b7ab9b1 100644 --- a/dabo/functions/webpage.sh +++ b/dabo/functions/webpage.sh @@ -266,7 +266,7 @@ function webpage { " >>../index.html.tmp echo "
${asset} Charts" >>../index.html.tmp echo "Price, EMA, Levels" >>../index.html.tmp - genchart asset-histories/${asset}.history.csv 50 2,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39 >>../index.html.tmp + genchart asset-histories/${asset}.history.csv 50 2,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39 green,DarkSlateGrey,DarkSlateGrey,Gold,DarkOrange,DarkOrange,GoldenRod,GoldenRod,GoldenRod,GoldenRod,DarkOrange,DarkOrange,Indigo,DarkSlateBlue,DodgerBlue,DeepSkyBlue >>../index.html.tmp echo "MACD" >>../index.html.tmp genchart asset-histories/${asset}.history.csv 50 8,6,7 >>../index.html.tmp echo "RSIs" >>../index.html.tmp diff --git a/data/browser.css b/data/browser.css index de30d2c..8f3cc78 100644 --- a/data/browser.css +++ b/data/browser.css @@ -222,3 +222,8 @@ table, th, td { vertical-align: top; } +.legend { + font-weight: bold; + white-space: nowrap; +} +