A Sparkline is a small chart that is aligned with rows of some tabular data and usually shows trend information. Sparklines (often called as micro-charts) add rich visualization capability to tabular data without taking too much space.
Metrics - 1 or more metrics can be added to this visualization Attributes - Minimum one attribute is required. We recommend adding one time-based attribute as a trend over time is best represented by a sparkline. However, any other attribute can also be used. Use as Filter Option - Available
From 4.6 version of Vitara charts, Marker properties are moved to Series properties. All charts which support Series as Line/Area use the updated marker properties. Open the property editor by clicking on the ‘Edit’ button and select the Series tab you can see the Enable marker, Marker type and Marker size options to Enable marker properties. There are various markers available to select from. Go to the marker tab, click on the marker type, select the marker. The size of the markers is also customizable. Just enter a number in ‘Marker Size’ text input box or you can use increase/decrease buttons.
Below are the screenshots with the marker options.
In the below example, the Profit metric’s line changed to line secondary axis in series property and ‘Tree’ marker is applied for the profit metric. Below is the screenshot with the marker applied in the chart.
We can turn the sparkline chart into the combinational chart by changing the series type in the series tab.
From the 4.5 version of Vitara charts, the line options are introduced in Line, Area and Sparkline charts. Line width, Line style and Line Style are the 3 options introduced. Below are the screenshots with the line options. Line width - 2 Line width - Violet Line style - LongDash
In the business point of view, certain part of the chart needs to be highlighted to draw more attention from the desicion makers. For example, highlight the stores where total sales is greater than a specific value or highlight the top 10 products whose sales is high during last year’s winter. Thresholds are very useful objects in these use cases.
Thresholds will display some conditional formatting in a chart to highlight certain data points depending on predefined criteria.The criteria are attribute or metric qualifications. If a qualification’s expression evaluates to TRUE, the report displays the threshold. We can also include markers in thresholds.
To apply thresholds in vitara charts, hover the cursor on the chart. Vitara chart will display an ‘Edit’ button. When you click on this ‘Edit’ button the properties window will pop out. Select the thresholds tab to open threshold editor. In the window you can add a new threshold or delete any existing threshold or modify the existing threshold.
Note: From 4.6 version we can apply thresholds using attributes. The source drop down box in the threshold editor window will list all the attributes and metrics in the chart. we can select an attribute as source and define a threshold condition. The target of the threshold depends on the series of the chart. This means, if the chart series is created using metrics then target drop down box will display the metrics. If we enabled ‘color by’ mode, by adding an attribute to the ‘color by’ drop zone in the dossier’s editor panel, the chart series will be created using attributes. In this case the threshold target drop down box will show all the elements of attribute used in the color by drop zone. In this case we can set threshold target using attribute.
In the threshold editor window apply source, target, threshold condition and the other related information to set a threshold on the chart.
After giving all the inputs click on ‘Apply’ button.
From version 4.9.0, we can use pattern fill in thresholds, certain part of the chart can be filled with a pattern.
Play by - animation shows the chart for each element of the first attribute. For more details about the play by feature please refer to play-by.
The steps to set a background image for all Vitara charts are explained in backgroundImage.
Spark Line chart supports small multiples feature. Small multiples feature is explained in smallMultiples.
From the version 4.4, data markers feature is introduced in the Sparkline chart. To know about Data Markers feature please click Here.
From version 5.0, Gradient color fill can be added where the series property is available.
It can be enabled by selecting options from the series tab for individual series.
It will show the color palette, which will have two selection handles to choose two colors that will render from beginning to end on the series. (From left to right)