EconPapers    
Economics at your fingertips  
 

LIBD3: Stata module providing D3js Mata library

Billy Buchanan ()
Additional contact information
Billy Buchanan: Minneapolis Public Schools

Statistical Software Components from Boston College Department of Economics

Abstract: libd3 is a mata implementation of the D3.js library. The library aims to implement the D3js methods as consistently with the original library as possible. Some noticeable differences are the object oriented approach taken by the library which allows users to "undo" a previous method call, the use of explicit constructors/initializers, and built-in methods for "pretty printing" the resulting javascript (e.g., indenting and new line insertion in a manner that is typical for javascript). The .ado wrapper included with the package is used to compile the library locally on your machine, making it easier for end users to further extend/customize the underlying source and maintain it across machines. Using this approach helps to make reusable components (e.g., compose a Mata function that generates all of the JS necessary to construct the graph). You can find example use cases at https://github.com/wbuchanan/d3mata-examples. Users of this package will also likely want to consider installing the libhtml package to compose the HTML document in which the visualization would be embedded and the jsonio package to serialize their data to a JSON object that will retain the metadata from their dataset. After installing, run the command libd3, ml rep qui.

Language: Stata
Requires: Stata version 12
Keywords: data visualization; graphs; web graphics; D3 (search for similar items in EconPapers)
Date: 2016-04-01
Note: This module should be installed from within Stata by typing "ssc install libd3". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/l/libd3.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/libd3.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/d/d3.mata Java archive file (application/x-java)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s458163

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s458163