This message was deleted.
# help
s
This message was deleted.
c
Hey Matthew 👋 I just forked your notebook and send you a suggestion!
👍 1
In essence, your notebook just needed a Map (or lookup) that given a human-readable column name → answers with the corresponding column in the dataset. This Map is then used to bind the currently selected column to the plot
Here’s the suggested notebook, let me know if there’s anything unclear
m
Oh - @Christoph Pahmeyer was faster 😍 💯 here is also my fork https://observablehq.com/d/fa197300b3c3bdf8
🚀 1
👍 2
m
Thank you both so much for the much needed help! It is astonishing how fantastic, smart, and helpful (and FAST!) you are. I appreciate the follow up and the help. Cheers! M@
🎉 3
I think I actually do have a follow up question: Are the methods of binding the selected column to the plot fairly standard/universal? As in, should I always expect to change the x & y axis to point to the
cur_selected_column
if that is the intent of the chart? Thank you again!
c
They are fairly standard (imho), but you can write them much shorter if you like:
🎯 1
this way, you’d only need the cells systems_data_csv, cur_sel_column, and the plot cell
Are you coming from another programming language or environment? Maybe there are some concepts that are more familiar then!
m
Unfortunately, no. I am a meteorologist who has always just loved charts and visualizations like weather charts. And while I deal with mountains of data, I never learned to code. So JavaScript/D3/Plot/Observable is my first go round with anything like this. And it is just a hobby that I love but am struggling with. But I see myself getting better and better each day, so I suppose progress is progress even when it is slow. If you have any learning tips or tricks I would love to hear them. At this point I am just doing everything via trial by error so the abstraction that Observable does with the code can be, well, challenging to say the least. Either way, thank you again for the help and explanation. You are a great teacher.
👏 1
c
Sounds great! Observable is the perfect place for exploring and learning these kinds of things 😊 I had a similar interest in learning how to code (especially to create websites) coming from a science background without any CS skills. People on this platform are super helpful and always helped me when I ran into issues
❤️ 1
m
Yes I would 💯 confirm what Christoph said - this is a great place , Plattform and community to explore, please do feel welcome here and don’t hesitate to ask! Here are some recent cool notebooks as reference https://observablehq.com/@observablehq/a-taste-of-observable https://observablehq.com/@observablehq/learn-javascript-introduction https://observablehq.com/@observablehq/descriptive-statistics-translations https://observablehq.com/@observablehq/data-wrangling-translations
❤️ 1
And since it’s Easter 🐣 I also have a special notebook with over 100 categorized Plot examples you can start off with 😉 https://observablehq.com/@ee2dev/a-easter-egg-collection-of-plot-examples
1
m
Wow! Thank you @Mihael Ankerst! The only thing I have come across has been the Cheatsheets. There are so many resources it can be hard to know which ones are the right ones to look at but you hit the nail on the head. These are perfect for me! Thanks for the Easter gift! Much appreciated! Cheers to you! -M@
🙌 1
Hi @Mihael Ankerst & @Christoph Pahmeyer. I have been working with the same data that you both helped me with and I had thought I figured everything out so I found a cool Observable Notebook and put that same data into it. Things were going pretty good (at least to my newbie eyes) but then the dropdown thing reared its head. I guess this notebook might be pretty advanced for my knowledge but I am curious where or how I apply your advice from a few days ago and try to call the y axis based on the drop down view? I tried both of your methods with no luck. And please don't worry about doing any work to give me the "solution" I am happy to just be pointed in the right direction. Thanks again so much! https://observablehq.com/d/938309440aa0e754 https://observablehq.com/d/40508605811b52d4
c
Hi @Matthew, I can’t access those notebooks, could it be that they are still in private mode?
m
My apologies. I did forget to put them into public mode. They should be accessible now. Thanks again!
c
Alright, just made a new suggestion. Don’t think I understood the concept, but at least it shows how you can tie the input to the plot again 🙂 https://observablehq.com/d/651770f25bc448db
m
Thanks @Christoph Pahmeyer! I think I accidentally "got it" using @Mihael Ankerst's method. I've been going back and forth between the two just trying to get something to work! Which, now that I have that the color scheme and color scale is off (of course) but if you wanted to see what I was attempting to to this notebook has it. Again, thank you so much for all the help! On to working out the color issues now! Cheers! M@
c
That’s great 🙂 Good luck with the color, let us know if you need any help!