<commit_before>Chartkick.py
============

.. image:: https://travis-ci.org/mher/chartkick.py.png?branch=master
        :target: https://travis-ci.org/mher/chartkick.py

Create beautiful Javascript charts with minimal code. Demo_!

Supports `Google Charts`_ and Highcharts_

Works with Django, Flask/Jinja2 and most browsers (including IE 6).
Also available in Ruby_ and pure JavaScript_

.. _Chartkick: http://chartkick.com
.. _Google Charts: https://developers.google.com/chart/
.. _Highcharts: http://highcharts.com
.. _Demo: http://mher.github.io/chartkick.py/
.. _Ruby: http://chartkick.com
.. _Javascript: https://github.com/ankane/chartkick.js

Usage
-----

Line chart: ::

    {% line_chart data %}

Pie chart: ::

    {% pie_chart data with id='chart-1' height='400px' %}

Column chart: ::

    {% column_chart data with min=400 max=1000 %}

Data
----

Data can be a dictionary or a list: ::<commit_msg>Updates readme<commit_after>Chartkick.py
============

.. image:: https://travis-ci.org/mher/chartkick.py.png?branch=master
        :target: https://travis-ci.org/mher/chartkick.py

Create beautiful Javascript charts with minimal code. Demo_!

Supports `Google Charts`_ and Highcharts_

Works with Django, Flask/Jinja2 and most browsers (including IE 6).
Also available in Ruby_ and pure JavaScript_

.. _Chartkick: http://chartkick.com
.. _Google Charts: https://developers.google.com/chart/
.. _Highcharts: http://highcharts.com
.. _Demo: http://mher.github.io/chartkick.py/
.. _Ruby: http://chartkick.com
.. _Javascript: https://github.com/ankane/chartkick.js

Usage
-----

Line chart: ::

    {% line_chart data %}

Pie chart: ::

    {% pie_chart data with id='chart-1' height='400px' %}

Column chart: ::

    {% column_chart data with min=400 max=1000 %}

Bar chart: ::

    {% bar_chart data %}

Area chart: ::

    {% area_chart data %}

Data
----

Data can be a dictionary or a list: ::
{'fraction_non_alphanumeric': 0.15836392239119035, 'fraction_numerical': 0.013633980073413739, 'mean_word_length': 3.457943925233645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '5720778', 'n_tokens_mistral': 708, 'n_tokens_neox': 627, 'n_words': 161}