Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<head>
  <title>
    Economic Freedom Index:
    Attributes per className (2018)
  </title>
</head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://yui-s.yahooapis.com/pure/0.5.0/pure-min.css">
<link rel="stylesheet" href="https://rawgit.com/tpreusse/radar-chart-d3/master/src/radar-chart.css">

<body>
<style>
body {
  padding: 20px;
}
</style>

<style>
.radar-chart .area {
  fill-opacity: 0.7;
}
.radar-chart.focus .area {
  fill-opacity: 0.3;
}
.radar-chart.focus .area.focused {
  fill-opacity: 0.9;
}
.area.Belgium, .Belgium .circle {
  fill: #FFD700;
  stroke: none;
}
.area.Chile, .Chile .circle {
  fill: #ADD8E6;
  stroke: none;
}
</style>

<script src="https://d3js.org/d3.v3.js"></script>
<script src="https://rawgit.com/tpreusse/radar-chart-d3/master/src/radar-chart.js"></script>

<select id="selectButton"></select>
<h2>Economic Freedom Index:<br>
  Attributes per className (2018)</h2>
<div class="chart-container"></div>


<script>
RadarChart.defaultConfig.color = function() {};
RadarChart.defaultConfig.radius = 3;
RadarChart.defaultConfig.w = 400;
RadarChart.defaultConfig.h = 400;

/*
var dataxx = [
  {
    className: 'germany', // optional can be used for styling
    axes: [
      {axis: "strength", value: 13}, 
      {axis: "intelligence", value: 6}, 
      {axis: "charisma", value: 5},  
      {axis: "dexterity", value: 9},  
      {axis: "luck", value: 2}
    ]
  },
  {
    className: 'argentina',
    axes: [
      {axis: "strength", value: 6}, 
      {axis: "intelligence", value: 7}, 
      {axis: "charisma", value: 10},  
      {axis: "dexterity", value: 13},  
      {axis: "luck", value: 9}
    ]
  }
];
*/



const datafull = [
{"className": "Albania",
"axes": [{"axis": "Size of Government", "value": 8.09},
{"axis": "Legal System & Property Rights", "value": 5.17},
{"axis": "Sound.Money", "value": 9.82},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.2},
{"axis": "Regulation", "value": 7.72}]},
{ "className": "Algeria",
"axes": [{"axis": "Size of Government", "value": 4.24},
{"axis": "Legal System & Property Rights", "value": 4.53},
{"axis": "Sound.Money", "value": 7.92},
{"axis": "Freedom.to.Trade.Internationally", "value": 2.58},
{"axis": "Regulation", "value": 5.56}]},{ "className": "Angola",
"axes": [{"axis": "Size of Government", "value": 7.31},
{"axis": "Legal System & Property Rights", "value": 3.43},
{"axis": "Sound.Money", "value": 4.7},
{"axis": "Freedom.to.Trade.Internationally", "value": 2.92},
{"axis": "Regulation", "value": 5.39}]},
{ "className": "Argentina",
"axes": [{"axis": "Size of Government", "value": 6.05},
{"axis": "Legal System & Property Rights", "value": 4.63},
{"axis": "Sound.Money", "value": 5.07},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.41},
{"axis": "Regulation", "value": 5.76}]},
{ "className": "Armenia",
"axes": [{"axis": "Size of Government", "value": 7.85},
{"axis": "Legal System & Property Rights", "value": 5.98},
{"axis": "Sound.Money", "value": 9.56},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.46},
{"axis": "Regulation", "value": 7.76}]},
{ "className": "Australia",
"axes": [{"axis": "Size of Government", "value": 6.9},
{"axis": "Legal System & Property Rights", "value": 7.93},
{"axis": "Sound.Money", "value": 9.66},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.94},
{"axis": "Regulation", "value": 8.73}]},
{ "className": "Austria",
"axes": [{"axis": "Size of Government", "value": 5.66},
{"axis": "Legal System & Property Rights", "value": 7.95},
{"axis": "Sound.Money", "value": 9.36},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.38},
{"axis": "Regulation", "value": 7.67}]},
{ "className": "Azerbaijan",
"axes": [{"axis": "Size of Government", "value": 5.22},
{"axis": "Legal System & Property Rights", "value": 4.72},
{"axis": "Sound.Money", "value": 7.32},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.24},
{"axis": "Regulation", "value": 7.34}]},
{ "className": "Bahamas The",
"axes": [{"axis": "Size of Government", "value": 9.1},
{"axis": "Legal System & Property Rights", "value": 6.17},
{"axis": "Sound.Money", "value": 8.11},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.25},
{"axis": "Regulation", "value": 8.46}]},
{ "className": "Bahrain",
"axes": [{"axis": "Size of Government", "value": 6.62},
{"axis": "Legal System & Property Rights", "value": 4.72},
{"axis": "Sound.Money", "value": 9.18},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.58},
{"axis": "Regulation", "value": 7.69}]},
{ "className": "Bangladesh",
"axes": [{"axis": "Size of Government", "value": 8.08},
{"axis": "Legal System & Property Rights", "value": 3.04},
{"axis": "Sound.Money", "value": 6.93},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.56},
{"axis": "Regulation", "value": 6.61}]},
{ "className": "Barbados",
"axes": [{"axis": "Size of Government", "value": 5.49},
{"axis": "Legal System & Property Rights", "value": 5.7},
{"axis": "Sound.Money", "value": 6.47},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.8},
{"axis": "Regulation", "value": 6.65}]},
{ "className": "Belarus",
"axes": [{"axis": "Size of Government", "value": 5.96},
{"axis": "Legal System & Property Rights", "value": 4.72},
{"axis": "Sound.Money", "value": 7.27},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.75},
{"axis": "Regulation", "value": 7.06}]},
{ "className": "Belgium",
"axes": [{"axis": "Size of Government", "value": 4.9},
{"axis": "Legal System & Property Rights", "value": 7.12},
{"axis": "Sound.Money", "value": 9.33},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.28},
{"axis": "Regulation", "value": 8.19}]},
{ "className": "Belize",
"axes": [{"axis": "Size of Government", "value": 7.29},
{"axis": "Legal System & Property Rights", "value": 4.75},
{"axis": "Sound.Money", "value": 7.07},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.06},
{"axis": "Regulation", "value": 7.83}]},
{ "className": "Benin",
"axes": [{"axis": "Size of Government", "value": 6.62},
{"axis": "Legal System & Property Rights", "value": 4.68},
{"axis": "Sound.Money", "value": 7.06},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.84},
{"axis": "Regulation", "value": 6.8}]},
{ "className": "Bhutan",
"axes": [{"axis": "Size of Government", "value": 6.66},
{"axis": "Legal System & Property Rights", "value": 5.66},
{"axis": "Sound.Money", "value": 7.07},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.09},
{"axis": "Regulation", "value": 7.68}]},
{ "className": "Bolivia",
"axes": [{"axis": "Size of Government", "value": 5.97},
{"axis": "Legal System & Property Rights", "value": 3.89},
{"axis": "Sound.Money", "value": 9.36},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.02},
{"axis": "Regulation", "value": 5.25}]},
{ "className": "Bosnia and Herzegovina",
"axes": [{"axis": "Size of Government", "value": 6.45},
{"axis": "Legal System & Property Rights", "value": 4.57},
{"axis": "Sound.Money", "value": 8.3},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.69},
{"axis": "Regulation", "value": 7.48}]},
{ "className": "Botswana",
"axes": [{"axis": "Size of Government", "value": 6.66},
{"axis": "Legal System & Property Rights", "value": 6.07},
{"axis": "Sound.Money", "value": 9.35},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.89},
{"axis": "Regulation", "value": 8.05}]},
{ "className": "Brazil",
"axes": [{"axis": "Size of Government", "value": 6.86},
{"axis": "Legal System & Property Rights", "value": 5.02},
{"axis": "Sound.Money", "value": 9.31},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.84},
{"axis": "Regulation", "value": 4.77}]},
{ "className": "Brunei Darussalam",
"axes": [{"axis": "Size of Government", "value": 3.33},
{"axis": "Legal System & Property Rights", "value": 5.4},
{"axis": "Sound.Money", "value": 8.56},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.14},
{"axis": "Regulation", "value": 8.55}]},
{ "className": "Bulgaria",
"axes": [{"axis": "Size of Government", "value": 6.87},
{"axis": "Legal System & Property Rights", "value": 5.92},
{"axis": "Sound.Money", "value": 9.56},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.47},
{"axis": "Regulation", "value": 7.87}]},
{ "className": "Burkina Faso",
"axes": [{"axis": "Size of Government", "value": 5.19},
{"axis": "Legal System & Property Rights", "value": 4.14},
{"axis": "Sound.Money", "value": 6.54},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.27},
{"axis": "Regulation", "value": 7.12}]},
{ "className": "Burundi",
"axes": [{"axis": "Size of Government", "value": 6.84},
{"axis": "Legal System & Property Rights", "value": 4.34},
{"axis": "Sound.Money", "value": 8.81},
{"axis": "Freedom.to.Trade.Internationally", "value": 3.39},
{"axis": "Regulation", "value": 6.33}]},
{ "className": "Cabo Verde",
"axes": [{"axis": "Size of Government", "value": 7.47},
{"axis": "Legal System & Property Rights", "value": 6.25},
{"axis": "Sound.Money", "value": 8.44},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.65},
{"axis": "Regulation", "value": 7.26}]},
{ "className": "Cambodia",
"axes": [{"axis": "Size of Government", "value": 8.42},
{"axis": "Legal System & Property Rights", "value": 3.85},
{"axis": "Sound.Money", "value": 9.46},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.74},
{"axis": "Regulation", "value": 6.95}]},
{ "className": "Cameroon",
"axes": [{"axis": "Size of Government", "value": 7.34},
{"axis": "Legal System & Property Rights", "value": 3.07},
{"axis": "Sound.Money", "value": 7.27},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.12},
{"axis": "Regulation", "value": 6.47}]},
{ "className": "Canada",
"axes": [{"axis": "Size of Government", "value": 6.69},
{"axis": "Legal System & Property Rights", "value": 7.74},
{"axis": "Sound.Money", "value": 9.59},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.09},
{"axis": "Regulation", "value": 8.75}]},
{ "className": "Central African Republic",
"axes": [{"axis": "Size of Government", "value": 5.95},
{"axis": "Legal System & Property Rights", "value": 3.39},
{"axis": "Sound.Money", "value": 6.48},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.15},
{"axis": "Regulation", "value": 5.39}]},
{ "className": "Chad",
"axes": [{"axis": "Size of Government", "value": 8.94},
{"axis": "Legal System & Property Rights", "value": 3.23},
{"axis": "Sound.Money", "value": 6.37},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.05},
{"axis": "Regulation", "value": 4.93}]},
{ "className": "Chile",
"axes": [{"axis": "Size of Government", "value": 8.21},
{"axis": "Legal System & Property Rights", "value": 6.73},
{"axis": "Sound.Money", "value": 9.6},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.12},
{"axis": "Regulation", "value": 7.12}]},
{ "className": "China",
"axes": [{"axis": "Size of Government", "value": 4.85},
{"axis": "Legal System & Property Rights", "value": 4.93},
{"axis": "Sound.Money", "value": 8.32},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.52},
{"axis": "Regulation", "value": 6.44}]},
{ "className": "Colombia",
"axes": [{"axis": "Size of Government", "value": 6.64},
{"axis": "Legal System & Property Rights", "value": 4.57},
{"axis": "Sound.Money", "value": 8.28},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.62},
{"axis": "Regulation", "value": 7.41}]},
{ "className": "Congo Dem. Rep.",
"axes": [{"axis": "Size of Government", "value": 7.57},
{"axis": "Legal System & Property Rights", "value": 2.89},
{"axis": "Sound.Money", "value": 4.78},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.21},
{"axis": "Regulation", "value": 5.31}]},
{ "className": "Congo Rep.",
"axes": [{"axis": "Size of Government", "value": 6.7},
{"axis": "Legal System & Property Rights", "value": 3.27},
{"axis": "Sound.Money", "value": 4.9},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.4},
{"axis": "Regulation", "value": 4.9}]},
{ "className": "Costa Rica",
"axes": [{"axis": "Size of Government", "value": 7.4},
{"axis": "Legal System & Property Rights", "value": 6.16},
{"axis": "Sound.Money", "value": 9.71},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.04},
{"axis": "Regulation", "value": 6.81}]},
{ "className": "Cote d'Ivoire",
"axes": [{"axis": "Size of Government", "value": 6.2},
{"axis": "Legal System & Property Rights", "value": 4.59},
{"axis": "Sound.Money", "value": 7.32},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.41},
{"axis": "Regulation", "value": 6.92}]},
{ "className": "Croatia",
"axes": [{"axis": "Size of Government", "value": 5.79},
{"axis": "Legal System & Property Rights", "value": 5.98},
{"axis": "Sound.Money", "value": 9.37},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.22},
{"axis": "Regulation", "value": 7.46}]},
{ "className": "Cyprus",
"axes": [{"axis": "Size of Government", "value": 7.36},
{"axis": "Legal System & Property Rights", "value": 6.22},
{"axis": "Sound.Money", "value": 9.22},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.48},
{"axis": "Regulation", "value": 7.93}]},
{ "className": "Czech Republic",
"axes": [{"axis": "Size of Government", "value": 6.64},
{"axis": "Legal System & Property Rights", "value": 6.62},
{"axis": "Sound.Money", "value": 9.02},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.33},
{"axis": "Regulation", "value": 8.41}]},
{ "className": "Denmark",
"axes": [{"axis": "Size of Government", "value": 5.48},
{"axis": "Legal System & Property Rights", "value": 8.16},
{"axis": "Sound.Money", "value": 9.68},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.67},
{"axis": "Regulation", "value": 8.51}]},
{ "className": "Dominican Republic",
"axes": [{"axis": "Size of Government", "value": 8.77},
{"axis": "Legal System & Property Rights", "value": 4.8},
{"axis": "Sound.Money", "value": 9.57},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.14},
{"axis": "Regulation", "value": 6.6}]},
{ "className": "Ecuador",
"axes": [{"axis": "Size of Government", "value": 6.56},
{"axis": "Legal System & Property Rights", "value": 4.55},
{"axis": "Sound.Money", "value": 8.14},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.9},
{"axis": "Regulation", "value": 6.16}]},
{ "className": "Egypt Arab Rep.",
"axes": [{"axis": "Size of Government", "value": 4.92},
{"axis": "Legal System & Property Rights", "value": 3.76},
{"axis": "Sound.Money", "value": 7.56},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.84},
{"axis": "Regulation", "value": 4.8}]},
{ "className": "El Salvador",
"axes": [{"axis": "Size of Government", "value": 8.76},
{"axis": "Legal System & Property Rights", "value": 4.34},
{"axis": "Sound.Money", "value": 9.86},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.64},
{"axis": "Regulation", "value": 6.46}]},
{ "className": "Estonia",
"axes": [{"axis": "Size of Government", "value": 6.35},
{"axis": "Legal System & Property Rights", "value": 7.43},
{"axis": "Sound.Money", "value": 9.26},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.58},
{"axis": "Regulation", "value": 8.17}]},
{ "className": "Eswatini",
"axes": [{"axis": "Size of Government", "value": 5.56},
{"axis": "Legal System & Property Rights", "value": 4.57},
{"axis": "Sound.Money", "value": 7.63},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.03},
{"axis": "Regulation", "value": 7.55}]},
{ "className": "Ethiopia",
"axes": [{"axis": "Size of Government", "value": 5.79},
{"axis": "Legal System & Property Rights", "value": 4.21},
{"axis": "Sound.Money", "value": 6.26},
{"axis": "Freedom.to.Trade.Internationally", "value": 4.91},
{"axis": "Regulation", "value": 6.89}]},
{ "className": "Fiji",
"axes": [{"axis": "Size of Government", "value": 5.67},
{"axis": "Legal System & Property Rights", "value": 4.96},
{"axis": "Sound.Money", "value": 7.01},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.94},
{"axis": "Regulation", "value": 8.93}]},
{ "className": "Finland",
"axes": [{"axis": "Size of Government", "value": 4.89},
{"axis": "Legal System & Property Rights", "value": 8.12},
{"axis": "Sound.Money", "value": 9.36},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.4},
{"axis": "Regulation", "value": 8.03}]},
{ "className": "France",
"axes": [{"axis": "Size of Government", "value": 4.95},
{"axis": "Legal System & Property Rights", "value": 6.68},
{"axis": "Sound.Money", "value": 9.36},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.46},
{"axis": "Regulation", "value": 7.58}]},
{ "className": "Gabon",
"axes": [{"axis": "Size of Government", "value": 7.05},
{"axis": "Legal System & Property Rights", "value": 3.5},
{"axis": "Sound.Money", "value": 6.26},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.43},
{"axis": "Regulation", "value": 7.07}]},
{ "className": "Gambia The",
"axes": [{"axis": "Size of Government", "value": 6.87},
{"axis": "Legal System & Property Rights", "value": 5.05},
{"axis": "Sound.Money", "value": 9.45},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.21},
{"axis": "Regulation", "value": 7.11}]},
{ "className": "Georgia",
"axes": [{"axis": "Size of Government", "value": 7.86},
{"axis": "Legal System & Property Rights", "value": 6.47},
{"axis": "Sound.Money", "value": 9.3},
{"axis": "Freedom.to.Trade.Internationally", "value": 9.02},
{"axis": "Regulation", "value": 8.27}]},
{ "className": "Germany",
"axes": [{"axis": "Size of Government", "value": 6.13},
{"axis": "Legal System & Property Rights", "value": 7.38},
{"axis": "Sound.Money", "value": 9.39},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.23},
{"axis": "Regulation", "value": 8.13}]},
{ "className": "Ghana",
"axes": [{"axis": "Size of Government", "value": 8.6},
{"axis": "Legal System & Property Rights", "value": 5.11},
{"axis": "Sound.Money", "value": 6.3},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.13},
{"axis": "Regulation", "value": 7.13}]},
{ "className": "Greece",
"axes": [{"axis": "Size of Government", "value": 4.95},
{"axis": "Legal System & Property Rights", "value": 5.71},
{"axis": "Sound.Money", "value": 7.93},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.82},
{"axis": "Regulation", "value": 7.17}]},
{ "className": "Guatemala",
"axes": [{"axis": "Size of Government", "value": 9.51},
{"axis": "Legal System & Property Rights", "value": 4.73},
{"axis": "Sound.Money", "value": 9.49},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.29},
{"axis": "Regulation", "value": 6.48}]},
{ "className": "Guinea",
"axes": [{"axis": "Size of Government", "value": 4.54},
{"axis": "Legal System & Property Rights", "value": 3.7},
{"axis": "Sound.Money", "value": 7.39},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.34},
{"axis": "Regulation", "value": 6.87}]},
{ "className": "Guinea-Bissau",
"axes": [{"axis": "Size of Government", "value": 6.06},
{"axis": "Legal System & Property Rights", "value": 3.03},
{"axis": "Sound.Money", "value": 6.77},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.76},
{"axis": "Regulation", "value": 5.7}]},
{ "className": "Guyana",
"axes": [{"axis": "Size of Government", "value": 6.1},
{"axis": "Legal System & Property Rights", "value": 5.22},
{"axis": "Sound.Money", "value": 8.33},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.71},
{"axis": "Regulation", "value": 7.04}]},
{ "className": "Haiti",
"axes": [{"axis": "Size of Government", "value": 8.44},
{"axis": "Legal System & Property Rights", "value": 2.57},
{"axis": "Sound.Money", "value": 7.03},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.8},
{"axis": "Regulation", "value": 7.06}]},
{ "className": "Honduras",
"axes": [{"axis": "Size of Government", "value": 8.98},
{"axis": "Legal System & Property Rights", "value": 4.22},
{"axis": "Sound.Money", "value": 9.4},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.83},
{"axis": "Regulation", "value": 6.97}]},
{ "className": "Hong Kong SAR China",
"axes": [{"axis": "Size of Government", "value": 8.48},
{"axis": "Legal System & Property Rights", "value": 7.49},
{"axis": "Sound.Money", "value": 9.79},
{"axis": "Freedom.to.Trade.Internationally", "value": 9.49},
{"axis": "Regulation", "value": 9.47}]},
{ "className": "Hungary",
"axes": [{"axis": "Size of Government", "value": 5.74},
{"axis": "Legal System & Property Rights", "value": 6.27},
{"axis": "Sound.Money", "value": 9.48},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.29},
{"axis": "Regulation", "value": 7.42}]},
{ "className": "Iceland",
"axes": [{"axis": "Size of Government", "value": 5.97},
{"axis": "Legal System & Property Rights", "value": 8.08},
{"axis": "Sound.Money", "value": 9.37},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.36},
{"axis": "Regulation", "value": 7.74}]},
{ "className": "India",
"axes": [{"axis": "Size of Government", "value": 7.16},
{"axis": "Legal System & Property Rights", "value": 5.07},
{"axis": "Sound.Money", "value": 8.34},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.71},
{"axis": "Regulation", "value": 6.53}]},
{ "className": "Indonesia",
"axes": [{"axis": "Size of Government", "value": 8.69},
{"axis": "Legal System & Property Rights", "value": 5.11},
{"axis": "Sound.Money", "value": 9.7},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.88},
{"axis": "Regulation", "value": 6.56}]},
{ "className": "Iran Islamic Rep.",
"axes": [{"axis": "Size of Government", "value": 5.87},
{"axis": "Legal System & Property Rights", "value": 4.21},
{"axis": "Sound.Money", "value": 6.17},
{"axis": "Freedom.to.Trade.Internationally", "value": 2.29},
{"axis": "Regulation", "value": 5.45}]},
{ "className": "Iraq",
"axes": [{"axis": "Size of Government", "value": 5.02},
{"axis": "Legal System & Property Rights", "value": 3.32},
{"axis": "Sound.Money", "value": 7.84},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.8},
{"axis": "Regulation", "value": 6.07}]},
{ "className": "Ireland",
"axes": [{"axis": "Size of Government", "value": 6.52},
{"axis": "Legal System & Property Rights", "value": 7.4},
{"axis": "Sound.Money", "value": 9.44},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.72},
{"axis": "Regulation", "value": 8.55}]},
{ "className": "Israel",
"axes": [{"axis": "Size of Government", "value": 6.57},
{"axis": "Legal System & Property Rights", "value": 5.87},
{"axis": "Sound.Money", "value": 9.81},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.45},
{"axis": "Regulation", "value": 7.4}]},
{ "className": "Italy",
"axes": [{"axis": "Size of Government", "value": 5.54},
{"axis": "Legal System & Property Rights", "value": 6.35},
{"axis": "Sound.Money", "value": 9.35},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.59},
{"axis": "Regulation", "value": 7.75}]},
{ "className": "Jamaica",
"axes": [{"axis": "Size of Government", "value": 8.45},
{"axis": "Legal System & Property Rights", "value": 5.67},
{"axis": "Sound.Money", "value": 9.14},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.06},
{"axis": "Regulation", "value": 8.15}]},
{ "className": "Japan",
"axes": [{"axis": "Size of Government", "value": 5.85},
{"axis": "Legal System & Property Rights", "value": 7.34},
{"axis": "Sound.Money", "value": 9.51},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.3},
{"axis": "Regulation", "value": 8.4}]},
{ "className": "Jordan",
"axes": [{"axis": "Size of Government", "value": 7.87},
{"axis": "Legal System & Property Rights", "value": 4.66},
{"axis": "Sound.Money", "value": 9.59},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.01},
{"axis": "Regulation", "value": 7.95}]},
{ "className": "Kazakhstan",
"axes": [{"axis": "Size of Government", "value": 7.67},
{"axis": "Legal System & Property Rights", "value": 5.0},
{"axis": "Sound.Money", "value": 8.79},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.19},
{"axis": "Regulation", "value": 7.96}]},
{ "className": "Kenya",
"axes": [{"axis": "Size of Government", "value": 6.38},
{"axis": "Legal System & Property Rights", "value": 5.04},
{"axis": "Sound.Money", "value": 9.27},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.69},
{"axis": "Regulation", "value": 6.82}]},
{ "className": "Korea Rep.",
"axes": [{"axis": "Size of Government", "value": 6.81},
{"axis": "Legal System & Property Rights", "value": 6.55},
{"axis": "Sound.Money", "value": 9.61},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.98},
{"axis": "Regulation", "value": 7.49}]},
{ "className": "Kuwait",
"axes": [{"axis": "Size of Government", "value": 5.69},
{"axis": "Legal System & Property Rights", "value": 4.92},
{"axis": "Sound.Money", "value": 8.16},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.28},
{"axis": "Regulation", "value": 6.97}]},
{ "className": "Kyrgyz Republic",
"axes": [{"axis": "Size of Government", "value": 7.12},
{"axis": "Legal System & Property Rights", "value": 4.35},
{"axis": "Sound.Money", "value": 9.24},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.21},
{"axis": "Regulation", "value": 7.01}]},
{ "className": "Lao PDR",
"axes": [{"axis": "Size of Government", "value": 7.11},
{"axis": "Legal System & Property Rights", "value": 4.75},
{"axis": "Sound.Money", "value": 7.52},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.28},
{"axis": "Regulation", "value": 6.43}]},
{ "className": "Latvia",
"axes": [{"axis": "Size of Government", "value": 6.55},
{"axis": "Legal System & Property Rights", "value": 6.81},
{"axis": "Sound.Money", "value": 9.27},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.61},
{"axis": "Regulation", "value": 8.19}]},
{ "className": "Lebanon",
"axes": [{"axis": "Size of Government", "value": 8.29},
{"axis": "Legal System & Property Rights", "value": 3.89},
{"axis": "Sound.Money", "value": 8.99},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.74},
{"axis": "Regulation", "value": 6.47}]},
{ "className": "Lesotho",
"axes": [{"axis": "Size of Government", "value": 6.19},
{"axis": "Legal System & Property Rights", "value": 4.92},
{"axis": "Sound.Money", "value": 8.0},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.6},
{"axis": "Regulation", "value": 7.54}]},
{ "className": "Liberia",
"axes": [{"axis": "Size of Government", "value": 6.46},
{"axis": "Legal System & Property Rights", "value": 4.29},
{"axis": "Sound.Money", "value": 8.08},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.37},
{"axis": "Regulation", "value": 6.21}]},
{ "className": "Libya",
"axes": [{"axis": "Size of Government", "value": 4.71},
{"axis": "Legal System & Property Rights", "value": 3.77},
{"axis": "Sound.Money", "value": 7.17},
{"axis": "Freedom.to.Trade.Internationally", "value": 1.98},
{"axis": "Regulation", "value": 5.98}]},
{ "className": "Lithuania",
"axes": [{"axis": "Size of Government", "value": 7.54},
{"axis": "Legal System & Property Rights", "value": 7.0},
{"axis": "Sound.Money", "value": 9.25},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.48},
{"axis": "Regulation", "value": 8.22}]},
{ "className": "Luxembourg",
"axes": [{"axis": "Size of Government", "value": 5.55},
{"axis": "Legal System & Property Rights", "value": 7.77},
{"axis": "Sound.Money", "value": 9.3},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.15},
{"axis": "Regulation", "value": 7.96}]},
{ "className": "Madagascar",
"axes": [{"axis": "Size of Government", "value": 7.51},
{"axis": "Legal System & Property Rights", "value": 2.92},
{"axis": "Sound.Money", "value": 7.65},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.71},
{"axis": "Regulation", "value": 6.19}]},
{ "className": "Malawi",
"axes": [{"axis": "Size of Government", "value": 5.9},
{"axis": "Legal System & Property Rights", "value": 5.33},
{"axis": "Sound.Money", "value": 6.86},
{"axis": "Freedom.to.Trade.Internationally", "value": 4.62},
{"axis": "Regulation", "value": 6.24}]},
{ "className": "Malaysia",
"axes": [{"axis": "Size of Government", "value": 6.55},
{"axis": "Legal System & Property Rights", "value": 5.48},
{"axis": "Sound.Money", "value": 9.71},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.63},
{"axis": "Regulation", "value": 8.54}]},
{ "className": "Mali",
"axes": [{"axis": "Size of Government", "value": 5.71},
{"axis": "Legal System & Property Rights", "value": 3.53},
{"axis": "Sound.Money", "value": 7.34},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.67},
{"axis": "Regulation", "value": 6.39}]},
{ "className": "Malta",
"axes": [{"axis": "Size of Government", "value": 6.94},
{"axis": "Legal System & Property Rights", "value": 6.14},
{"axis": "Sound.Money", "value": 9.51},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.64},
{"axis": "Regulation", "value": 8.47}]},
{ "className": "Mauritania",
"axes": [{"axis": "Size of Government", "value": 6.16},
{"axis": "Legal System & Property Rights", "value": 3.96},
{"axis": "Sound.Money", "value": 8.02},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.95},
{"axis": "Regulation", "value": 6.98}]},
{ "className": "Mauritius",
"axes": [{"axis": "Size of Government", "value": 8.15},
{"axis": "Legal System & Property Rights", "value": 6.46},
{"axis": "Sound.Money", "value": 9.52},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.53},
{"axis": "Regulation", "value": 8.36}]},
{ "className": "Mexico",
"axes": [{"axis": "Size of Government", "value": 8.38},
{"axis": "Legal System & Property Rights", "value": 4.73},
{"axis": "Sound.Money", "value": 8.13},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.66},
{"axis": "Regulation", "value": 7.14}]},
{ "className": "Moldova",
"axes": [{"axis": "Size of Government", "value": 7.29},
{"axis": "Legal System & Property Rights", "value": 4.7},
{"axis": "Sound.Money", "value": 8.21},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.28},
{"axis": "Regulation", "value": 7.46}]},
{ "className": "Mongolia",
"axes": [{"axis": "Size of Government", "value": 7.43},
{"axis": "Legal System & Property Rights", "value": 5.97},
{"axis": "Sound.Money", "value": 8.92},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.1},
{"axis": "Regulation", "value": 7.71}]},
{ "className": "Montenegro",
"axes": [{"axis": "Size of Government", "value": 5.72},
{"axis": "Legal System & Property Rights", "value": 5.22},
{"axis": "Sound.Money", "value": 8.26},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.34},
{"axis": "Regulation", "value": 7.14}]},
{ "className": "Morocco",
"axes": [{"axis": "Size of Government", "value": 6.37},
{"axis": "Legal System & Property Rights", "value": 5.6},
{"axis": "Sound.Money", "value": 7.22},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.88},
{"axis": "Regulation", "value": 7.43}]},
{ "className": "Mozambique",
"axes": [{"axis": "Size of Government", "value": 5.48},
{"axis": "Legal System & Property Rights", "value": 4.36},
{"axis": "Sound.Money", "value": 7.47},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.15},
{"axis": "Regulation", "value": 6.23}]},
{ "className": "Myanmar",
"axes": [{"axis": "Size of Government", "value": 7.5},
{"axis": "Legal System & Property Rights", "value": 3.72},
{"axis": "Sound.Money", "value": 6.73},
{"axis": "Freedom.to.Trade.Internationally", "value": 4.89},
{"axis": "Regulation", "value": 6.22}]},
{ "className": "Namibia",
"axes": [{"axis": "Size of Government", "value": 5.56},
{"axis": "Legal System & Property Rights", "value": 6.18},
{"axis": "Sound.Money", "value": 6.73},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.91},
{"axis": "Regulation", "value": 8.21}]},
{ "className": "Nepal",
"axes": [{"axis": "Size of Government", "value": 6.92},
{"axis": "Legal System & Property Rights", "value": 4.64},
{"axis": "Sound.Money", "value": 6.89},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.59},
{"axis": "Regulation", "value": 7.36}]},
{ "className": "Netherlands",
"axes": [{"axis": "Size of Government", "value": 5.23},
{"axis": "Legal System & Property Rights", "value": 7.94},
{"axis": "Sound.Money", "value": 9.31},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.62},
{"axis": "Regulation", "value": 7.99}]},
{ "className": "New Zealand",
"axes": [{"axis": "Size of Government", "value": 6.62},
{"axis": "Legal System & Property Rights", "value": 8.25},
{"axis": "Sound.Money", "value": 9.79},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.86},
{"axis": "Regulation", "value": 9.14}]},
{ "className": "Nicaragua",
"axes": [{"axis": "Size of Government", "value": 6.62},
{"axis": "Legal System & Property Rights", "value": 4.26},
{"axis": "Sound.Money", "value": 9.42},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.14},
{"axis": "Regulation", "value": 6.82}]},
{ "className": "Niger",
"axes": [{"axis": "Size of Government", "value": 6.32},
{"axis": "Legal System & Property Rights", "value": 3.87},
{"axis": "Sound.Money", "value": 6.94},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.76},
{"axis": "Regulation", "value": 6.33}]},
{ "className": "Nigeria",
"axes": [{"axis": "Size of Government", "value": 8.18},
{"axis": "Legal System & Property Rights", "value": 3.58},
{"axis": "Sound.Money", "value": 8.97},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.03},
{"axis": "Regulation", "value": 7.88}]},
{ "className": "North Macedonia",
"axes": [{"axis": "Size of Government", "value": 7.2},
{"axis": "Legal System & Property Rights", "value": 4.56},
{"axis": "Sound.Money", "value": 8.14},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.73},
{"axis": "Regulation", "value": 8.12}]},
{ "className": "Norway",
"axes": [{"axis": "Size of Government", "value": 5.18},
{"axis": "Legal System & Property Rights", "value": 8.14},
{"axis": "Sound.Money", "value": 9.14},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.82},
{"axis": "Regulation", "value": 7.73}]},
{ "className": "Oman",
"axes": [{"axis": "Size of Government", "value": 4.97},
{"axis": "Legal System & Property Rights", "value": 5.57},
{"axis": "Sound.Money", "value": 8.41},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.17},
{"axis": "Regulation", "value": 6.81}]},
{ "className": "Pakistan",
"axes": [{"axis": "Size of Government", "value": 7.74},
{"axis": "Legal System & Property Rights", "value": 3.83},
{"axis": "Sound.Money", "value": 6.58},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.69},
{"axis": "Regulation", "value": 6.51}]},
{ "className": "Panama",
"axes": [{"axis": "Size of Government", "value": 7.75},
{"axis": "Legal System & Property Rights", "value": 5.44},
{"axis": "Sound.Money", "value": 9.87},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.92},
{"axis": "Regulation", "value": 7.02}]},
{ "className": "Papua New Guinea",
"axes": [{"axis": "Size of Government", "value": 5.78},
{"axis": "Legal System & Property Rights", "value": 4.45},
{"axis": "Sound.Money", "value": 6.47},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.48},
{"axis": "Regulation", "value": 7.75}]},
{ "className": "Paraguay",
"axes": [{"axis": "Size of Government", "value": 8.48},
{"axis": "Legal System & Property Rights", "value": 4.34},
{"axis": "Sound.Money", "value": 9.53},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.22},
{"axis": "Regulation", "value": 6.57}]},
{ "className": "Peru",
"axes": [{"axis": "Size of Government", "value": 7.67},
{"axis": "Legal System & Property Rights", "value": 5.24},
{"axis": "Sound.Money", "value": 9.83},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.61},
{"axis": "Regulation", "value": 7.44}]},
{ "className": "Philippines",
"axes": [{"axis": "Size of Government", "value": 8.64},
{"axis": "Legal System & Property Rights", "value": 4.57},
{"axis": "Sound.Money", "value": 9.45},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.08},
{"axis": "Regulation", "value": 7.43}]},
{ "className": "Poland",
"axes": [{"axis": "Size of Government", "value": 5.67},
{"axis": "Legal System & Property Rights", "value": 5.99},
{"axis": "Sound.Money", "value": 8.32},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.91},
{"axis": "Regulation", "value": 7.32}]},
{ "className": "Portugal",
"axes": [{"axis": "Size of Government", "value": 6.13},
{"axis": "Legal System & Property Rights", "value": 6.97},
{"axis": "Sound.Money", "value": 9.35},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.56},
{"axis": "Regulation", "value": 6.97}]},
{ "className": "Qatar",
"axes": [{"axis": "Size of Government", "value": 5.65},
{"axis": "Legal System & Property Rights", "value": 5.49},
{"axis": "Sound.Money", "value": 8.24},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.89},
{"axis": "Regulation", "value": 7.12}]},
{ "className": "Romania",
"axes": [{"axis": "Size of Government", "value": 7.24},
{"axis": "Legal System & Property Rights", "value": 6.24},
{"axis": "Sound.Money", "value": 9.33},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.74},
{"axis": "Regulation", "value": 7.6}]},
{ "className": "Russian Federation",
"axes": [{"axis": "Size of Government", "value": 6.42},
{"axis": "Legal System & Property Rights", "value": 4.68},
{"axis": "Sound.Money", "value": 9.09},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.86},
{"axis": "Regulation", "value": 6.63}]},
{ "className": "Rwanda",
"axes": [{"axis": "Size of Government", "value": 6.16},
{"axis": "Legal System & Property Rights", "value": 6.09},
{"axis": "Sound.Money", "value": 9.45},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.25},
{"axis": "Regulation", "value": 8.0}]},
{ "className": "Saudi Arabia",
"axes": [{"axis": "Size of Government", "value": 4.57},
{"axis": "Legal System & Property Rights", "value": 4.68},
{"axis": "Sound.Money", "value": 8.65},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.94},
{"axis": "Regulation", "value": 6.73}]},
{ "className": "Senegal",
"axes": [{"axis": "Size of Government", "value": 7.46},
{"axis": "Legal System & Property Rights", "value": 4.35},
{"axis": "Sound.Money", "value": 7.3},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.4},
{"axis": "Regulation", "value": 5.86}]},
{ "className": "Serbia",
"axes": [{"axis": "Size of Government", "value": 6.48},
{"axis": "Legal System & Property Rights", "value": 5.44},
{"axis": "Sound.Money", "value": 8.47},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.59},
{"axis": "Regulation", "value": 7.27}]},
{ "className": "Seychelles",
"axes": [{"axis": "Size of Government", "value": 6.71},
{"axis": "Legal System & Property Rights", "value": 5.54},
{"axis": "Sound.Money", "value": 9.26},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.27},
{"axis": "Regulation", "value": 7.69}]},
{ "className": "Sierra Leone",
"axes": [{"axis": "Size of Government", "value": 7.77},
{"axis": "Legal System & Property Rights", "value": 3.97},
{"axis": "Sound.Money", "value": 6.82},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.74},
{"axis": "Regulation", "value": 5.03}]},
{ "className": "Singapore",
"axes": [{"axis": "Size of Government", "value": 7.27},
{"axis": "Legal System & Property Rights", "value": 7.7},
{"axis": "Sound.Money", "value": 9.84},
{"axis": "Freedom.to.Trade.Internationally", "value": 9.44},
{"axis": "Regulation", "value": 9.01}]},
{ "className": "Slovak Republic",
"axes": [{"axis": "Size of Government", "value": 6.55},
{"axis": "Legal System & Property Rights", "value": 6.14},
{"axis": "Sound.Money", "value": 9.32},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.26},
{"axis": "Regulation", "value": 7.86}]},
{ "className": "Slovenia",
"axes": [{"axis": "Size of Government", "value": 5.39},
{"axis": "Legal System & Property Rights", "value": 6.54},
{"axis": "Sound.Money", "value": 9.34},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.11},
{"axis": "Regulation", "value": 7.27}]},
{ "className": "South Africa",
"axes": [{"axis": "Size of Government", "value": 6.11},
{"axis": "Legal System & Property Rights", "value": 5.68},
{"axis": "Sound.Money", "value": 8.2},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.44},
{"axis": "Regulation", "value": 7.24}]},
{ "className": "Spain",
"axes": [{"axis": "Size of Government", "value": 6.1},
{"axis": "Legal System & Property Rights", "value": 7.06},
{"axis": "Sound.Money", "value": 9.34},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.34},
{"axis": "Regulation", "value": 7.81}]},
{ "className": "Sri Lanka",
"axes": [{"axis": "Size of Government", "value": 8.76},
{"axis": "Legal System & Property Rights", "value": 5.09},
{"axis": "Sound.Money", "value": 8.08},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.44},
{"axis": "Regulation", "value": 7.02}]},
{ "className": "Sudan",
"axes": [{"axis": "Size of Government", "value": 8.49},
{"axis": "Legal System & Property Rights", "value": 2.85},
{"axis": "Sound.Money", "value": 2.51},
{"axis": "Freedom.to.Trade.Internationally", "value": 2.68},
{"axis": "Regulation", "value": 4.55}]},
{ "className": "Suriname",
"axes": [{"axis": "Size of Government", "value": 5.53},
{"axis": "Legal System & Property Rights", "value": 4.47},
{"axis": "Sound.Money", "value": 7.56},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.81},
{"axis": "Regulation", "value": 7.47}]},
{ "className": "Sweden",
"axes": [{"axis": "Size of Government", "value": 4.75},
{"axis": "Legal System & Property Rights", "value": 7.54},
{"axis": "Sound.Money", "value": 9.37},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.38},
{"axis": "Regulation", "value": 7.83}]},
{ "className": "Switzerland",
"axes": [{"axis": "Size of Government", "value": 7.7},
{"axis": "Legal System & Property Rights", "value": 8.21},
{"axis": "Sound.Money", "value": 9.83},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.8},
{"axis": "Regulation", "value": 8.58}]},
{ "className": "Syrian Arab Republic",
"axes": [{"axis": "Size of Government", "value": 6.62},
{"axis": "Legal System & Property Rights", "value": 2.96},
{"axis": "Sound.Money", "value": 8.09},
{"axis": "Freedom.to.Trade.Internationally", "value": 4.56},
{"axis": "Regulation", "value": 5.01}]},
{ "className": "Taiwan",
"axes": [{"axis": "Size of Government", "value": 7.46},
{"axis": "Legal System & Property Rights", "value": 6.86},
{"axis": "Sound.Money", "value": 9.72},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.61},
{"axis": "Regulation", "value": 8.08}]},
{ "className": "Tajikistan",
"axes": [{"axis": "Size of Government", "value": 5.27},
{"axis": "Legal System & Property Rights", "value": 4.47},
{"axis": "Sound.Money", "value": 7.65},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.25},
{"axis": "Regulation", "value": 6.61}]},
{ "className": "Tanzania",
"axes": [{"axis": "Size of Government", "value": 7.07},
{"axis": "Legal System & Property Rights", "value": 5.36},
{"axis": "Sound.Money", "value": 8.25},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.98},
{"axis": "Regulation", "value": 7.0}]},
{ "className": "Thailand",
"axes": [{"axis": "Size of Government", "value": 7.0},
{"axis": "Legal System & Property Rights", "value": 4.52},
{"axis": "Sound.Money", "value": 8.57},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.82},
{"axis": "Regulation", "value": 6.84}]},
{ "className": "Timor-Leste",
"axes": [{"axis": "Size of Government", "value": 4.45},
{"axis": "Legal System & Property Rights", "value": 3.27},
{"axis": "Sound.Money", "value": 8.44},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.17},
{"axis": "Regulation", "value": 7.11}]},
{ "className": "Togo",
"axes": [{"axis": "Size of Government", "value": 6.93},
{"axis": "Legal System & Property Rights", "value": 5.14},
{"axis": "Sound.Money", "value": 7.13},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.63},
{"axis": "Regulation", "value": 6.44}]},
{ "className": "Trinidad and Tobago",
"axes": [{"axis": "Size of Government", "value": 7.16},
{"axis": "Legal System & Property Rights", "value": 5.21},
{"axis": "Sound.Money", "value": 9.17},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.94},
{"axis": "Regulation", "value": 6.83}]},
{ "className": "Tunisia",
"axes": [{"axis": "Size of Government", "value": 5.21},
{"axis": "Legal System & Property Rights", "value": 5.32},
{"axis": "Sound.Money", "value": 6.57},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.63},
{"axis": "Regulation", "value": 6.64}]},
{ "className": "Turkey",
"axes": [{"axis": "Size of Government", "value": 6.87},
{"axis": "Legal System & Property Rights", "value": 4.61},
{"axis": "Sound.Money", "value": 8.5},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.17},
{"axis": "Regulation", "value": 5.97}]},
{ "className": "Uganda",
"axes": [{"axis": "Size of Government", "value": 7.89},
{"axis": "Legal System & Property Rights", "value": 4.74},
{"axis": "Sound.Money", "value": 9.5},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.82},
{"axis": "Regulation", "value": 7.8}]},
{ "className": "Ukraine",
"axes": [{"axis": "Size of Government", "value": 6.72},
{"axis": "Legal System & Property Rights", "value": 4.57},
{"axis": "Sound.Money", "value": 5.65},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.78},
{"axis": "Regulation", "value": 6.61}]},
{ "className": "United Arab Emirates",
"axes": [{"axis": "Size of Government", "value": 5.28},
{"axis": "Legal System & Property Rights", "value": 5.25},
{"axis": "Sound.Money", "value": 8.98},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.27},
{"axis": "Regulation", "value": 7.49}]},
{ "className": "United Kingdom",
"axes": [{"axis": "Size of Government", "value": 6.61},
{"axis": "Legal System & Property Rights", "value": 7.37},
{"axis": "Sound.Money", "value": 9.46},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.5},
{"axis": "Regulation", "value": 8.47}]},
{ "className": "United States",
"axes": [{"axis": "Size of Government", "value": 7.5},
{"axis": "Legal System & Property Rights", "value": 7.33},
{"axis": "Sound.Money", "value": 9.69},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.77},
{"axis": "Regulation", "value": 8.82}]},
{ "className": "Uruguay",
"axes": [{"axis": "Size of Government", "value": 6.43},
{"axis": "Legal System & Property Rights", "value": 5.52},
{"axis": "Sound.Money", "value": 9.1},
{"axis": "Freedom.to.Trade.Internationally", "value": 8.14},
{"axis": "Regulation", "value": 7.06}]},
{ "className": "Venezuela RB",
"axes": [{"axis": "Size of Government", "value": 4.31},
{"axis": "Legal System & Property Rights", "value": 2.76},
{"axis": "Sound.Money", "value": 0.69},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.42},
{"axis": "Regulation", "value": 2.52}]},
{ "className": "Vietnam",
"axes": [{"axis": "Size of Government", "value": 6.35},
{"axis": "Legal System & Property Rights", "value": 4.69},
{"axis": "Sound.Money", "value": 6.88},
{"axis": "Freedom.to.Trade.Internationally", "value": 6.19},
{"axis": "Regulation", "value": 6.92}]},
{ "className": "Yemen Rep.",
"axes": [{"axis": "Size of Government", "value": 7.61},
{"axis": "Legal System & Property Rights", "value": 3.36},
{"axis": "Sound.Money", "value": 6.91},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.35},
{"axis": "Regulation", "value": 4.31}]},
{ "className": "Zambia",
"axes": [{"axis": "Size of Government", "value": 7.5},
{"axis": "Legal System & Property Rights", "value": 5.03},
{"axis": "Sound.Money", "value": 9.23},
{"axis": "Freedom.to.Trade.Internationally", "value": 7.71},
{"axis": "Regulation", "value": 6.5}]},
{ "className": "Zimbabwe",
"axes": [{"axis": "Size of Government", "value": 4.51},
{"axis": "Legal System & Property Rights", "value": 4.07},
{"axis": "Sound.Money", "value": 5.03},
{"axis": "Freedom.to.Trade.Internationally", "value": 5.73},
{"axis": "Regulation", "value": 6.28}]}];





const classNamesel = ['Chile', 'Belgium'];
var data = datafull.filter(function (el) {return classNamesel.includes(el.className)});


// List of groups (here I have one group per column)
var allGroup = datafull.map(function(a) {return a.className;});

// add the options to the button
d3.select("#selectButton")
  .selectAll('myOptions')
   .data(allGroup)
  .enter()
  .append('option')
  .text(function (d) { return d; }) // text showed in the menu
  .attr("value", function (d) { return d; }) // corresponding value returned by the button



</script>








<script>
RadarChart.draw(".chart-container", data);
</script>

<p>Current selection:<br>
  Belgium (yellow) vs Chile (blue)
</p>

</body>

</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console