Map - Container Plots

Tinderbox Icon

A new pattern for v 4.5.0, and which applies only to containers (notes & agents), is plot(). It evaluates an expression using data from each child of the containers to produce a graph. The graph, in the forms of a sparkline-type plot is drawn across the viewport area of the container. The graph is drawn in color PlotColor. The container viewport is still accessible for drag/drop, etc. as if the plot weren't there - think of the plot as an overlay.

For example, to graph the word count of each child note in the container, see the container's map Pattern attribute to:

plot($WordCount)

An alternate plot type is bargraph(), which draws a bar graph of each child item's value.

bargraph($WordCount)

Both operators accept optional minimum & maximum values:

plot(attribute,min,max)

Thus:

bargraph($WordCount,0)

graphs the word count of each note whilst ensuring the Y-axis is based at zero, with all attribute values including the maximum being plotted. note that while zero is the default value of an 'blank' number type attribute, the type allows minus values. The above example would treat all of them as if their value were zero.

plot($WordCount,10,900)

graphs the data from a baseline of 10 to a maximum value of 900. Values outside these are plotted appropriately as the min or max values.

From v4.5.2, plot/bargraph patterns are ignored if applied to non-container notes.

Map - Container Plots

 

Up: Misc. User Interface Aspects
Previous: Map - Adornments as Dividers  Next: Map - Table Display 

[Last updated: 1 Dec 2008]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox