Showing posts with label sparklines. Show all posts
Showing posts with label sparklines. Show all posts

Cross-tab charts with SFE

In-cell charts are not meant to be accurate, but to provide a quick overview and by densifying information, to allow the eye to englobe multiple charts. Then, the brain will correlate those small parallel multiples.
Nevertheless, it is key to provide some context or reference, even for small charts.

In SFE, I have always taken care to include reference in the different types of charts :
  • Horizontal lines in BarChart and LineChart.
  • Normality band in LineChart.
  • Horizontal and Vertical lines in (unpublished yet) ScatterChart.
Those references are here to answer the following questions when analysing data  : What is my target ? What is my limit ? Where is the budget level ?... etc

An additionnal reference can provide great help when it comes to read and analyse periodical data : background shading. To identify weekends in a week or every other month in a year for example.

The intensity of the shade must be carefully choosen, in order to be identified by the eye, but remaining neutral, without disturbing the reading of the the lines or columns.

Anyway, SFE now includes the possibility to create periodical vertical grey areas.

For this purpose, I added 3 additional parameters to Barchart and LineChart :
  • ShadedStart : At which position the first grey band should start
  • ShadedWidth : How many positions on the x axis should be shaded
  • TransparentWhidth : How many positions should follow without shading.
Example : show a grey background for saturdays and sundays, starting sunday.

Shaded sparklines
  • ShadedStart = -1. With ShadedStart = 0, the chart would have started with a grey zone covering Saturday + Sunday. -1 will have the chart to start with 1 position (sunday) on a grey background.
  • ShadedWidth : 2. For Saturday + Sunday
  • TransparentWhidth : 5. For the 5 working days of the week


As shown in the example above, the grey zone covers 100% of the cell's height, in order to display a continuous band when LineChart and BarChart are vertically aligned.

Robert Mundigl and Matt Grams provide an excellent example (again!) of Cross-tab chart with standard excel charts here.

PS : You might have noted that LineChart, BarChart and ScaleLine also provide a vertical reference line... that will be described in the next post.


Release 3.2.5 for Excel 2000.

I have had a great deal of help from Holland during the last weeks.

Nixnut is using XL-2000. He is very knowledgeable about statistics, and rewrote some (big) parts of the code.

Here is Nixnut last
XL-2000 version of Sparklines for Excel.

This release bring some new charts :
StripeChart : It shows a vertical marker line for each value in the range and optionally a taller red line for the average mean. The result is a graph with the distribution of the values in the range.


SpreadChart : A lot like the StripeChart except it shows the frequency distribution of the values in the range in one of three styles: stacked (default), spread or jittered.
It uses dots for the data points.

XBoxPlot (Extended Boxplots). A bit experimental. These boxplots take a range as input and calculate values for whiskers, hatch marks, boxes and outliers as necessary.
There are different classes of boxplots:
Tukey (default), 5NS (five number summary), 7NS (seven number summary), and Bowley.
There are also two styles: Classic (default) and Neo.
The Neo style shows bars instead of whiskers.



Visible enhancements of existing functions :
  • Forecast marker for Bulletchart and RevBulletChart
Invisible enhancements :
  • Improved "Redraw" and "Delete" routines.
  • Version number not included in file name, for easier upgrade.

A great deal of very useful Sparklines, dense, self explanatory and easy to embed in dashboards.

This new version is not documented yet...


Well, it seems that I will have to catch up with the XL2003 version... any volunteer for XL2007 ?


New set of Sparklines UDF

Sparklines v3.2.2 is available on Sourceforge.

This new version can be used as a stand alone workbook(*.xls) or as a permanent Excel add-in (*.xla).

Creation of sparklines is made available through a menu and a toolbar, or by typing the function directly in a cell.




Get a copy of the file here . last Version 3.2 for Excel 2003 - October 24th 2008

Several versions are available for download :

To insert a Sparkline, use the Sparkline Menu or Toolbar.
Fill the function argumentsin the Function Wizard.



Some Sparklines do not display properly when first created with the Function Wizard.
Just update them with the "Redraw Sparklines" option of the menu or toolbar.


Please give me some feedback, share
your ideas and I will do my best to improve the functions.




Heatmaps

It is now possible to create arrays of PieCharts, of variable sizes and colors, through the Heatmap() function.

In addition to the disc position in the array, 3 variables are displayed :
  • Color scale
  • Size variation
  • Size of the slice
Obviously I do not recommend using it for large arrays, but I believe that it works pretty well up to 5 x 5 arrays and 4 colors.




Versions log

Sparklines v 3.2

New Features
  • Possibility to install as an add-in for Excel. Take care if you want to distribute files created with the add-in, the Sparklines function will not work on other users' PC.
  • Menu and Toolbar - All functions can be accessed via those 2 means
  • Vertical ScaleLine - Display a a vertical measure scale next to Linecharts, BarCharts or Heatmaps. Choose left or right size.

Minor Changes

  • Heatmap - now includes the possibility to create arrays of piecharts, with variable size and colors
  • LineChart - Corrected error handling of min and max values
  • StackedChart - Reviewed the display of legend, in order to fit in segments
  • Pareto- Reviewed the display of legend
-----------------------------------------------------------------------------------------

Sparklines v 3.0
  • All charts - added possibility to embed intermediary formulas inside the UDFs)
  • All charts - Each Sparklines is properly renamed (Type, active sheet and position)
  • PieChart - New type of chart Heatmap - New type of chart, suitable for 2D and 3D heatmaps (Size + Color)
  • Boxplot - New type of chart
  • BarChart Added one new parameter (color) to choose the color of the bars
  • LineChart - Added parameters for colors of lines
  • BulletChart - Added possibility to choose a color scheme
  • ScaleLine - Added 3 text zone (Left ; center ; right) and choice of font size
  • VariChart - Added possibility to choose a color scheme
  • Color Scales pdf file- 2 separate sheets with well balanced color scales.
  • Macro to delete Sparklines on the active sheet, but Sparklines only.


Scaleline() specifications



ScaleLine and InvScaleLine now have 3 zones for text + the possibility to change the text size (default=6)



Pareto() specifications





















Pareto() sparklines are really meaningful when stacked like here.




BulletChart() and RevBulletChart() specifications

BulletCharts colors can be modified via additional parameter "ColorScheme"




For metrics like "cost" or "claims", where a high value represents a poor performance, use RevBulletChart().



LineChart() specifications

Lines color can be customized, using additional parameters "ColorLine1" and "ColorLine2"




Barchart() specifications