ActiveReports 16 .NET Edition
ActiveReports 16 User Guide / Concepts / Page Report/RDL Report Concepts / Toolbox / Chart / Plots / Scatter and Bubble Charts / Create Multi-Category Scatter Chart
In This Topic
    Create Multi-Category Scatter Chart
    In This Topic

    This walkthrough creates a Multi-Category Scatter Chart. The chart shows the relationship between the 'GDP per Capita' and 'Life Expectancy' for different continents. In a multi-category scatter chart, the data values are broken down into subcategories and are distinguished using the data points' color, shape, or both. The final chart appears like this:

    Multi Category Scatter Chart

    Create a Report

    In the ActiveReports Designer, create a new RDL report.

    Bind Report to Data

    The Report Data Source dialog is invoked when a new report is created if you keep the default check on for the Launch Data Source Wizard option. You can also access this dialog by right-clicking the Data Sources node in the Report Explorer and then selecting the Add Data Source option.

    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
      [
       {
         "country": "Afghanistan",
         "continent": "Asia",
         "lifeExp": 43.828,
         "gdpPercap": 974.5803384,
         "pop": 31889923
       },
       {
         "country": "Albania",
         "continent": "Europe",
         "lifeExp": 76.423,
         "gdpPercap": 5937.029526,
         "pop": 3600523
       },
       {
         "country": "Algeria",
         "continent": "Africa",
         "lifeExp": 72.301,
         "gdpPercap": 6223.367465,
         "pop": 33333216
       },
       {
         "country": "Angola",
         "continent": "Africa",
         "lifeExp": 42.731,
         "gdpPercap": 4797.231267,
         "pop": 12420476
       },
       {
         "country": "Argentina",
         "continent": "Americas",
         "lifeExp": 75.32,
         "gdpPercap": 12779.37964,
         "pop": 40301927
       },
       {
         "country": "Australia",
         "continent": "Oceania",
         "lifeExp": 81.235,
         "gdpPercap": 34435.36744,
         "pop": 20434176
       },
       {
         "country": "Austria",
         "continent": "Europe",
         "lifeExp": 79.829,
         "gdpPercap": 36126.4927,
         "pop": 8199783
       },
       {
         "country": "Bahrain",
         "continent": "Asia",
         "lifeExp": 75.635,
         "gdpPercap": 29796.04834,
         "pop": 708573
       },
       {
         "country": "Bangladesh",
         "continent": "Asia",
         "lifeExp": 64.062,
         "gdpPercap": 1391.253792,
         "pop": 150448339
       },
       {
         "country": "Belgium",
         "continent": "Europe",
         "lifeExp": 79.441,
         "gdpPercap": 33692.60508,
         "pop": 10392226
       },
       {
         "country": "Benin",
         "continent": "Africa",
         "lifeExp": 56.728,
         "gdpPercap": 1441.284873,
         "pop": 8078314
       },
       {
         "country": "Bolivia",
         "continent": "Americas",
         "lifeExp": 65.554,
         "gdpPercap": 3822.137084,
         "pop": 9119152
       },
       {
         "country": "Bosnia and Herzegovina",
         "continent": "Europe",
         "lifeExp": 74.852,
         "gdpPercap": 7446.298803,
         "pop": 4552198
       },
       {
         "country": "Botswana",
         "continent": "Africa",
         "lifeExp": 50.728,
         "gdpPercap": 12569.85177,
         "pop": 1639131
       },
       {
         "country": "Brazil",
         "continent": "Americas",
         "lifeExp": 72.39,
         "gdpPercap": 9065.800825,
         "pop": 190010647
       },
       {
         "country": "Bulgaria",
         "continent": "Europe",
         "lifeExp": 73.005,
         "gdpPercap": 10680.79282,
         "pop": 7322858
       },
       {
         "country": "Burkina Faso",
         "continent": "Africa",
         "lifeExp": 52.295,
         "gdpPercap": 1217.032994,
         "pop": 14326203
       },
       {
         "country": "Burundi",
         "continent": "Africa",
         "lifeExp": 49.58,
         "gdpPercap": 430.0706916,
         "pop": 8390505
       },
       {
         "country": "Cambodia",
         "continent": "Asia",
         "lifeExp": 59.723,
         "gdpPercap": 1713.778686,
         "pop": 14131858
       },
       {
         "country": "Cameroon",
         "continent": "Africa",
         "lifeExp": 50.43,
         "gdpPercap": 2042.09524,
         "pop": 17696293
       },
       {
         "country": "Canada",
         "continent": "Americas",
         "lifeExp": 80.653,
         "gdpPercap": 36319.23501,
         "pop": 33390141
       },
       {
         "country": "Central African Republic",
         "continent": "Africa",
         "lifeExp": 44.741,
         "gdpPercap": 706.016537,
         "pop": 4369038
       },
       {
         "country": "Chad",
         "continent": "Africa",
         "lifeExp": 50.651,
         "gdpPercap": 1704.063724,
         "pop": 10238807
       },
       {
         "country": "Chile",
         "continent": "Americas",
         "lifeExp": 78.553,
         "gdpPercap": 13171.63885,
         "pop": 16284741
       },
       {
         "country": "China",
         "continent": "Asia",
         "lifeExp": 72.961,
         "gdpPercap": 4959.114854,
         "pop": 1318683096
       },
       {
         "country": "Colombia",
         "continent": "Americas",
         "lifeExp": 72.889,
         "gdpPercap": 7006.580419,
         "pop": 44227550
       },
       {
         "country": "Comoros",
         "continent": "Africa",
         "lifeExp": 65.152,
         "gdpPercap": 986.1478792,
         "pop": 710960
       },
       {
         "country": "Congo, Dem. Rep.",
         "continent": "Africa",
         "lifeExp": 46.462,
         "gdpPercap": 277.5518587,
         "pop": 64606759
       },
       {
         "country": "Congo, Rep.",
         "continent": "Africa",
         "lifeExp": 55.322,
         "gdpPercap": 3632.557798,
         "pop": 3800610
       },
       {
         "country": "Costa Rica",
         "continent": "Americas",
         "lifeExp": 78.782,
         "gdpPercap": 9645.06142,
         "pop": 4133884
       },
       {
         "country": "Cote d'Ivoire",
         "continent": "Africa",
         "lifeExp": 48.328,
         "gdpPercap": 1544.750112,
         "pop": 18013409
       },
       {
         "country": "Croatia",
         "continent": "Europe",
         "lifeExp": 75.748,
         "gdpPercap": 14619.22272,
         "pop": 4493312
       },
       {
         "country": "Cuba",
         "continent": "Americas",
         "lifeExp": 78.273,
         "gdpPercap": 8948.102923,
         "pop": 11416987
       },
       {
         "country": "Czech Republic",
         "continent": "Europe",
         "lifeExp": 76.486,
         "gdpPercap": 22833.30851,
         "pop": 10228744
       },
       {
         "country": "Denmark",
         "continent": "Europe",
         "lifeExp": 78.332,
         "gdpPercap": 35278.41874,
         "pop": 5468120
       },
       {
         "country": "Djibouti",
         "continent": "Africa",
         "lifeExp": 54.791,
         "gdpPercap": 2082.481567,
         "pop": 496374
       },
       {
         "country": "Dominican Republic",
         "continent": "Americas",
         "lifeExp": 72.235,
         "gdpPercap": 6025.374752,
         "pop": 9319622
       },
       {
         "country": "Ecuador",
         "continent": "Americas",
         "lifeExp": 74.994,
         "gdpPercap": 6873.262326,
         "pop": 13755680
       },
       {
         "country": "Egypt",
         "continent": "Africa",
         "lifeExp": 71.338,
         "gdpPercap": 5581.180998,
         "pop": 80264543
       },
       {
         "country": "El Salvador",
         "continent": "Americas",
         "lifeExp": 71.878,
         "gdpPercap": 5728.353514,
         "pop": 6939688
       },
       {
         "country": "Equatorial Guinea",
         "continent": "Africa",
         "lifeExp": 51.579,
         "gdpPercap": 12154.08975,
         "pop": 551201
       },
       {
         "country": "Eritrea",
         "continent": "Africa",
         "lifeExp": 58.04,
         "gdpPercap": 641.3695236,
         "pop": 4906585
       },
       {
         "country": "Ethiopia",
         "continent": "Africa",
         "lifeExp": 52.947,
         "gdpPercap": 690.8055759,
         "pop": 76511887
       },
       {
         "country": "Finland",
         "continent": "Europe",
         "lifeExp": 79.313,
         "gdpPercap": 33207.0844,
         "pop": 5238460
       },
       {
         "country": "France",
         "continent": "Europe",
         "lifeExp": 80.657,
         "gdpPercap": 30470.0167,
         "pop": 61083916
       },
       {
         "country": "Gabon",
         "continent": "Africa",
         "lifeExp": 56.735,
         "gdpPercap": 13206.48452,
         "pop": 1454867
       },
       {
         "country": "Gambia",
         "continent": "Africa",
         "lifeExp": 59.448,
         "gdpPercap": 752.7497265,
         "pop": 1688359
       },
       {
         "country": "Germany",
         "continent": "Europe",
         "lifeExp": 79.406,
         "gdpPercap": 32170.37442,
         "pop": 82400996
       },
       {
         "country": "Ghana",
         "continent": "Africa",
         "lifeExp": 60.022,
         "gdpPercap": 1327.60891,
         "pop": 22873338
       },
       {
         "country": "Greece",
         "continent": "Europe",
         "lifeExp": 79.483,
         "gdpPercap": 27538.41188,
         "pop": 10706290
       },
       {
         "country": "Guatemala",
         "continent": "Americas",
         "lifeExp": 70.259,
         "gdpPercap": 5186.050003,
         "pop": 12572928
       },
       {
         "country": "Guinea",
         "continent": "Africa",
         "lifeExp": 56.007,
         "gdpPercap": 942.6542111,
         "pop": 9947814
       },
       {
         "country": "Guinea-Bissau",
         "continent": "Africa",
         "lifeExp": 46.388,
         "gdpPercap": 579.231743,
         "pop": 1472041
       },
       {
         "country": "Haiti",
         "continent": "Americas",
         "lifeExp": 60.916,
         "gdpPercap": 1201.637154,
         "pop": 8502814
       },
       {
         "country": "Honduras",
         "continent": "Americas",
         "lifeExp": 70.198,
         "gdpPercap": 3548.330846,
         "pop": 7483763
       },
       {
         "country": "Hong Kong, China",
         "continent": "Asia",
         "lifeExp": 82.208,
         "gdpPercap": 39724.97867,
         "pop": 6980412
       },
       {
         "country": "Hungary",
         "continent": "Europe",
         "lifeExp": 73.338,
         "gdpPercap": 18008.94444,
         "pop": 9956108
       },
       {
         "country": "Iceland",
         "continent": "Europe",
         "lifeExp": 81.757,
         "gdpPercap": 36180.78919,
         "pop": 301931
       },
       {
         "country": "India",
         "continent": "Asia",
         "lifeExp": 64.698,
         "gdpPercap": 2452.210407,
         "pop": 1110396331
       },
       {
         "country": "Indonesia",
         "continent": "Asia",
         "lifeExp": 70.65,
         "gdpPercap": 3540.651564,
         "pop": 223547000
       },
       {
         "country": "Iran",
         "continent": "Asia",
         "lifeExp": 70.964,
         "gdpPercap": 11605.71449,
         "pop": 69453570
       },
       {
         "country": "Iraq",
         "continent": "Asia",
         "lifeExp": 59.545,
         "gdpPercap": 4471.061906,
         "pop": 27499638
       },
       {
         "country": "Ireland",
         "continent": "Europe",
         "lifeExp": 78.885,
         "gdpPercap": 40675.99635,
         "pop": 4109086
       },
       {
         "country": "Israel",
         "continent": "Asia",
         "lifeExp": 80.745,
         "gdpPercap": 25523.2771,
         "pop": 6426679
       },
       {
         "country": "Italy",
         "continent": "Europe",
         "lifeExp": 80.546,
         "gdpPercap": 28569.7197,
         "pop": 58147733
       },
       {
         "country": "Jamaica",
         "continent": "Americas",
         "lifeExp": 72.567,
         "gdpPercap": 7320.880262,
         "pop": 2780132
       },
       {
         "country": "Japan",
         "continent": "Asia",
         "lifeExp": 82.603,
         "gdpPercap": 31656.06806,
         "pop": 127467972
       },
       {
         "country": "Jordan",
         "continent": "Asia",
         "lifeExp": 72.535,
         "gdpPercap": 4519.461171,
         "pop": 6053193
       },
       {
         "country": "Kenya",
         "continent": "Africa",
         "lifeExp": 54.11,
         "gdpPercap": 1463.249282,
         "pop": 35610177
       },
       {
         "country": "Korea, Dem. Rep.",
         "continent": "Asia",
         "lifeExp": 67.297,
         "gdpPercap": 1593.06548,
         "pop": 23301725
       },
       {
         "country": "Korea, Rep.",
         "continent": "Asia",
         "lifeExp": 78.623,
         "gdpPercap": 23348.13973,
         "pop": 49044790
       },
       {
         "country": "Kuwait",
         "continent": "Asia",
         "lifeExp": 77.588,
         "gdpPercap": 47306.98978,
         "pop": 2505559
       },
       {
         "country": "Lebanon",
         "continent": "Asia",
         "lifeExp": 71.993,
         "gdpPercap": 10461.05868,
         "pop": 3921278
       },
       {
         "country": "Lesotho",
         "continent": "Africa",
         "lifeExp": 42.592,
         "gdpPercap": 1569.331442,
         "pop": 2012649
       },
       {
         "country": "Liberia",
         "continent": "Africa",
         "lifeExp": 45.678,
         "gdpPercap": 414.5073415,
         "pop": 3193942
       },
       {
         "country": "Libya",
         "continent": "Africa",
         "lifeExp": 73.952,
         "gdpPercap": 12057.49928,
         "pop": 6036914
       },
       {
         "country": "Madagascar",
         "continent": "Africa",
         "lifeExp": 59.443,
         "gdpPercap": 1044.770126,
         "pop": 19167654
       },
       {
         "country": "Malawi",
         "continent": "Africa",
         "lifeExp": 48.303,
         "gdpPercap": 759.3499101,
         "pop": 13327079
       },
       {
         "country": "Malaysia",
         "continent": "Asia",
         "lifeExp": 74.241,
         "gdpPercap": 12451.6558,
         "pop": 24821286
       },
       {
         "country": "Mali",
         "continent": "Africa",
         "lifeExp": 54.467,
         "gdpPercap": 1042.581557,
         "pop": 12031795
       },
       {
         "country": "Mauritania",
         "continent": "Africa",
         "lifeExp": 64.164,
         "gdpPercap": 1803.151496,
         "pop": 3270065
       },
       {
         "country": "Mauritius",
         "continent": "Africa",
         "lifeExp": 72.801,
         "gdpPercap": 10956.99112,
         "pop": 1250882
       },
       {
         "country": "Mexico",
         "continent": "Americas",
         "lifeExp": 76.195,
         "gdpPercap": 11977.57496,
         "pop": 108700891
       },
       {
         "country": "Mongolia",
         "continent": "Asia",
         "lifeExp": 66.803,
         "gdpPercap": 3095.772271,
         "pop": 2874127
       },
       {
         "country": "Montenegro",
         "continent": "Europe",
         "lifeExp": 74.543,
         "gdpPercap": 9253.896111,
         "pop": 684736
       },
       {
         "country": "Morocco",
         "continent": "Africa",
         "lifeExp": 71.164,
         "gdpPercap": 3820.17523,
         "pop": 33757175
       },
       {
         "country": "Mozambique",
         "continent": "Africa",
         "lifeExp": 42.082,
         "gdpPercap": 823.6856205,
         "pop": 19951656
       },
       {
         "country": "Myanmar",
         "continent": "Asia",
         "lifeExp": 62.069,
         "gdpPercap": 944,
         "pop": 47761980
       },
       {
         "country": "Namibia",
         "continent": "Africa",
         "lifeExp": 52.906,
         "gdpPercap": 4811.060429,
         "pop": 2055080
       },
       {
         "country": "Nepal",
         "continent": "Asia",
         "lifeExp": 63.785,
         "gdpPercap": 1091.359778,
         "pop": 28901790
       },
       {
         "country": "Netherlands",
         "continent": "Europe",
         "lifeExp": 79.762,
         "gdpPercap": 36797.93332,
         "pop": 16570613
       },
       {
         "country": "New Zealand",
         "continent": "Oceania",
         "lifeExp": 80.204,
         "gdpPercap": 25185.00911,
         "pop": 4115771
       },
       {
         "country": "Nicaragua",
         "continent": "Americas",
         "lifeExp": 72.899,
         "gdpPercap": 2749.320965,
         "pop": 5675356
       },
       {
         "country": "Niger",
         "continent": "Africa",
         "lifeExp": 56.867,
         "gdpPercap": 619.6768924,
         "pop": 12894865
       },
       {
         "country": "Nigeria",
         "continent": "Africa",
         "lifeExp": 46.859,
         "gdpPercap": 2013.977305,
         "pop": 135031164
       },
       {
         "country": "Norway",
         "continent": "Europe",
         "lifeExp": 80.196,
         "gdpPercap": 49357.19017,
         "pop": 4627926
       },
       {
         "country": "Oman",
         "continent": "Asia",
         "lifeExp": 75.64,
         "gdpPercap": 22316.19287,
         "pop": 3204897
       },
       {
         "country": "Pakistan",
         "continent": "Asia",
         "lifeExp": 65.483,
         "gdpPercap": 2605.94758,
         "pop": 169270617
       },
       {
         "country": "Panama",
         "continent": "Americas",
         "lifeExp": 75.537,
         "gdpPercap": 9809.185636,
         "pop": 3242173
       },
       {
         "country": "Paraguay",
         "continent": "Americas",
         "lifeExp": 71.752,
         "gdpPercap": 4172.838464,
         "pop": 6667147
       },
       {
         "country": "Peru",
         "continent": "Americas",
         "lifeExp": 71.421,
         "gdpPercap": 7408.905561,
         "pop": 28674757
       },
       {
         "country": "Philippines",
         "continent": "Asia",
         "lifeExp": 71.688,
         "gdpPercap": 3190.481016,
         "pop": 91077287
       },
       {
         "country": "Poland",
         "continent": "Europe",
         "lifeExp": 75.563,
         "gdpPercap": 15389.92468,
         "pop": 38518241
       },
       {
         "country": "Portugal",
         "continent": "Europe",
         "lifeExp": 78.098,
         "gdpPercap": 20509.64777,
         "pop": 10642836
       },
       {
         "country": "Puerto Rico",
         "continent": "Americas",
         "lifeExp": 78.746,
         "gdpPercap": 19328.70901,
         "pop": 3942491
       },
       {
         "country": "Reunion",
         "continent": "Africa",
         "lifeExp": 76.442,
         "gdpPercap": 7670.122558,
         "pop": 798094
       },
       {
         "country": "Romania",
         "continent": "Europe",
         "lifeExp": 72.476,
         "gdpPercap": 10808.47561,
         "pop": 22276056
       },
       {
         "country": "Rwanda",
         "continent": "Africa",
         "lifeExp": 46.242,
         "gdpPercap": 863.0884639,
         "pop": 8860588
       },
       {
         "country": "Sao Tome and Principe",
         "continent": "Africa",
         "lifeExp": 65.528,
         "gdpPercap": 1598.435089,
         "pop": 199579
       },
       {
         "country": "Saudi Arabia",
         "continent": "Asia",
         "lifeExp": 72.777,
         "gdpPercap": 21654.83194,
         "pop": 27601038
       },
       {
         "country": "Senegal",
         "continent": "Africa",
         "lifeExp": 63.062,
         "gdpPercap": 1712.472136,
         "pop": 12267493
       },
       {
         "country": "Serbia",
         "continent": "Europe",
         "lifeExp": 74.002,
         "gdpPercap": 9786.534714,
         "pop": 10150265
       },
       {
         "country": "Sierra Leone",
         "continent": "Africa",
         "lifeExp": 42.568,
         "gdpPercap": 862.5407561,
         "pop": 6144562
       },
       {
         "country": "Singapore",
         "continent": "Asia",
         "lifeExp": 79.972,
         "gdpPercap": 47143.17964,
         "pop": 4553009
       },
       {
         "country": "Slovak Republic",
         "continent": "Europe",
         "lifeExp": 74.663,
         "gdpPercap": 18678.31435,
         "pop": 5447502
       },
       {
         "country": "Slovenia",
         "continent": "Europe",
         "lifeExp": 77.926,
         "gdpPercap": 25768.25759,
         "pop": 2009245
       },
       {
         "country": "Somalia",
         "continent": "Africa",
         "lifeExp": 48.159,
         "gdpPercap": 926.1410683,
         "pop": 9118773
       },
       {
         "country": "South Africa",
         "continent": "Africa",
         "lifeExp": 49.339,
         "gdpPercap": 9269.657808,
         "pop": 43997828
       },
       {
         "country": "Spain",
         "continent": "Europe",
         "lifeExp": 80.941,
         "gdpPercap": 28821.0637,
         "pop": 40448191
       },
       {
         "country": "Sri Lanka",
         "continent": "Asia",
         "lifeExp": 72.396,
         "gdpPercap": 3970.095407,
         "pop": 20378239
       },
       {
         "country": "Sudan",
         "continent": "Africa",
         "lifeExp": 58.556,
         "gdpPercap": 2602.394995,
         "pop": 42292929
       },
       {
         "country": "Swaziland",
         "continent": "Africa",
         "lifeExp": 39.613,
         "gdpPercap": 4513.480643,
         "pop": 1133066
       },
       {
         "country": "Sweden",
         "continent": "Europe",
         "lifeExp": 80.884,
         "gdpPercap": 33859.74835,
         "pop": 9031088
       },
       {
         "country": "Switzerland",
         "continent": "Europe",
         "lifeExp": 81.701,
         "gdpPercap": 37506.41907,
         "pop": 7554661
       },
       {
         "country": "Syria",
         "continent": "Asia",
         "lifeExp": 74.143,
         "gdpPercap": 4184.548089,
         "pop": 19314747
       },
       {
         "country": "Taiwan",
         "continent": "Asia",
         "lifeExp": 78.4,
         "gdpPercap": 28718.27684,
         "pop": 23174294
       },
       {
         "country": "Tanzania",
         "continent": "Africa",
         "lifeExp": 52.517,
         "gdpPercap": 1107.482182,
         "pop": 38139640
       },
       {
         "country": "Thailand",
         "continent": "Asia",
         "lifeExp": 70.616,
         "gdpPercap": 7458.396327,
         "pop": 65068149
       },
       {
         "country": "Togo",
         "continent": "Africa",
         "lifeExp": 58.42,
         "gdpPercap": 882.9699438,
         "pop": 5701579
       },
       {
         "country": "Trinidad and Tobago",
         "continent": "Americas",
         "lifeExp": 69.819,
         "gdpPercap": 18008.50924,
         "pop": 1056608
       },
       {
         "country": "Tunisia",
         "continent": "Africa",
         "lifeExp": 73.923,
         "gdpPercap": 7092.923025,
         "pop": 10276158
       },
       {
         "country": "Turkey",
         "continent": "Europe",
         "lifeExp": 71.777,
         "gdpPercap": 8458.276384,
         "pop": 71158647
       },
       {
         "country": "Uganda",
         "continent": "Africa",
         "lifeExp": 51.542,
         "gdpPercap": 1056.380121,
         "pop": 29170398
       },
       {
         "country": "United Kingdom",
         "continent": "Europe",
         "lifeExp": 79.425,
         "gdpPercap": 33203.26128,
         "pop": 60776238
       },
       {
         "country": "United States",
         "continent": "Americas",
         "lifeExp": 78.242,
         "gdpPercap": 42951.65309,
         "pop": 301139947
       },
       {
         "country": "Uruguay",
         "continent": "Americas",
         "lifeExp": 76.384,
         "gdpPercap": 10611.46299,
         "pop": 3447496
       },
       {
         "country": "Venezuela",
         "continent": "Americas",
         "lifeExp": 73.747,
         "gdpPercap": 11415.80569,
         "pop": 26084662
       },
       {
         "country": "Vietnam",
         "continent": "Asia",
         "lifeExp": 74.249,
         "gdpPercap": 2441.576404,
         "pop": 85262356
       },
       {
         "country": "West Bank and Gaza",
         "continent": "Asia",
         "lifeExp": 73.422,
         "gdpPercap": 3025.349798,
         "pop": 4018332
       },
       {
         "country": "Yemen, Rep.",
         "continent": "Asia",
         "lifeExp": 62.698,
         "gdpPercap": 2280.769906,
         "pop": 22211743
       },
       {
         "country": "Zambia",
         "continent": "Africa",
         "lifeExp": 42.384,
         "gdpPercap": 1271.211593,
         "pop": 11746035
       },
       {
         "country": "Zimbabwe",
         "continent": "Africa",
         "lifeExp": 43.487,
         "gdpPercap": 469.7092981,
         "pop": 12311143
       }
      ]
      
      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, 'Stats'.
    2. Go to the Query page and enter the following query to fetch the required fields:
      Query
      Copy Code
      $.[*]
          
    3. Click OK to save the changes.

    Create a Chart

    We will use the Chart Wizard dialog to configure chart data values. 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 'Stats' and the Chart Type as 'Scatter'.
    3. Click Next to proceed. Here, you need to specify the scatter settings.
    4. In Choose Data values section, we will define two data values to display 'GDP Per Capita' and 'Life Expectancy' along the horizontal and vertical axes of the chart.
      1. From the drop-down, set the X Field to =[gdpPercap].
      2. From the drop-down, set the Y Field to =[lifeExp].
    5. Click Next to preview your chart.
       Multi Category Scatter Chart at Preview Time
      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 Encodings page.
    3. Navigate to the Color tab, add a new value and set the Expression to ={continent}, so that the color of the data points in the chart varies by continent.
    4. Then, go to the Shape tab, add a new value and set the Expression to ={continent} to display the shape of the data points based on the continent values.
    5. 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: Life Expectancy
      • Font > Size: 10pt
      • Font > Color: DimGray
    3. Go to the Labels page > Appearance tab and set the following properties.
      • Font > Size: 10pt
      • Font > Color: DimGray
    4. Go to the Line page and uncheck the Show Line option.
    5. Go to the Major Gridline page and set the following properties.
      • Grid Interval: 20
      • Show Grid: Check-on
      • Grid appearance > Width: 0.25pt
      • Grid appearance > Color: #cccccc
      • Grid appearance > Style: Dashed
    6. 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 set the following properties.
      • Title: GDP per Capita
      • Font > Size: 10pt
      • Font > Color: DimGray
    3. Go to the Labels page > General tab and set the Format to 'Currency (with 0 decimal points)'.
    4. Then, navigate to the Appearance page and set the following properties.
      • Font > Size: 10pt
      • Font > Color: DimGray
    5. Go to the Line page and set the following properties:
      • Color: #cccccc
      • Width: 2pt
    6. Go to the Scale page and set the Scale Type to 'Logarithmic'.
    7. 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, select Custom from the drop-down, and add the below colors.
      • #f26324
      • #1fd537
      • #e40010
      • #8fcd37
      • #00b32c
    3. Click OK to complete setting up the custom palette.

    Legend - Color

    1. To open the smart panel for the legend, right-click 'Legend - Color' on the Report Explorer and choose Property Dialog.
    2. Go to the Layout page and set the following properties.
      • Position: Top
      • Orientation: Horizontal
    3. Go to the Appearance page and set the following properties.
      • Font > Size: 10pt
      • Font > Color: DimGray
    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 Text to 'Life Expectancy vs. GDP per Capita'.
    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 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.