-
Notifications
You must be signed in to change notification settings - Fork 4
/
libd3.pkg
43 lines (41 loc) · 1.73 KB
/
libd3.pkg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
d 'LIBD3': D3js Mata Library
d
d libd3 is a mata implementation of the D3.js library. The library aims to
d implement the D3js methods as consistently with the original library as
d possible. Some noticible differences are the object oriented approach
d taken by the library which allows users to "undo" a previous method call,
d the use of explicit constructors/initializers, and build in methods for
d "pretty printing" the resulting javascript (e.g., indenting and new line
d insertion in a manner that is typical for javascript). The .ado wrapper
d included with the package is used to compile the library locally on your
d machine, making it easier for end users to further extend/customize the
d underlying source and maintain it across machines. Using this approach
d helps to make reusable components (e.g., compose a Mata function that
d generates all of the JS necessary to construct the graph). You can
d find example use cases at https://github.com/wbuchanan/d3mata-examples.
d Users of this package will also likely want to consider installing
d the libhtml package to compose the HTML document in which the visualization
d would be embedded and the jsonio package to serialize their data to
d a JSON object that will retain the metadata from their dataset.
d
d Notes: After installing from SSC run the command - libd3, ml rep qui -
d
d KW: D3
d KW: Javascript
d KW: Data visualization
d KW: Graphs
d KW: D3js
d
d Requires: Stata version 12
d
d Distribution-Date: 20160401
d
d Author: Billy Buchanan
d Data Scientist
d Office of Research, Evaluation, and Assessment
d Minneapolis Public Schools
d Support: email William [dot] Buchanan @t mpls [dot] k12 [dot] mn [dot] us
d
f d3.mata
f libd3.ado
f libd3.sthlp