Sparkline for WPF Overview > Features > Sparkline Types |
Sparkline supports three different chart types, namely Line, Column and Winloss, for visualizing data in different context. For example, Line charts are suitable to visualize continuous data, while Column sparklines are used in scenarios where data comparison is involved. Similarly, a Win-Loss sparkline is best used to visualize a true-false (that is, win-loss) scenario.
Line sparkline is drawn as a linear graph that best suits scenarios where a user wants to visualize some trend in the data. Commonly, this type of sparkline is used to visualize sales figures or stock values.
Here is how a Sparkline control with SparklineType property set to Line appears.
By default, Sparkline renders as a Line sparkline. |
Column sparkline renders data points in columns. This type of sparkline is suitable to visualize comparison in data. In Column Sparkline, positive data points are drawn in upward direction, while negative data points are drawn in downward direction.
Here is how a Sparkline control with SparklineType property set to Column appears.
Win-Loss sparkline displays data points through equal-sized columns drawn in upward and downward direction. This type of Sparkline is used to visualize win/profit-loss scenarios. Columns drawn in upward direction indicate a win, while downward columns indicate a loss.
Here is how a Sparkline control with SparklineType property set to Win-Loss appears.