{* This is intended as an example of how to present Elasticsearch facets, known now as aggregations. Version 2 - use chartjs params natively in the plugins ------------------------------------------------------- So anything not starting with an underscore will be passed directly to the chartjs plugin in the dataset. See https://www.chartjs.org/docs for the full list (it's extensive!) Example wiki page "chart" contents: {LIST(} {filter field="tracker_id" content="1"} {facet name="tracker_field_testUser"} {facet name="deep_categories_under_1"} {OUTPUT(template="templates/examples/search/facet_charts2.tpl")} {chart _type="pie" _class="col-sm-4" label="Users" backgroundColor="orange:yellow:red:purple:grey:blue:green:pink:black" borderColor="black"} {chart _type="line" _class="col-sm-8" label="Countries" borderColor="orange" hoverColor="pink" lineTension="0"} {OUTPUT} {LIST} Example wiki page "chart tpl" contents for the form is using plugin customsearch {literal}