Loading...
 
Skip to main content

History: PluginCustomSearch Chart Examples

Source of version: 18 (current)

Copy to clipboard
            ^ This is another more demonstrative example: https://dev.tiki.org/Wish-Report ^


! Plugin Custom Search Chart Examples

!! Tracker Status and Dropdown Field
Data from the [tracker7|Features] Tracker
{CUSTOMSEARCH(wiki="PluginCustomSearch Chart Examples Tpl" searchonload="1" trimlinefeeds="1")}  {filter type="trackeritem"}
  {filter field="tracker_id" exact="7"}
  {facet name="tracker_status" id="my_status"}
  {facet name="tracker_field_f_93"}
  {facet name="date" type="date_range" id="date_range"}
  {facet name="date" type="date_histogram" id="date_histogram"}
  {OUTPUT(template="templates/examples/search/facet_charts2.tpl")}
    {chart _type="pie" label="Status" backgroundColor="green:yellow:grey" _class="col-sm-6" _size="300:600"}
    {chart _type="bar" label="Type Of Feature" backgroundColor="#888:#aaa:#ccc:#eee:#888:#aaa:#ccc:#eee:#888:#aaa:#ccc:#eee" _class="col-sm-6" _size="300:500"}
    {chart _type="bar" label="Date Ranges" backgroundColor="orange:yellow:red:purple:grey:blue:green:pink:black" _class="col-sm-12"}
    {chart _type="line" label="Date Histo" backgroundColor="red:black" _class="col-sm-12"}
  {OUTPUT}
{CUSTOMSEARCH}