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

Gradient with constant value not showing #127

Open
Azraelless opened this issue Feb 9, 2020 · 0 comments
Open

Gradient with constant value not showing #127

Azraelless opened this issue Feb 9, 2020 · 0 comments

Comments

@Azraelless
Copy link

Azraelless commented Feb 9, 2020

When the values in data are identical adding gradient to it makes it disappear. If I change one of the points in data chart appears. If I remove gradient it shows as well.

Am I doing something wrong or is it a bug?

That code don't show chart:

          <Sparklines data={[1, 1, 1, 1, 1]}>
            <defs>
               <linearGradient id="s#212121" x1="0%" x2="100%">
                 <stop offset="0%" stopColor="#21212120" />
                 <stop offset="50%" stopColor="#21212180" />
                 <stop offset="100%" stopColor="#212121" />
               </linearGradient>
             </defs>
             <SparklinesLine style={{ fill: 'none' }} color="url(#s#212121)" />
           </Sparklines>
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

1 participant