On my site I am building a video game related polling page. I have everything added to my repeater except the chart that display the information from the poll. I have figured out how to generate charts for my polls using ChartJS and placing it into an HTML element. As of now, Wix does not have the ability to connect html elements to a repeater (I already submitted a wish list request).
Is there any viable, efficient way to connect a html element or chart (that is built based on data from my collection) into a repeater? If I had 50+ charts, what is the efficient method to connect those to my repeater (trying to design with scaling in mind)? I did see one post where a guy brilliantly created a hidden page with just the html element and connected the URL to the repeater, but I can’t create a hidden page, every time a user adds a poll.
Opens everytime you want to see the CHART.
You will need just one LIGHTBOX only.
Let your user know, that some of your presented items are included inside of your database, by showing a small ICON inside of each items of your repeater, if a CHART for this ITEM exist, or not.
If a chart exist → USER can see the CHART-ICON in repeater, clicks onto the ICON and the LIGHBOX opens, showing the CHART.
Wix repeaters currently don’t support iframes (htmlComponents).
The only way I can think of is by creating your own repeater in Custom Element, but it’s more complicated.
__
Or you can put a button :“Show Chart” in the repeater, and put a single iframe outside the repeater and assign the data on click.
Man I love the Wix Community. Thank you sooo much @russian-dima and @J. D. You guys are the best and your response was so hasty. I’m actually going to incorporate both of you guys suggestion. I will make a ‘button’ element that I place in the repeater and when someone press the button it will bring up a lightbox showing the chart with the relevant data. This should actually be more efficient, not requiring my page to render a lot of charts on one page, rather it renders one chart at a time as users click the button. The code for my polling page is already 500+ lines
Back to the drawing board for me. Whenever, my site finally go live and I make my first million dollars, I will hook you guys up