Line

Overview #

Classname: \koolreport\sparklines\Line

Properties #

nametypedefaultdescription
dataSourcemixedSet the datastore or other forms from which chart will read
columnstringThe column name in datastore from which chart will read
dataarrayDirectly set data for the sparkline chart if you do not want to use the dataStore and column property
widthstring"20px"Set the width of chart
heightstring"20px"Set the height of chart
optionsarraySet extra options for chart

Example #

<?php
Line::create(array(
    "dataStore"=>$this->dataStore("result"),
    "column"=>"amount",
))
?>

Get started with KoolReport

KoolReport will help you to construct good php data report by gathering your data from multiple sources, transforming them into valuable insights, and finally visualizing them in stunning charts and graphs.