Metadata-Version: 1.2
Name: dj-chartjs
Version: 0.1.1
Summary: Library to render chart using chartjs
Home-page: https://github.com/ramon5/django-charts
Author: Ramon dos Santos Rodrigues
Author-email: ramon.srodrigues01@gmail.com
License: MIT
Description: =============================
        django-charts
        =============================
        
        Documentation
        -------------
        
        The full documentation is at https://django-charts.readthedocs.io/en/latest/
        
        Quickstart
        ----------
        
        Install dj-chartjs::
        
            pip install dj-chartjs
        
        Add it to your `INSTALLED_APPS`:
        
        .. code-block:: python
        
            INSTALLED_APPS = (
                ...
                'dj_chartjs',
                ...
            )
        
        How to render chart as a View:
        
        in views.py import type chart to want use:
        
        .. code-block:: python
        
            from django.views.generic.base import TemplateView
            from django_charts.views import BarChartView
        
            class ExampleChart(BarChartView, TemplateView):
                ...
                title = "Index of ..."
                id_chart = "barchart_example" #any value
        
                def generate_labels(self):
                    return ["Africa","Brazil","Japan","EUA"]
        
                def generate_values(self):
                    return [1,10,15,8]
        
        in your template that you want render chart, use this tag:
        
        {% load dj_chartjs %}
        
        
        {% render_chart chart %}
        
        
        
        
        Features
        --------
        
        * TODO
        
        Running Tests
        -------------
        
        Does the code actually work?
        
        ::
        
            source <YOURVIRTUALENV>/bin/activate
            (myenv) $ pip install tox
            (myenv) $ tox
        
        
        
        
        
        
        History
        -------
        
        0.1.0 (2020-03-30)
        ++++++++++++++++++
        
        * First release on PyPI.
        
Keywords: dj-chartjs
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 3.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.6
