ActiveReports 18 .NET Edition
Report Authors: Designer Components / Report Controls / Page/RDLX Report / Chart / Plots / Scatter and Bubble Charts / Create Multi-Category Radar Scatter Chart
In This Topic
    Create Multi-Category Radar Scatter Chart
    In This Topic

    This walkthrough creates a Multi-Category Radar Scatter Chart. The chart shows the average monthly temperature for three cities - Amsterdam, Paris, and Barcelona. The final chart appears like this:

    Multi Category Radar Scatter Chart

    Create a Report and Bind Report to Data

    In the ActiveReports Designer, create a new RDLX report and follow the New Report wizard to bind the report to data. You can also perform data binding later using the Report Data Source dialog accessed from the Report Explorer.

    Connect to a Data Source

    1. In the Report Data Source dialog, select the General page and enter the name of the data source.
    2. Under Type, select 'Json Provider'.
    3. Go to the Content tab under Connection and set the type of JSON data to 'Embedded'.
    4. In the Select or type the file name or URL or enter the data to be embedded field, enter the following data:

      JSON Data

      Copy Code
      [
        {
          "City": "Amsterdam",
          "Month": "January",
          "MinT": 1,
          "MaxT": 6,
          "Precipitation": 65
        },
        {
          "City": "Amsterdam",
          "Month": "February",
          "MinT": 1,
          "MaxT": 7,
          "Precipitation": 50
        },
        {
          "City": "Amsterdam",
          "Month": "March",
          "MinT": 3,
          "MaxT": 10,
          "Precipitation": 50
        },
        {
          "City": "Amsterdam",
          "Month": "April",
          "MinT": 5,
          "MaxT": 14,
          "Precipitation": 40
        },
        {
          "City": "Amsterdam",
          "Month": "May",
          "MinT": 9,
          "MaxT": 18,
          "Precipitation": 55
        },
        {
          "City": "Amsterdam",
          "Month": "June",
          "MinT": 11,
          "MaxT": 20,
          "Precipitation": 65
        },
        {
          "City": "Amsterdam",
          "Month": "July",
          "MinT": 13,
          "MaxT": 23,
          "Precipitation": 80
        },
        {
          "City": "Amsterdam",
          "Month": "August",
          "MinT": 13,
          "MaxT": 22,
          "Precipitation": 100
        },
        {
          "City": "Amsterdam",
          "Month": "September",
          "MinT": 11,
          "MaxT": 19,
          "Precipitation": 85
        },
        {
          "City": "Amsterdam",
          "Month": "October",
          "MinT": 8,
          "MaxT": 15,
          "Precipitation": 85
        },
        {
          "City": "Amsterdam",
          "Month": "November",
          "MinT": 4,
          "MaxT": 10,
          "Precipitation": 85
        },
        {
          "City": "Amsterdam",
          "Month": "December",
          "MinT": 2,
          "MaxT": 7,
          "Precipitation": 80
        },
        {
          "City": "Paris",
          "Month": "January",
          "MinT": 2,
          "MaxT": 7,
          "Precipitation": 50
        },
        {
          "City": "Paris",
          "Month": "February",
          "MinT": 2,
          "MaxT": 8,
          "Precipitation": 40
        },
        {
          "City": "Paris",
          "Month": "March",
          "MinT": 5,
          "MaxT": 12,
          "Precipitation": 50
        },
        {
          "City": "Paris",
          "Month": "April",
          "MinT": 7,
          "MaxT": 16,
          "Precipitation": 50
        },
        {
          "City": "Paris",
          "Month": "May",
          "MinT": 10,
          "MaxT": 20,
          "Precipitation": 65
        },
        {
          "City": "Paris",
          "Month": "June",
          "MinT": 13,
          "MaxT": 23,
          "Precipitation": 50
        },
        {
          "City": "Paris",
          "Month": "July",
          "MinT": 15,
          "MaxT": 25,
          "Precipitation": 60
        },
        {
          "City": "Paris",
          "Month": "August",
          "MinT": 15,
          "MaxT": 25,
          "Precipitation": 55
        },
        {
          "City": "Paris",
          "Month": "September",
          "MinT": 12,
          "MaxT": 21,
          "Precipitation": 50
        },
        {
          "City": "Paris",
          "Month": "October",
          "MinT": 9,
          "MaxT": 16,
          "Precipitation": 60
        },
        {
          "City": "Paris",
          "Month": "November",
          "MinT": 5,
          "MaxT": 11,
          "Precipitation": 50
        },
        {
          "City": "Paris",
          "Month": "December",
          "MinT": 3,
          "MaxT": 8,
          "Precipitation": 60
        },
        {
          "City": "Barcelona",
          "Month": "January",
          "MinT": 5,
          "MaxT": 14,
          "Precipitation": 40
        },
        {
          "City": "Barcelona",
          "Month": "February",
          "MinT": 5,
          "MaxT": 14,
          "Precipitation": 40
        },
        {
          "City": "Barcelona",
          "Month": "March",
          "MinT": 7,
          "MaxT": 16,
          "Precipitation": 35
        },
        {
          "City": "Barcelona",
          "Month": "April",
          "MinT": 9,
          "MaxT": 18,
          "Precipitation": 40
        },
        {
          "City": "Barcelona",
          "Month": "May",
          "MinT": 13,
          "MaxT": 21,
          "Precipitation": 55
        },
        {
          "City": "Barcelona",
          "Month": "June",
          "MinT": 17,
          "MaxT": 25,
          "Precipitation": 30
        },
        {
          "City": "Barcelona",
          "Month": "July",
          "MinT": 20,
          "MaxT": 28,
          "Precipitation": 20
        },
        {
          "City": "Barcelona",
          "Month": "August",
          "MinT": 20,
          "MaxT": 29,
          "Precipitation": 65
        },
        {
          "City": "Barcelona",
          "Month": "September",
          "MinT": 17,
          "MaxT": 26,
          "Precipitation": 85
        },
        {
          "City": "Barcelona",
          "Month": "October",
          "MinT": 14,
          "MaxT": 22,
          "Precipitation": 100
        },
        {
          "City": "Barcelona",
          "Month": "November",
          "MinT": 9,
          "MaxT": 17,
          "Precipitation": 65
        },
        {
          "City": "Barcelona",
          "Month": "December",
          "MinT": 6,
          "MaxT": 14,
          "Precipitation": 40
        }
      ]
      
      For more information, see the JSON Provider topic.
    5. Go to the Connection String tab and verify the generated connection string by clicking the Validate DataSource Validate Icon icon.
    6. Click OK to save the changes and open the DataSet dialog.

    Add a Dataset   

    1. In the Dataset dialog, select the General page and enter the name of the dataset, 'Climate'.
    2. Go to the Query page and enter the following query to fetch the required fields:
      Query
      Copy Code
      $.[*]
    3. Go to the Fields page to view the available fields. On the same page, add one calculated field:
      Name Value
      AvgT =([MinT] + [MaxT]) / 2
    4. Click OK to save the changes.

    Create a Chart

    We will use the Chart Wizard dialog to configure chart data values and customization. The wizard appears by default if you have a dataset added to your report. See the topic on Chart Wizard for more information.

    1. Drag-drop Chart data region onto the design area. The Chart Wizard dialog appears with an option to select the data and the chart type.
    2. Select the Dataset Name as 'Climate' and the Chart Type as 'Radar Scatter'.
    3. Click Next to proceed. Here, you need to specify the settings for the Radar Scatter chart.
    4. In Choose Data values section, we will define two data values to display.
      • From the drop-down, set the X Field to =[Month].
      • From the drop-down, set the Y Field to =[AvgT].
    5. Under the Data Categories section, set the Field to =[City] create a multi-category chart.
    6. Click Next to preview your chart.
       Multi Category Radar Scatter Chart Dialog Box
      You can also modify the chart palette and do other customizations as the last step in the process of chart creation. Or, you can exit the wizard and access these smart panels as explained below.         

    Set Advanced Customization

    Now that the chart is configured with data values, let us do some customizations on the chart elements using the smart panels.

    Plot Settings

    1. To open the smart panel for advanced plot settings, right-click 'Plot-Plot1' on the Report Explorer and choose Property Dialog.
    2. Go to the Data Fields page and remove the 'Month' value under the Values tab.
    3. On the Categories page, add a new value, and set the Expression to =[Month] to display the average temperature for every month.
    4. Click OK to complete setting up the plot.

    Y-Axis

    1. To open the smart panel for advanced Y-axis settings, right-click 'Y-axis' on the Report Explorer and choose Property Dialog.
    2. Go to the Title page and set the following properties:
      • Title: °C
      • Font > Size: 12pt
      • Font > Color: Gray
      • Font > Weight: SemiBold
    3. Go to the Labels page > Appearance tab and set the following properties:
      • Font > Size: 10pt
      • Font > Color: Gray
    4. Go to the Line page and set the following properties:
      • Show Line: Check-on
      • Color: #3c3c3c
      • Width: 0.5pt
      • Style: Solid
    5. Go to the Major Gridline page and set the following properties:
      • Grid Interval: 5
      • Grid appearance > Show Grid: Check-on
      • Grid appearance > Width: 0.25pt
      • Grid appearance > Color: #cccccc
      • Grid appearance > Style: Dashed
    6. Go to the Scale page and set the following properties:
      • Scale Type: Linear
      • Maximum scale value: 30
      • Minimum scale value: 0
    7. Click OK to complete setting up the Y-axis.

    X-Axis

    1. To open the smart panel for advanced X-axis settings, right-click 'X-axis' on the Report Explorer and choose Property Dialog.
    2. Go to the Title page and remove the text from the Title field to hide the X-axis title in the chart.
    3. Go to the Labels page and set the following properties:
      • Font > Size: 10pt
      • Font > Color: Gray
    4. Go to the Major Gridline page and uncheck the Show Grid option to hide the gridlines.
    5. Click OK to complete setting up the X-axis.

    Chart Palette

    1. To open the smart panel for advanced chart settings, right-click 'Chart' on the Report Explorer and choose Property Dialog.
    2. Go to the Palette page and select Custom from the drop-down and add the following colors.
      • #f26324
      • #1fd537
      • #e40010
    3. Click OK to complete setting up the custom palette.

    Legend - Color

    1. To open the smart panel for the legend, click the 'Legend - Color' on the Report Explorer and choose Property Dialog.
    2. Go to the Appearance page and set the following properties.
      • Font > Size: 10pt
      • Font > Color: Gray
    3. Go to the Layout page and set the following properties.
      • Position: Top
      • Orientation: Horizontal
    4. Click OK to complete setting up the chart legend.

    Chart Header

    1. To open the smart panel for the chart header, right-click 'Header' on the Report Explorer and choose Property Dialog.
    2. Go to the General page and set Title to 'Average Monthly Temperature'.
    3. Go to the Font page and set the properties as below.
      • Size: 24pt
      • Color: #3da7a8
    4. Click OK to complete setting up the chart header.
      You may want to resize the chart.
         Multi Category Radar Scatter Chart at Design Time
      Note: We use stub data at design time and not real data. So to view the actual final chart, you need to view the chart on the preview.
    5. Once you are done with configuring and customizing the chart, press F5 to preview the report.