Sparkline report item in Bold Reports®
The sparkline report item in the Bold Reports® Web Report Designer is a small, simple chart that shows trends and changes in data over time, especially over many periods. Sparklines represent multiple data points and are often used in tables and matrices.
How do I add a sparkline to the report?
You add a sparkline in the Bold Reports® Web Report Designer by dragging it from the KPI category of the item panel into the design area or a tablix cell.
- Find the sparkline report item in the item panel under the
KPIcategory.
- Drag and drop the sparkline report item from the item panel into the design area or inside a tablix cell.

- Review the item properties, which are listed in the properties panel after you drop the sparkline item in the design area or inside a tablix cell.

How do I create data for the sparkline?
To present data in the Bold Reports® sparkline, create a dataset and bind data to it. This design example uses the following dataset query for dataset creation:
SELECT PC.Name AS ProdCat, PS.Name AS SubCat, DATEPART(yy, SOH.OrderDate) AS OrderYear, 'Q' + DATENAME(qq, SOH.OrderDate) AS OrderQtr,SUM(SOD.UnitPrice * SOD.OrderQty) AS Sales
FROM Production.ProductSubcategory PS INNER JOIN
Sales.SalesOrderHeader SOH INNER JOIN
Sales.SalesOrderDetail SOD ON SOH.SalesOrderID = SOD.SalesOrderID INNER JOIN
Production.Product P ON SOD.ProductID = P.ProductID ON PS.ProductSubcategoryID = P.ProductSubcategoryID INNER JOIN
Production.ProductCategory PC ON PS.ProductCategoryID = PC.ProductCategoryID
GROUP BY DATEPART(yy, SOH.OrderDate), PC.Name, PS.Name, 'Q' + DATENAME(qq, SOH.OrderDate), PS.ProductSubcategoryIDRefer to the Create Data section and create a dataset using the above query. The
AdventuresWorksdatabase is used here.
How do I assign data to the sparkline?
A sparkline in the Bold Reports® Web Report Designer needs a minimum of 1 value element to showcase data. Drop the measure or expression field you want to analyze into the Y Values section. Drop the dimension that categorizes the measure onto the Columns section. To categorize based on a series, also drop the respective dimension onto the Rows section.
To configure data for the sparkline, follow these steps:
- Focus on the sparkline report item to bind data to it.
- Click the
Propertiesicon in the configuration panel to open the property pane. Switch to theDATAtab.
- Choose a data source from the drop-down, which lists the available data in the report.

- Review the fields. Numeric columns and numeric expressions are listed under the
Measuressection; other types of columns and dimension expressions are listed under theDimensionssection.
- Drag and Drop Measure Element:
Select and drag the numeric column (measure element) or the numeric expression column from the
Measuresection and drop it in theY Valuessection.
The report item design now looks like the following image:

- Aggregate Options:
Click the
Settingsicon (highlighted below) to open the aggregation type drop-down list.
Set the aggregation type used to compute the selected column.

- Drag and Drop Dimension Element:
Select and drag the dimension element from the
Dimensionssection to measure against any of the selected numeric column(s) in theY Value(s)section, and drop it into theColumn(s)section.
The report item design now looks like the following image:

- Grouping:
Group the added column element with another column by adding the respective dimension element into the Row(s) section.
The report item design now looks like the following image.

Properties
The sparkline report item in the Bold Reports® Web Report Designer has name, series, appearance, chart area, no data, page break, position, data element, visibility, and miscellaneous properties. Refer to the Properties panel section before proceeding with the following properties.
Name
The Name property gives the sparkline item a unique name in the report.

Basic Settings
The basic settings of the sparkline include the Choose Series option, shown in the following image.

Choose Series
The Choose Series drop-down lists the available series when you add multiple series to the chart. To customize a series appearance, choose the required series name in the drop-down.

Refer to the Series section to customize each series using the properties panel.
Appearance
The border style, color, width and background color properties style the chart and customize its appearance in the report design. These properties are listed under the Appearance category in the properties panel.

