semvec/pypi-packages huggingface dataset:
Dcahartjs 0.1.2
charts for django
License: MIT
Keywords: Dcahartjs

# DChartjs

DChartjs is python package. it is used to draw charts Using Chartjs with easy in Django
## Installation

Use the package manager [pip](https://pypi.org/project/Dcahartjs/) to install DChartjs. 

```bash
pip install DChartjs
```

## Usage
in Django views.py
```python
from DChartjs.DChartjs import DChart

def DjangoChart(request):
    Chart = DChart()
    Xdata = [0,2,5,10]
    Ydata = [1,5,5,25]
    Chart.ChartData(xdata=Xdata,ydata=Ydata)
    data = Chart.Project()
    return render(request, 'chart.html', data)
```
in chart.html
```html
{{ chart_as }}