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

RE: Sparky: is there a document (or anything) that describes how the parameters work? #15

Open
Chris-43 opened this issue Jun 23, 2019 · 2 comments

Comments

@Chris-43
Copy link

What I don't understand are;

When does the bar go below the baseline? Can I control it?
How can I control the width of the bars?
How can I control the color of the bars?
What are the 'built-in,' formats like 'Fire?'

Chris

@sindresorhus sindresorhus transferred this issue from sindresorhus/ama Jun 23, 2019
@sindresorhus
Copy link
Owner

When does the bar go below the baseline? Can I control it?

The default baseline is the character. When it's used depends on the range of numbers and the minimum and maximum options.

How can I control the width of the bars?

No, it's using actual characters for the bar, so they have a fixed width of one terminal column:

let ticks = ['▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'];

How can I control the color of the bars?

See below.

What are the 'built-in,' formats like 'Fire?'

There's only the one built-in style fire, but it's easy to add more. I guess I could also expose a way to add custom styles.

@Chris-43
Copy link
Author

Chris-43 commented Jun 23, 2019 via email

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