Chart Area
Chart Area properties such as border width, color, shadow color, shadow offset and background color customize the area of the chart design. These properties are listed under the Chart Area category.

No Data
The No Data property displays static text when the dataset returns empty or zero rows at run time.

To set or reset no data message properties, refer to the No Data Message property section.
Page break
The page break property controls the amount of information on each page when you preview the report. Follow these steps to apply the page break property to the sparkline report item:
- Choose any
Break Locationtype in the drop-down. The Break Location property specifies where the page break occurs.
- Enable the
Page Number Resetproperty checkbox to restart the page numbering on each page.
Position
The Position property sets the width, height, left and top position of the sparkline in the report design. To handle these properties using the properties panel, refer to the Position section.
Data Element
The Data element properties control the visibility of a report item when you export the report in XML format. The Data element properties are listed in the properties panel, under the Data Element category.

Name
The Name field assigns a custom name to the sparkline element. The sparkline is exported with the provided name.

Note: The name cannot contain spaces, and it must begin with a letter followed by letters, numbers, or the underscore character (_).
Output
The Output property controls the visibility of the sparkline when you export the report. Choosing the following options for the Output property performs the respective operations:
- Auto or Output - Exports the sparkline report item.
- NoOutput - Does not export the sparkline report item.

Visibility
The visibility property conditionally shows or hides the sparkline report item on report preview or export action. To set visibility of the sparkline item using the properties panel, refer to the Visibility section.
Miscellaneous
The miscellaneous properties of the sparkline cover page name, custom attributes, document map, bookmark, tooltip, and custom style.
Page name
The page name property names the first worksheet of the Excel workbook when you export the report to Excel format.

You can set static or dynamic text as the page name. To set and reset dynamic text, refer to the Set Expression and Reset Expression sections.
Custom attributes
The custom attributes property sets the values for chart custom properties. To create and assign values for custom properties using the properties panel, refer to the Custom Properties section.
Document Map
A document map is a navigational feature that displays a separate side pane with a set of navigational links in a hierarchical structure when you view a report. A user can click the content in the list to navigate to the report page that displays that item. Refer to the Document Map section to configure a document map in the report design.
You can set static or dynamic text as the value for the document map property. To set and reset dynamic text, refer to the Set Expression and Reset Expression sections.
Bookmark
Bookmark links let users navigate to different parts of an SSRS report. You can add bookmarks to each textbox, image, table or chart, or to the unique group values displayed in a tablix, to direct users to specified locations in the report. The value of the bookmark property can be your own strings or an expression. Refer to the Bookmark section to configure a bookmark in the report design.
You can set static or dynamic text as the value for the bookmark property. To set and reset dynamic text, refer to the Set Expression and Reset Expression sections.
Tooltip
The Tooltip property displays informative text or a value when the user hovers over the report item in report preview. To set a tooltip for the sparkline report item using the properties panel, refer to the Tooltip section.
Custom Style
The Custom Style property enables the use of external CSS for styling report items, providing more flexibility than the built-in styling options. Use this property to meet specific design requirements and keep styling consistent across multiple reports. For a step-by-step guide on setting up custom styles in your report, check the How To section of this guide.
The following image shows the Custom Style property in the properties panel.

How do I set an expression on a sparkline property?
You can set an expression on a few properties of the sparkline report item in the Bold Reports® Web Report Designer to process the property values. To set expressions on the sparkline report item properties, refer to the Set Expression section.
How do I reset an expression?
You Reset an expression applied to a sparkline property from the Web Report Designer properties panel. For the steps, refer to the Reset Expression section.
What are advanced properties?
Advanced properties are the nested properties that a few sparkline report item properties contain in the Bold Reports® Web Report Designer. To open and handle the nested properties, refer to the Advanced Properties section.
Frequently asked questions
How many values does a sparkline need?
A sparkline needs a minimum of 1 value element in the Y Values section to showcase data.
Can I stop the sparkline from exporting?
Yes. Set the Output property under Data Element to NoOutput so the sparkline report item is not exported.