I've seen many related questions and examples on this but have had no joy.
I have created a segment:
#bar-segment {
border-radius: 15px;
height: 2px;
width: 20px;
background-image: linear-gradient(to right, $brand-color-blue , $brand-color-green);
}
I'm using this to build a meter (single-bar bar chart kinda thing). So I basically want to stack these segments (repeat-y) in order to reflect a meter reading. So I found this: background-image: element()
and tried so many things but never managed to get even an image to show up on the screen never mind do anything with it. Very frustrating. Ultimately I guess I don't have a clue how to use it. Can anyone show me correct usage of this and perhaps help me to repeat them vertically?
The closest I found is this but couldn't even get this to repeat-y somehow. a jsfiddle
Here's a link to an image to give you an idea of what I'm trying to achieve: Sound Equaliser Bar Chart