progressbar.js icon indicating copy to clipboard operation
progressbar.js copied to clipboard

Text not appearing

Open Bowis opened this issue 5 years ago • 1 comments

I have created the following ProgressBar:

var line = new ProgressBar.Line(id, {
            color: '#FFEA82',   
            duration: time,
            strokeWidth: 10,
            svgStyle: {
                borderRadius: '10px;'
            },
            text: {
                value: 'Text',
                style: {
                    color: '#f00'
                }
            },
            from: { color: '#FFEA82' },
            to: { color: '#ED6A5A' },
            easing: 'easeInOut',
            step: (state, line) => {
                line.path.setAttribute('stroke', state.color);
            }
        });

However, the text is not showing in / near the progess-bar. I don't see the text added to the container either. Screenshot 2021-04-11 at 22 35 10

Bowis avatar Apr 11 '21 20:04 Bowis

Same problem!

chcg823 avatar May 27 '21 20:05 chcg823