<commit_before>## D4

D4 is a friendly charting DSL for D3. The goal of D4 is to allow developers
to quickly build data-driven charts with little knowledge of the internals of D3.

### Quick Start
* * *

For the bleeding edge version of d4 download it directly from the [github](https://github.com/heavysixer/d4) repository. If you prefer a more stable release you can install the latest released tag using a package manager like bower.

    $ bower install d4

Once you have a local copy of d4 simply include it **after** d3 in your source file.

```html
<!DOCTYPE html>
<html>
<head>
  <!-- sensible defaults for styles -->
  <link href="d4.css" rel="stylesheet" />
</head>
<body>
  ...
<script src="d3.js"></script>
<script src="d4.js"></script>
</body>
</html>
```

#####Hello World
Here is the most basic example, which uses many of the preset defaults provided by d4.
<commit_msg>Update the README to make reference to npm.<commit_after>## D4

D4 is a friendly charting DSL for D3. The goal of D4 is to allow developers
to quickly build data-driven charts with little knowledge of the internals of D3.

### Quick Start
* * *

For the bleeding edge version of d4 download it directly from the [github](https://github.com/heavysixer/d4) repository. If you prefer a more stable release you can install the latest released tag using a package manager like bower.

    $ bower install d4
    or
    $ npm install d4

Once you have a local copy of d4 simply include it **after** d3 in your source file.

```html
<!DOCTYPE html>
<html>
<head>
  <!-- sensible defaults for styles -->
  <link href="d4.css" rel="stylesheet" />
</head>
<body>
  ...
<script src="d3.js"></script>
<script src="d4.js"></script>
</body>
</html>
```

#####Hello World
Here is the most basic example, which uses many of the preset defaults provided by d4.

{'fraction_non_alphanumeric': 0.11147540983606558, 'fraction_numerical': 0.015846994535519125, 'mean_word_length': 3.7931937172774868, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1608780', 'n_tokens_mistral': 563, 'n_tokens_neox': 546, 'n_words': 261}