Closed RPieter closed 9 years ago
not sure on this, try:
<div class="panel chart-box" ng-repeat="chart in stats.charts" >
<canvas tc-chartjs-line chart-options="chart.options" chart-data="chart.data" auto-legend>
</canvas>
</div>
Where options
and data
are properties on your stats.charts
objects
sorry, my bad. in php, I returned the data-section as a nameless object. By simply adding the name-value this worked. Should have seen this far sooner!
How do you use this inside a repeater? I've tried both
as
but in all cases, no charts are shown (debugging shows that there is no data). Am I doing something wrong or is this not possible?