![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ascii-boxplot
Advanced tools
ascii, character-only horizontal boxplots
patates · • [----[==|==]----] • ·
frites · • [---[=|===]--] • ·
poutines · • [----[=|=]----] • ·
choucroutte · • [----[=|=]-----] • ·
• Introduction • API • Options • License •
var boxplot = require('boxplot')
boxplot({
label1: arrayOfSamples1,
label2: arrayOfSamples2,
label3: arrayOfSamples3,
})
boxplot(sourceData[, options])
sourceData
object or array of samples. The object keys or array indices are used as labelsoptions
optionsal configuration objectThe optional options
object can override any or all of the internal defaults
var defaults = {
1: ' • ',
2: ' [=] ',
3: ' [=|=] ',
5: ' [-[=|=]-] ',
7: ' • [-[=|=]-] • ',
9: ' · • [-[=|=]-] • · ',
cols: 0, // will attempt to autodetect if cols is falsy, defaulting to 80
padding: [4, 4],
probs: [0, .02, .09, .25, .50, .75, .91, .98, 1],
ondone: function(str) { console.log(str) }
}
1..9
are the templates for a given quantile size. More info in the template section belowcols
the maximum width of the screen in characterspadding
left and right padding (after the longest label and before the right edge)probs
the probabilities to be used when calculating the sample quantiles. Can be 1,2,3,5,7 or 9 chars long.ondone
the action to do with the completed stringIf the sample size is less or equal to probs.length
the sample values are used as-is.
This means that precomputed quantile values can also be used
There are different templates for different number of probability points.
For example, the default probability [0, .02, .09, .25, .50, .75, .91, .98, 1]
has nine points and the display of the resulting values will use template #9.
A template string has 2n+1
characters and has the form svsvsv...
where alternating characters are used for actual values v
and for spacing.
Examples:
boxplot(data, {
probs: [0.25, 0.5, 0.75],
3:`.L-M-H.`
}) // --> something like '....L----M---H....'
boxplot(data, {
probs: [0.09, 0.25, 0.5, 0.75, 0.],
3:` |-##|##-| `
}) // --> something like ' |---###|####-----| '
Released under the MIT License
FAQs
small configurable boxplot utility for the console
The npm package ascii-boxplot receives a total of 6 weekly downloads. As such, ascii-boxplot popularity was classified as not popular.
We found that ascii-boxplot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.