| 1 | <?php |
||
| 20 | class ChartJs extends \dosamigos\chartjs\ChartJs |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var boolean|array Whether to draw the legend for the chart. |
||
| 24 | * - `false`: do not draw |
||
| 25 | * - `true`: legend with default options |
||
| 26 | * - `array`: array of options for the [[Html::tag()]] |
||
| 27 | */ |
||
| 28 | public $legend = false; |
||
| 29 | |||
| 30 | public function run() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Renders the legend block and registers proper CSS and JS. |
||
| 41 | */ |
||
| 42 | public function renderLegend() |
||
| 64 | } |
||
| 65 |