diff --git a/module/screen/model.php b/module/screen/model.php index 37d519f92f..d65be1c06d 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -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. *