<commit_before>line-chart
==========

A line chart implementation


# How to install
 + Copy `line-chart.js` and `line-chart.css` wherever you want
 + Reference them in your index.html file
 + Reference the module in your app file :
     angular.module('myApp', [
      'n3-charts.linechart'
    ])

# How to use
The line chart directives takes two attributes : `data` and `options`.

## Data
Data must be an array, it should look like this :
`̀``js
$scope.data = [
  {x: 0, value: 4},
  {x: 1, value: 8},
  {x: 2, value: 15},
  {x: 3, value: 16},
  {x: 4, value: 23},
  {x: 5, value: 42}
];
```

Currently only `x` is supported as an abscissas key. See Options for the ordinates keys.

## Options
Options must be an object with a series array. It should look like this :
`̀``js
$scope.options = {
  series: [
    {y: 'value', color: 'steelblue'}
  ]
}
`̀``

## Testing
AngularJS is designed to be testable, and so is this project. Install karma and run this from a terminal (sorry for non-linux users) :
`̀``sh
$ karma start karma-conf.js
`̀``<commit_msg>Updated readme code blocks - dammit<commit_after>line-chart
==========

A line chart implementation


# How to install
 + Copy `line-chart.js` and `line-chart.css` wherever you want
 + Reference them in your index.html file
 + Reference the module in your app file :
     angular.module('myApp', [
      'n3-charts.linechart'
    ])

# How to use
The line chart directives takes two attributes : `data` and `options`.

## Data
Data must be an array, it should look like this :

`̀``js
$scope.data = [
  {x: 0, value: 4},
  {x: 1, value: 8},
  {x: 2, value: 15},
  {x: 3, value: 16},
  {x: 4, value: 23},
  {x: 5, value: 42}
];
```

Currently only `x` is supported as an abscissas key. See Options for the ordinates keys.

## Options
Options must be an object with a series array. It should look like this :

`̀``js
$scope.options = {
  series: [
    {y: 'value', color: 'steelblue'}
  ]
}
`̀``

## Testing
AngularJS is designed to be testable, and so is this project. Install karma and run this from a terminal (sorry for non-linux users) :

`̀``sh
$ karma start karma-conf.js
`̀``
{'fraction_non_alphanumeric': 0.1417875526438933, 'fraction_numerical': 0.015910154422087038, 'mean_word_length': 3.4173553719008263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7400270', 'n_tokens_mistral': 773, 'n_tokens_neox': 736, 'n_words': 297}