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

Is there a feature for displaying images on every bar from geomBar()? #112

Open
robercoding opened this issue May 21, 2022 · 5 comments
Open
Milestone

Comments

@robercoding
Copy link

robercoding commented May 21, 2022

I'm new to data analysis and I started out with lets-plot for data visualization!

Basically I'm trying to find a way to add images in geomBar(), it could be an image on the bottom bar or even extended through all the bar or something like that. The main purpose is to make it more beautiful and easier to catch the report at first instead of reading a text.

But I can't find that feature available there, I've tried with geomImage() but I'm not sure if that's the feature to use, would appreciate any guidance or know if there are plans in the future for adding it

@alshan
Copy link
Collaborator

alshan commented May 23, 2022

Currently there is no way to add images to a plot. I'm curious, what precisely chart design do you have in mind? It might be interesting feature.

As for geomImage()
a) we've added it for a different use-case: geom_image, Image Matrix

b) In Kotlin it doesn't work (has been exposed in the API accidentally :) )

@robercoding
Copy link
Author

robercoding commented Jun 12, 2022

Hey sorry for the late reply!
So basically I was thinking on just adding a different image per bar

  • Image could be placed alongside bar height/width, no matter if bar is empty or not.
  • Maybe the max height/width to place the image could be the longest bar and the min could be just where it starts the bar.
  • Guess there could be a parameter for adding image size based on dev preference like: Size(width, height)

if this requires lot to implement, maybe an MVP version where you're just able to add an image like in the next picture that I've attached (from StackOverflow) could be done
image

@alshan
Copy link
Collaborator

alshan commented Jun 14, 2022

Could you post a link to the StackOverflow post you mentioned?

@robercoding
Copy link
Author

This is the one, they've done it on ggplot library (I couldn't find anyone requesting it in lets-plot): https://stackoverflow.com/questions/58677247/how-to-insert-pictures-into-each-individual-bar-in-a-ggplot-graph

@alshan
Copy link
Collaborator

alshan commented Jun 28, 2022

Thanks, this is a nice feature to have. Can't add it right away but will keep in mind.

@alshan alshan added this to the Backlog milestone Jun 29, 2022
@alshan alshan modified the milestones: Backlog, 2022Q4 Sep 28, 2022
@alshan alshan modified the milestones: 2022Q4, 2023Q1 Dec 30, 2022
@alshan alshan modified the milestones: 2023Q1, 2023Q2 Mar 30, 2023
@alshan alshan modified the milestones: 2023Q2, 2023Q3 Jun 28, 2023
@alshan alshan modified the milestones: 2023Q3, 2023Q4 Sep 29, 2023
@alshan alshan modified the milestones: 2023Q4, 2024Q1 Jan 2, 2024
@alshan alshan modified the milestones: 2024Q1, 2024Q2 Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants