IDEAS home Printed from
   My bibliography  Save this paper

Static to live: combining Stata with Google Charts API


  • Belen Chavez

    (San Diego Gas & Electric)

  • William Matsuoka

    (San Diego Gas & Electric)


Stata graphics are professional, visually pleasing, and easy to format, but lack the interactive experience or transparency options requested by many users. In this presentation, we introduce a new command, gchart: a fully functional wrapper for the Google Chart API that is written almost entirely like the twoway command, allowing users to write quality JavaScript data visualizations using familiar Stata graphing syntax. While other Google Chart based programs already exist, gchart aims to be the most comprehensive library to-date. With gchart, Stata users can present interactive web-based graphics without exporting their data to secondary software packages or learning JavaScript and HTML. The gchart library contains most Stata graph types such as bar, pie, and line, as well as new graphs offered by Google Charts such as treemaps, timelines, Sankey diagrams, and more! The command contains an option to create interactive tables directly from datasets and even has preset settings to make resulting Google Charts feel more Stata-like. Once the visualizations are rendered, web visitors and/or blog readers will be happy to play with the resulting graphics.

Suggested Citation

  • Belen Chavez & William Matsuoka, 2016. "Static to live: combining Stata with Google Charts API," 2016 Stata Conference 16, Stata Users Group.
  • Handle: RePEc:boc:scon16:16

    Download full text from publisher

    File URL:
    Download Restriction: no

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:scon16:16. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.