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

    This walkthrough creates a Radar Bubble Chart. The chart shows the average monthly temperature and precipitation for Barcelona city. The final chart appears like this:

    Radar Bubble 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. Go to the Filters page, add a new filter value, and set its properties as below.
      Expression Operator Value
      =[City] Equal Barcelona
    5. 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 Bubble'.
    3. Click Next to proceed. Here, you need to specify the settings for the Radar Bubble chart.
    4. In Choose Data values section, we will define three data values to display.
      • From the drop-down, set the X Field to =[Month].
      • From the drop-down, set the Y Field to =[AvgT].
      • From the drop-down, set the Size Field to =[Precipitation].
    5. Click Next to preview your chart.
       Radar Bubble 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. In 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: T °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
    3. Click OK to complete setting up the custom palette.

    Legend - Size

    1. To open the smart panel for the legend, click the 'Legend - Size' on the Report Explorer and choose Property Dialog.
    2. Go to the Title page and set the following properties.
      • Title: Precipitation, mm
      • Size: 12pt
      • Color: #3da7a8
    3. Go to the Appearance page and set the following properties.
      • Font > Size: 10pt
      • Font > Color: Gray
      • Background Fill Color > Icon Color: DimGray

      By default, charts like line (line and smooth), bubble, radar bubble, and radar line automatically calculate the size of the markers.
    4. To specify custom marker size in the chart, follow the below steps:
      1. Navigate to the Ranges page and add four ranges using the Add button.
      2. Define the upper bound of the ranges in the To field, as follows:
        Range To
        Range1 35
        Range2 50
        Range3 65
        Range4 80
        Range5 95
        Range6 110

        You can also choose to display custom titles instead of the range values using the Title field in the legend.

    5. 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 'Barcelona Climate'.
    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.
         Radar Bubble 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.