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

[Request] Enable Array Input Values #94

Open
buffaloseven opened this issue Apr 21, 2017 · 2 comments
Open

[Request] Enable Array Input Values #94

buffaloseven opened this issue Apr 21, 2017 · 2 comments

Comments

@buffaloseven
Copy link

For those using custom Highcharts themes, they may want to utilize the arearange plot type. The input for this series requires a 2-item numerical array. Unfortunately, m-chart won't accept an array or CSV entry as a valid input in the spreadsheet.

Ideally, we could enter values into the spreadsheet like:

[2.1,-14.2]
[3.2,-12.2]
[-1.2,-18.2]

And those values would be parsed and supplied as the values for the series of the format: [[2.1,-14.2],[3.2,-12.2],[-1.2,-18.2]].

I haven't looked too carefully at the code yet; if I have time in the next while I can take a peak to see if I can come up with a solution, but I thought I'd log the request here in case it's relatively simple for you. I suppose you could quickly apply a regex of something like \[[0-9\,\-\.]*\] (perhaps using language settings for the decimal symbol?) to match? Since you don't support arearange in the front-end, I don't think it would be much of a problem if it was very specific how you have to format it as I think if you're writing custom themes, you can format your output data in the required format.

@methnen
Copy link
Owner

methnen commented May 3, 2017

@buffaloseven I'm assuming you're using a theme to switch the plot type?

@buffaloseven
Copy link
Author

Yes, I am.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants