* [story#74518] add function: prepareTextDataset.
This commit is contained in:
@@ -859,6 +859,21 @@ class screenModel extends model
|
||||
return $this->setComponentDefaults($component);
|
||||
}
|
||||
|
||||
/**
|
||||
* 准备文本数据集。
|
||||
* Prepare text dataset.
|
||||
*
|
||||
* @param object $component
|
||||
* @param string $text
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function prepareTextDataset(object $component, string $text): object
|
||||
{
|
||||
$component->option->dataset = $text;
|
||||
return $this->setComponentDefaults($component);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bar chart option.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user