In this example, we'll be customizing options so that our graph looks a lot more familiar.
sysuse sp500, clear /*Stata Scheme*/ gchart line high low date, /// lcolor(navy maroon) title("S&P 500 - Stata Color Scheme", color(#1e2d53) size(34) font("Arial") ) /// xtitle("Date", color(black) font(Arial) italic) ytitle("Price", color(black) font(Arial)) /// graphregion(fcolor(#eaf2f3, html)) plotregion(fcolor(white)) /// xlab(#7, glcolor(white)) ylab(#6,glcolor(#eaf2f3) angle(90)) legend(position(bottom))
Giving us the following graph:
We plan on adding a scheme(stata) option in a future release of gcharts. In the meantime, help files will list the color/axis/grid options for rendering Stata-looking graphs.
8/1/2016 09:04:26 am
At first I thought it was another Stata Chart until I hovered over the lines. Pretty awesome way to take things to the next level!
1/4/2017 12:12:47 pm
Really impressive! How do I install gchart into STATA? I tried "findit gchart" but nothing returned. Thanks!
Your comment will be posted after it is approved.
Leave a Reply.
gcharts is a a program we co-wrote. This page is a portfolio of some basic examples. We will be adding more (complicated) examples shortly.