| 1 | <?php |
||
| 8 | trait FocusTargetTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse |
||
| 12 | * click, and which data table element is associated with events. Can be one of the following : |
||
| 13 | * 'datum' - Focus on a single data point. Correlates to a cell in the data table. |
||
| 14 | * 'category' - Focus on a grouping of all data points along the major axis. Correlates to a row in the data table. |
||
| 15 | * |
||
| 16 | * In focusTarget 'category' the tooltip displays all the category values. This may be useful for comparing values |
||
| 17 | * of different series. |
||
| 18 | * |
||
| 19 | * Default: 'datum' |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $focusTarget; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $focusTarget |
||
| 27 | * |
||
| 28 | * @return $this |
||
| 29 | */ |
||
| 30 | public function setFocusTarget($focusTarget) |
||
| 36 | } |
||
| 37 |