echarts icon indicating copy to clipboard operation
echarts copied to clipboard

dataset.transform-filter.print的输出信息不包括dataset.source的首行,且输出undefined

Open chitongyu opened this issue 5 years ago • 3 comments

Version

5.1.2

Reproduction link

https://echarts.apache.org/examples/zh/editor.html?c=data-transform-multiple-pie

Steps to reproduce

使用官方示例data-transform-multiple-pie,只需要设置dataset.transform-filter.print:true

What is expected?

transform result dimensions输出有效信息

What is actually happening?

打印信息transform result dimensions输出undefined,而且示例里面缺少引入TransformComponent,最新的文档配置项中的dataset为什么不是对象数组而是对象

chitongyu avatar Aug 19 '21 01:08 chitongyu

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 contains a minimum reproducible demo and necessary images to 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 [email protected]. 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! 🍵

echarts-bot avatar Aug 19 '21 01:08 echarts-bot

@chitongyu 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

The output information of dataset.transform-filter.print does not include the first line of dataset.source, and the output is undefined

BODY

Version

5.1.2

Reproduction link

https://echarts.apache.org/examples/zh/editor.html?c=data-transform-multiple-pie

Steps to reproduce

Using the official example data-transform-multiple-pie, you only need to set dataset.transform-filter.print:true

What is expected?

The first line of data in the printing information needs to include dataset.source, otherwise it is not convenient for subsequent use, and the transform result dimensions output valid information

What is actually happening?

The print information tracks resultform data is missing the first line of dataset.source, and the resulting dimensions output unundefined

echarts-bot avatar Aug 19 '21 01:08 echarts-bot

I looked into this: transform.print logs the value returned by the transform before the upstream header row and dimensions are inherited by the result, so filter/sort results are printed without the header row and with undefined dimensions. I'm opening a PR that prints the result sources after they are created, with a unit test.

adityajai119 avatar Nov 08 '26 09:11 adityajai119