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

graphs menu option #55

Closed
michaelchin opened this issue May 27, 2022 · 14 comments
Closed

graphs menu option #55

michaelchin opened this issue May 27, 2022 · 14 comments
Assignees
Labels
medium Medium priority new feature New feature

Comments

@michaelchin
Copy link
Contributor

This menu option is about providing already published time dependent graphs of different variables, similar to the graphs show on the charts tab at the following website: https://media.hhmi.org/biointeractive/earthviewer_web/earthviewer.html

NW: Graph will be amazing, but will the graph overlay the globe? Or occupy a small section at the bottom of the screen? ​

Screen Shot 2022-05-27 at 11 37 27 am

@michaelchin michaelchin added medium Medium priority new feature New feature labels May 27, 2022
@michaelchin
Copy link
Contributor Author

hhmi uses highcharts. i guess it is free for school project. need to confirm with them.
https://www.highcharts.com/blog/download/?_ga=2.44889508.1830102636.1653868359-390261247.1653868359

Alternatively, use d3js https://observablehq.com/@d3/index-chart

@michaelchin
Copy link
Contributor Author

michaelchin commented Jun 29, 2022

@yiyanw has experience in Apache echarts https://echarts.apache.org/examples/en/index.html
The Apache echarts looks decent. Let's try to use it.

@michaelchin
Copy link
Contributor Author

https://gws.gplates.org/mobile/get_scotese_etal_2021_global_temp
for test purpose

@yiyanw
Copy link
Contributor

yiyanw commented Aug 24, 2022

@michaelchin @nickywright @mariaseton @matthewmerkas
I create a basic statistics data graph and link it to the age slider.
https://user-images.githubusercontent.com/31875861/186370376-27bac1f4-d4f9-4bd8-a18a-2c1ce4993655.mp4

also, I bond this graph to the button in tool menu

Do we need extra vertical time slider on left like example wee used?

If you have any idea, please comment here.

@yiyanw yiyanw mentioned this issue Aug 24, 2022
@nickywright
Copy link
Contributor

@yiyanw, this looks great! Might have to adjust some fonts etc for the graph, but definitely looks like it's coming along!

for the age slider - I like it, but not sure how if it will fit in here....
Can you slide along the graph to change the time?

@yiyanw
Copy link
Contributor

yiyanw commented Aug 25, 2022

@nickywright

Might have to adjust some fonts etc for the graph

Do you have some idea about font and style?

Can you slide along the graph to change the time?

Ok, I will try to use the graph to change the time.

for the age slider - I like it, but not sure how if it will fit in here....

This age slider is our original one, it can collapse.

Also, do you want to keep the consistency between graph and age slider?

@yiyanw
Copy link
Contributor

yiyanw commented Aug 25, 2022

@michaelchin
Also, I found that the test data range is 0-540, and our age slider range is 0-410. Is that normal or just for test data?

@michaelchin
Copy link
Contributor Author

@michaelchin Also, I found that the test data range is 0-540, and our age slider range is 0-410. Is that normal or just for test data?

It is just for test purpose only. We will figure out how to keep the age range consistent down the road.

@yiyanw
Copy link
Contributor

yiyanw commented Aug 25, 2022

@michaelchin
Ok, that's great, I will assume the range is the same for now.

@yiyanw yiyanw mentioned this issue Aug 25, 2022
@yiyanw
Copy link
Contributor

yiyanw commented Aug 25, 2022

I refined the graph component and now users can directly change time by clicking and sliding the graph. Also, the time is consistent between the age slider and the graph.

demo.2.mp4

Also, because of the difference between touch devices and PC, the graph looks slightly different on different platforms.
this is for touch devices

this is for PC (has an extra sliding button)

@michaelchin
Copy link
Contributor Author

https://echarts.apache.org/examples/en/editor.html?c=doc-example/axisPointer-handle-image&edit=1&reset=1

use an invalid image url to get rid of the button, if not wanted.

@michaelchin
Copy link
Contributor Author

@yiyanw Welcome back. Could you please work on this? We need to pop up a list and allow user to choose which graph to open. Use placeholders and dummy data for dev purpose for now.

And also please cut the graph according to the model's start time and end time. For example, if the model is 0-230, truncate the input data to fit within the range 0-230.

@yiyanw
Copy link
Contributor

yiyanw commented Sep 28, 2022

@michaelchin pop-up list added
this list is collapsed by default, you can click "Graph List" to open it. In the list, the currently selected graph will be represented in blue color and bolder size. Users can directly click the wanted graph to switch.
Also, the range of graphs is limited by the raster map's valid interval.
here is the demo:

@michaelchin
Copy link
Contributor Author

consider as done. open new Issues for any further changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Medium priority new feature New feature
Projects
None yet
Development

No branches or pull requests

3 participants