Nevron Vision for SQL Server Reporting Services
Chart / Chart - Getting Started
In This Topic
    Chart - Getting Started
    In This Topic
    The purpose of this topic is to provide basic understanding of charting terminology and how charts are used in reporting.
     Chart Elements

    Charts are composed of various elements such as chart areas, series, legends, titles, axes, walls, etc. that are illustrated by the following image:

    There is a certain hierarchy associated with chart elements - i.e. some chart elements are contained in other chart elements - for example the chart walls and axes are parts of each charting area, the legend header and footer are parts of the legend etc. There are three root elements that define the overall chart layout - Chart Areas, Legends and Titles (see Chart Panels for more info).

    Charting Type is associated with each charting area. The charting type defines the geometrical figures and logic that is used to display a collection of values - in charting terminology called Series. In the image above you can see three series - Series 1 and Series 2 are plotted on the first chart area as a cluster bar chart, and Series 3 are plotted on the second chart area as an area chart. All three series are annotated on a single legend.

    It is important to know that a series contains a set of data points that are extracted from your data. A data point can contain multiple values - in the example above Series 1 and Series 2 (bars) need only 1 value for each data point to be displayed, but Series 2 (area) needs two values - a numeric value for the data point elevation and a string value for the data point label. 

     My First Chart in Reporting Services

    Lets assume that you have created a report that shows data from the following data source:

    Data-wise Charts are similar to Matrix report item. When creating reports, the Reporting Services wizard by default helps you create a tabular or matrix report, so in this topic we will discuss how to show the above data source in a chart tabular view and simple chart matrix view:

    1. Tabular View - use this approach to display a data point for each record.

    For example: to create a bar for each row sales value, that has categorical labels with the company names - do the following:

    • Create a Nevron Chart Report Item by dragging and dropping the Nevron Chart toolbox icon to the report design surface.
    • Drag and Drop the sales field on the Drop value fields here adorner area.
    • Drag and Drop the company field on the Drop category fields here adorner area.
    • Double click on the NChart1_company category data grouping card.
    • Replace the =Fields!company.Value Group By expression with:=RowNumber(Nothing)

    When you click the Preview page the following chart will show:

    Q. What have we done?

    A. We have created a single category that creates a group for each record of the data source. The category label is extracted from the company column. The bars values are extracted from the sales column.

    Q. When to use?

    A. When the data is already aggregated (e.g. if you use a SELECT statement with a GROUP BY clause), or when you want to explicitly show each row.


    2. Matrix View - use this approach to display summary values.

    For example: to create a bar for each company total sales value, that has categorical labels with the company names - do the following:

    • Create a Nevron Chart Report Item by dragging and dropping the Nevron Chart toolbox icon to the report design surface.
    • Drag and Drop the sales field on the Drop value fields here adorner area.
    • Drag and Drop the company field on the Drop category fields here adorner area.

    When you click the Preview page the following chart will show:

    Q. What have we done?

    A. We have created a single category that creates a group for all records that belong to a single company. The category label is extracted from the company column. The bars values are calculated as the sum of all sales for the company group records.

    Q. When to use?

    A. When the data is not aggregated and you want to:

    - Summarize a large quantity of data into a smaller, more condensed and readable chart. Even in our basic sample we reduced the data points count three times - thus increasing readability.

    - Help identify relationships/trends within your data that would otherwise be hard to see due to its quantity. Even in our basic sample the tabular view fails to provide a clear visual perception for which is the company with most total sales. What about - Which is the best selling region? Which is the best performing company-region? What is the average profit per company and/or region? - matrix view charts give a visual answer to these and many other strategic/performance questions.

    For the purpose of simplicity, we have only scratched the surface of matrix charting views. You should however know that even a simple dataset can have multiple types of matrix views, each "slicing and dicing" it in very diverse ways. These views will visually give the answers to very complex questions, that will otherwise remain hidden in stockpiles of data.

     

    See Also