This is the first publicly available release of Sparkify and it includes three formulas.
SparkifyBar()
SparkifyPie()
SparkifyAI
SparkifyBar
This is the most commonly used sparkline in the Sparkify collection. Future releases will support a line type. Typically you’ll want to provide a list of numbers (number array). Positive values will be bright green and negative numbers will be bright red. The number of values this sparkline supports is presently unknown, but tests show it handles a few dozen with no issues.
SparkifyPie
This is a slightly different type of sparkline intended to provide a binary assessment using to aggregate values - the first is rendered as green and the second is rendered in red. This is a simple indicator of the percent of a whole. You can provide more than two values but since sparklines have no legend or slices key, it will not provide the usability of a full-blown pie chart.
SparkifyAI
This one is also of type bar sparkline but is presently experimental. It uses the least squares method of predicting future values. Future positive values are indicated in light green and future negative values are light red.
Colors
Presently, all colors are fixed, but release 9 will include options to override the default colors.
Want to print your doc? This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (