[{"id":"e0909540-8bde-4587-bb4d-02445746db2a","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"464b8e03-462d-4aed-8818-05d32ec3bf00","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"75b66fd4-b740-443d-bc6e-1782048b60a6","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"fd5d021d-0210-4d74-ba42-1a39ef14a385","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"a20f26ac-cd31-4e4d-9454-1e035b0f1587","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"7fce7040-1bb1-4a61-9fb7-2e19d569de50","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"f235557b-9781-471f-bf03-38bae6e3e953","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"c8c7b5d5-f5bd-4b68-a12f-3aae9804a844","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"dde44832-bb5c-45f3-8ebf-3badbc613cd9","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"a0c823ed-e22b-493b-aded-4d201c0fa480","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"2f064d57-b088-4bc5-a628-4e0d7e1a0c65","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"577a09da-dea1-42db-812f-4eeaa9274ece","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"0eb72dd3-8f8f-4039-93a8-500bbde2301e","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"3f2ea860-c764-43d8-ae3f-6e3b0314ce67","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"3604b8ce-1da0-413f-8274-7df0f7173573","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"f290406b-ced1-4c52-abad-979160a79f6b","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"d19bc9cd-ff53-4b0d-ab7e-a68c1497c4c6","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"ac046cee-82b9-4edf-a642-ae6d7cb21ebf","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"81eb70e8-f770-4384-9167-bc7c755ad052","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"1864834b-08ce-43f1-891b-c3cca6e04e95","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"f96cfec1-420c-4ca7-ab0a-cab482731073","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"d0dff477-9f56-483a-a9fc-cab648905b41","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"548568fe-dbd1-4da5-a489-d9b3edf75329","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"27658163-a479-432f-a192-dbed286beb3e","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"793a62d7-460d-4699-9304-edb2941268ac","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"8ddd80d5-886f-41b8-8e3f-f73aa8146c8d","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"43de3664-261b-4cf9-9945-fb519251f4c7","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"94759fce-692f-4779-b5f3-fce5c58f242c","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"2d6ebfad-f7d1-4cc5-8ba1-fdace3472056","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]}]
        
(Showing Draft Content)

Sparkline

Sparkline report control is a simple means of displaying the trend of data in a small graph. It displays the most recent value as the rightmost data point and compares it with earlier values on a scale, allowing you to view general changes in data over time. With the height similar to the surrounding text, you can display data either using line, columns, whiskers, area, or stacked bar sparkline types.




Some properties of the Sparkline control are described below. Note that you need to enable Advanced Properties Mode to view all properties.

Common

Sparkline Type: Choose from the following options.

  • Line


    The Line sparkline is widely used in financial and economic data analysis and is based on a continuous flow of data. The currency exchange rates, changes in price are the examples of application of this type of sparklines.

  • Columns


    The Column sparkline is used for sports scores, cash register receipts, and other cases where previous values and the current value do not closely influence one another. In this case you are dealing with discrete data points, and not a continuous flow of data as in the Line sparkline.

  • Whiskers


    The Whisker sparkline is typically used in win/loss/tie or true/false scenarios. This type is similar to the Column sparkline, but it renders a tie (0 value) in a different manner. The bars in a whisker sparkline render below the baseline for a negative value, above the baseline for a positive value, and on the baseline for a zero value.

  • Area


    The Area sparkline is similar to the Line sparkline but visually you see the space under the line as shaded.

  • StackedBar


    The Stacked Bar sparkline is presented as a horizontal bar with different segment lengths marked by distinct color hues. The Stacked bar illustrates how the various segments of a part-to-whole relationship correspond to one another - the largest segment represents the highest value and the change in brightness indicates a new value on a scale.

Group

Name: Enter a name for the group that is unique within the report. This property cannot be set until after a Group expression is supplied. You can only use underscore (_) as a special character in the Name field. Other special characters such as period (.), space ( ), forward slash (/), back slash (\), exclamation (!), and hyphen (-) are not supported.


Group Expressions: Enter an expression to use for grouping the data.


Parent: Enter an expression to use as the parent group. This is for use in case of recursive hierarchies.


Label: Enter an expression to use as a label to represent this item for the document map and search functions.

Line

Line Color: Select a color to use for the line from Color Picker, Standard Colors, or Web Colors.


Line Width: Enter a value in points to set the width of the line.


Marker Color: Select a color to use for the last point marker from Color Picker, Standard Colors, or Web Colors.


Marker Visibility: Select whether to display a marker at the last point on the sparkline of Line type.

Column

Maximum Width: Select the maximum width of columns in the sparkline. If blank, all columns are sized to fit.

Fill Style

Fill Color: Select a color to fill the sparkline.


Gradient Type: Choose the type of gradient for the sparkline from these options: None, LeftRight, TopBottom, Center, DiagonalLeft, DiagonalRight, HorizontalCenter or VerticalCenter.


Gradient End Color: Select a color to use for the end of the sparkline gradient.

Range

Lower Bound: Select a value or enter an expression that defines the lower bound of the range.


Upper Bound: Select a value or enter an expression that defines the upper bound of the range.


Fill Color: Select a color to use for the sparkline range. The range is a colored rectangle to determine the lowest and highest levels acceptable values.


Gradient Type: Choose the type of gradient for the range from these options: None, LeftRight, TopBottom, Center, DiagonalLeft, DiagonalRight, HorizontalCenter or VerticalCenter.


Gradient End Color: Select a color to use for the end of the range gradient.

Data

Data Set Name: Select a dataset to associate with the sparkline. The drop-down list is populated with all of the datasets in the report's dataset collection.


Sort Expressions: In the Expression box, enter an expression by which to sort the data, and under Direction, select Ascending or Descending for the selected sort expression.


Filters: You need to provide following values to add a new filter to the collection:

  • Filter Expression: Enter the expression to use for evaluating whether data should be included in the group.

  • Operator: Select from the following operators to decide how to compare the expression to the left with the value to the right.

    • Equal - Only choose data for which the value on the left is equal to the value on the right.

    • Like - Only choose data for which the value on the left is similar to the value on the right. For more information on using the Like operator, see the MSDN Web site.

    • NotEqual - Only choose data for which the value on the left is not equal to the value on the right.

    • GreaterThan - Only choose data for which the value on the left is greater than the value on the right.

    • GreaterThanOrEqual - Only choose data for which the value on the left is greater than or equal to the value on the right.

    • LessThan - Only choose data for which the value on the left is less than the value on the right.

    • LessThanOrEqual - Only choose data for which the value on the left is less than or equal to the value on the right.

    • TopN - Only choose items from the value on the left which are the top number specified in the value on the right.

    • BottomN - Only choose items from the value on the left which are the bottom number specified in the value on the right.

    • TopPercent - Only choose items from the value on the left which are the top percent specified in the value on the right.

    • BottomPercent - Only choose items from the value on the left which are the bottom percent specified in the value on the right.

    • In - Only choose items from the value on the left which are in the array of values specified on the right. Selecting this operator enables the Values list at the bottom.

    • Between - Only choose items from the value on the left which fall between the pair of values you specify on the right. Selecting this operator enables two Value boxes instead of one.

  • Value: Enter a value to compare with the expression on the left based on the selected operator. For multiple values used with the Between operator, the lower two value boxes are enabled.

  • Filter Values: When you choose the In operator, you can enter as many values as you need in this list.

Use Case

Let’s say that we want to visualize the call center data trend compared to a target value (times measured in seconds). For this, we will use three sparkline controls to display the data for the three criteria - call hold time, call duration, and abandoned calls.


To create such a report, we will place the Sparkline controls directly onto the report and set their properties accordingly. We will also use TextBox controls to show the criteria names - [Hold Time], [Call Duration], and [Abandoned]. More TextBox controls with expressions will display the latest actual value for each call center performance criterion.


The final report will be as shown:

sparkline-useCase.png

  1. Drag-drop the TextBox control onto the design area and enter the text 'Call Center Dashboard: Overall Performance'. This will be the report's title.

  2. Drag-drop three TextBox controls and place them one below another to display the criteria labels.

    • Select TextBox2 and enter the text 'Hold Time'

    • Select TextBox3 and enter the text 'Call Duration'

    • Select TextBox3 and enter the text 'Abandoned'

  3. Drag-drop the TextBox control next to the textbox containing 'Hold Time' and set the Value property to =Last(Fields!AvgHoldTime.Value, "CallAverages").

  4. Drag-drop the TextBox control next to the textbox containing 'Call Duration' and set the Value property to =Last(Fields!AvgCallDuration.Value, "CallAverages").

  5. Similarly, drag and drop the TextBox control near to the textbox containing 'Abandoned' and set the Value property to =Last(Fields!Abandonments.Value, "CallAverages").

  6. Drag-drop the TextBox control above the last three TextBoxes and enter the text 'Actual'.

  7. Drag-drop the TextBox control onto the design area and enter the text 'Today (compared to target)'.

  8. Drag-drop the Sparkline control next to the textbox containing 'Hold Time' and set the Name property to 'HoldTimeSparkline'.

  9. From the Properties tab, set the following properties for 'HoldTimeSparkline':

    • Series Value: =Fields!AvgHoldTime.Value / First(Fields!TargetHoldTime.Value, "Targets")

    • Lower Bound: 1

    • Upper Bound: 1.005

    • Range > Visibility: True

    • Element Name: HoldTimeSparkline

    • Data Set Name: CallAverages


  10. Drag-drop the Sparkline control against the textbox containing 'Call Duration' and set the Name property to 'CallDurationSparkline'.

  11. From the Properties tab, set the following properties for the 'CallDurationSparkline':

    • Series Value: =Fields!AvgCallDuration.Value / First(Fields!TargetDuration.Value, "Targets")

    • Lower Bound: 1

    • Upper Bound: 1.005

    • Range > Visibility: True

    • Element Name: CallDurationSparkline

    • Data Set Name: CallAverages

  12. Drag-drop the Sparkline control against the textbox containing 'Abandoned' and set the Name property to 'AbandonmentsSparkline'.

  13. From the Properties tab, set the following properties for the 'AbandonmentsSparkline':

    • Series Value: =Fields!Abandonments.Value

    • Lower Bound: 1

    • Upper Bound: 1.005

    • Range > Visibility: True

    • Element Name: AbandonmentsSparkline

    • Data Set Name: CallAverages

  14. Drag-drop the TextBox control below the Sparkline controls and enter the text '(Times measured in seconds)'.

  15. Improve the appearance of the report by resizing the controls and applying font style and alignment properties.

  16. Preview the report.