-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Comments
The default baseline is the
No, it's using actual characters for the bar, so they have a fixed width of one terminal column: Line 9 in 20c7a55
See below.
There's only the one built-in style |
I appreciate your quick response.
Nicely done. Unfortunately, I need a more powerful chart, Ah well... I do
like the directness of your code.
Chris
…On Sun, Jun 23, 2019 at 3:14 PM Sindre Sorhus ***@***.***> wrote:
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:
https://github.com/sindresorhus/sparkly/blob/20c7a55442eb8b281a97ab75b5cb7f352afdf811/index.js#L9
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
<https://github.com/sindresorhus/sparkly/blob/20c7a55442eb8b281a97ab75b5cb7f352afdf811/index.js#L10>.
I guess I could also expose a way to add custom styles.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15?email_source=notifications&email_token=AAT5EKTQAQVXTP5DZV4VBYTP37DRDA5CNFSM4H2ZR6BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYLFARQ#issuecomment-504778822>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAT5EKVFPXQ3FMBGAIY7AYTP37DRDANCNFSM4H2ZR6BA>
.
|
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
The text was updated successfully, but these errors were encountered: