-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update lab-grapher.js #12
Conversation
A comment and a question:
|
Hi Rishi, There are currently a few problems with this commit:
Thank you! |
Ultimately we'll also need changes in the Lab repo to make this affordance of the graph open to authors and part of our validation and sterilization processes. In particular the metadata.js associated with the interactive definition will need to be updated. Not sure what else. |
Hi Sfentress, |
Rishi, I've not built this code myself, but I think that the dist/lab-grapher.js is what is produced when you run the build script (see the readme.md). So to make changes in this codebase you make changes to the files in the lib directory and run the build script 'npm run build' |
@rishiloyola, Dan is correct, please look at the readme. If you have installed Node and run Also, since you already have one pull request open on this issue, it would be best to keep new versions of your code in this PR. You can simply keep adding commits to the same branch, and this PR will update automatically. (When the code looks good, we can explain how to rebase the changes so that it all becomes one commit.) I will close the other PR. |
Hi Rishi, This looks generally better, thank you. There are two main issues:
Thank you. |
It would also be nice to have an example to demo this feature. Can you add a checkbox to the examples page, which toggles this feature on and off: https://github.com/concord-consortium/lab-grapher/blob/master/examples/index.html |
Hi Sam, Thanks, |
I still see the Year label inside the graph. It looks like you've moved it slightly. Do you not see the axis label in this location when you run it? Screenshot |
Hi Dan, |
Hi Rishi,
|
Be sure to test with various browsers. It looks like the font spacing is different from browser to browser and that the method you are using to reposition the axis label is relying on this font size. If you look at the "small" size in the responsive layout option, then the axis values here don't seem to be affected by this problem, so you should take a look at how they are positioned. |
Hello, |
Hi Rishi, when I look at your gh-pages branch at http://rishiloyola.github.io/lab-grapher/examples/index.html#earth-surface-temperature, the Hide Axis Values button no longer hides the values, it just changes the font size. Also, there are a lot of commits on this branch that go back and forth. Could you please rebase this branch to squash all your changes into one commit? If you're using the command line, you should be able to do it like this:
|
I made changes in code to hide axis.
If you want to hide axis change opacity property to true.
If opacity property is false then axis are visible.