Click to see more:
from pychartjs import BaseChart
class myChart(BaseChart):
pass
chartJSON = myChart().get() <div class="container">
<canvas id="myChart"></canvas>
</div> var data = {{ chartJSON | safe }}
var ctx = document.getElementById("myChart").getContext('2d');
var myChart = new Chart(ctx, data); |
Click to see more:
from pychartjs import BaseChart
class myChart(BaseChart):
pass
chartJSON = myChart().get() <div class="container">
<canvas id="myChart"></canvas>
</div> var data = {{ chartJSON | safe }}
var ctx = document.getElementById("myChart").getContext('2d');
var myChart = new Chart(ctx, data); |
CLICK ME
yes, even hidden code blocks!
print("hello world!")
- All code block starter lines, e.g.
```python
must be preceded by a blank space. - The closing block
```
tag must be followed by a newline. - The difference between
Style 1
andStyle 2
is a blank ` tag at the start of the table body