functions.php
bar_chart()
bar_chart(EntryReference $label, References $datasets) : BarChart
Parameters
-
$label
: EntryReference
-
-
$datasets
: References
-
line_chart()
line_chart(EntryReference $label, References $datasets) : LineChart
Parameters
-
$label
: EntryReference
-
-
$datasets
: References
-
pie_chart()
pie_chart(EntryReference $label, References $datasets) : PieChart
Parameters
-
$label
: EntryReference
-
-
$datasets
: References
-
to_chartjs()
to_chartjs(Chart $type) : ChartJSLoader
Parameters
-
$type
: Chart
-
to_chartjs_file()
to_chartjs_file(Chart $type[, null|Path|string $output = null ][, null|Path|string $template = null ]) : ChartJSLoader
Parameters
-
$type
: Chart
-
-
$output
: null|Path|string
= null
-
- @deprecated use $loader->withOutputPath() instead
-
$template
: null|Path|string
= null
-
- @deprecated use $loader->withTemplate() instead
to_chartjs_var()
to_chartjs_var(Chart $type, array<string|int, mixed> &$output) : ChartJSLoader
Parameters
-
$type
: Chart
-
-
$output
: array<string|int, mixed>
-
- @deprecated use $loader->withOutputVar() instead