Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data extraction helper feature #225

Closed
yosiasz opened this issue Nov 22, 2023 · 1 comment · Fixed by #211
Closed

data extraction helper feature #225

yosiasz opened this issue Nov 22, 2023 · 1 comment · Fixed by #211
Assignees
Labels
question Further information is requested
Milestone

Comments

@yosiasz
Copy link

yosiasz commented Nov 22, 2023

Hello

Currently when instantiating the apache echart panel by default it comes out with

const series = data.series.map((s) => {
  const sData = s.fields.find((f) => f.type === 'number').values.buffer || s.fields.find((f) => f.type === 'number').values;
  const sTime = s.fields.find((f) => f.type === 'time').values.buffer || s.fields.find((f) => f.type === 'time').values;

It would really be cool if this plugin implemented data extraction helper feature that would assist a non js dev/expert to extract their data points as follows

image

In above picure from dynamic text, use can select components one would like to implement. Would be nice if apache echart would do something similar with the data coming from data source. It would list out the data points (columns) for the dev and the dev would select which columns from data source to use. Maybe these data points would come under a certain static domain ie aec_data apache echart data so that in the js code section one can refer to these as aec_data.createtime aec_data.value aec_data.metric etc

This is of course in addition to the current way of custom code.

I think adoption of this plugin would increase if such an data extraction assistor was implemented?

Thanks!

@yosiasz yosiasz changed the title data extraction helpers data extraction helper feature Nov 22, 2023
@mikhail-vl mikhail-vl self-assigned this Nov 22, 2023
@mikhail-vl mikhail-vl added the question Further information is requested label Nov 22, 2023
@mikhail-vl
Copy link
Member

Resolved in #211.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants