echarts 配置项data里面的所有配置项是否能支持回调函数?

dw1jzc5e  于 2022-11-02  发布在  Echarts
关注(0)|答案(2)|浏览(132)

What problem does this feature solve?

在dataset feature出来之后,所有数据都放在dataset中。 但当以下情况出现时,似乎只靠使用dataset无法实现:

我希望label的position在数值小于某个值的时候,为‘inside', 其余情况为‘right'。 此时必须通过在data配置项里面填上数据的同时针对每个数据去做配置。 这造成了冗余。

我认为既然数据被放入了dataset,那么data配置项里面所涉及到的所有配置,是不是都应该可以支持回调函数?

What does the proposed API look like?

series-bar.label. position = function

pinkon5k

pinkon5k1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it containsa minimum reproducible demoand necessaryimagesto illustrate. Otherwise, our committers will ask you to do so.

  • A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list .

Have a nice day! 🍵

9cbw7uwe

9cbw7uwe2#

@kilik52 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

Does all configuration items in the configuration item data support callback functions?

BODY

What problem does this feature solve?

After the dataset feature comes out, all data is placed in the dataset. But when the following situations occur, it seems that it cannot be achieved only by using dataset:

I want the position of the label to be ‘inside’ when the value is less than a certain value, and ‘right’ in other cases. At this time, you must configure each data while filling in the data configuration item. This creates redundancy.

I think that since the data is put into the dataset, should all the configurations involved in the data configuration item support the callback function?

What does the proposed API look like?

series-bar.data.label. position = function

相关问题