<commit_before>/*!
 * VIZABI GAPMINDER PREFERENCES (included only in Gapminder build)
 */

(function () {
  'use strict';
  var root = this;
  var Vizabi = root.Vizabi;

  //DEFAULT OPTIONS
  var BarChart = this.Vizabi.Tool.get('BarChart');
  var LineChart = this.Vizabi.Tool.get('LineChart');
  var BubbleChart = this.Vizabi.Tool.get('BubbleChart');

  BarChart.define('default_options', {
    state: {
      time: {
        start: "1952",
        end: "2012",
        value: "2000",
        step: 1,
        speed: 300,
        formatInput: "%Y"
      },
      entities: {
        dim: "geo",
        show: {
          _defs_: {
            "geo": ["*"],
            "geo.cat": ["region"]
          }
        }
      },
      marker: {
        space: ["entities", "time"],
        label: {
          use: "property",
          which: "geo.name"
        },
        axis_y: {
          use: "indicator",
          which: "lex",
          scaleType: "linear"
        },
        axis_x: {
          use: "property",
          which: "geo.name"
        },
        color: {
          use: "property",
          which: "geo",
          palette: {
            "asi": "#FF5872",
            "eur": "#FFE700",
            "ame": "#7FEB00",
            "afr": "#00D5E9",
            "_default": "#ffb600"
          }
        }
      }
    },
    data: {
      reader: "waffle-server"
    },

    ui: {
      buttons: []
    },

    language: {
      id: "en",
      strings: {
        _defs_: {
          en: {
            "title": "",
            "buttons/expand": "Go Big",
            "buttons/unexpand": "Go Small",
            "buttons/lock": "Lock",
            "buttons/find": "Find",
            "buttons/colors": "Colors",
            "buttons/size": "Size",
            "buttons/axes": "Axes",
            "buttons/more_options": "Options",
            "indicator/lex": "Life expectancy",
            "indicator/gdp_per_cap": "GDP per capita",
            "indicator/pop": "Population",
            "indicator/_default": "Value",
            "indicator/geo.region": "Region",
            "indicator/geo": "Geo code",
            "indicator/time": "",
            "indicator/geo.category": "Geo category"
          }
        }
      }
    }
  });

  LineChart.define('default_options', {
    state: {
      time: {
        start: 1990,
        end: 2012,
        value: 2012,
        step: 1,
        speed: 300,
        formatInput: "%Y"
      },
      //entities we want to show
      entities: {
        dim: "geo",
        show: {
          _defs_: {
            "geo": ["*"],
            "geo.cat": ["region"]
          }
        }
      },
      //how we show it
      marker: {
        space: ["entities", "time"],
        label: {
          use: "property",
          which: "geo.name"
        },
        axis_y: {
          use: "indicator",
          which: "gdp_per_cap",
          scaleType: "log"
        },
        axis_x: {
          use: "indicator",
          which: "time",
          scaleType: "time"
        },
        color: {
          use: "property",
          which: "geo.region"
        },
        color_shadow: {
          use: "property",
          which: "geo.region"
        }
      }
    },

    data: {
      //reader: "waffle-server",
      reader: "csv-file",
      path: "local_data/waffles/{{LANGUAGE}}/basic-indicators.csv"
    },

    ui: {
      'vzb-tool-line-chart': {
        entity_labels: {
          min_number_of_entities_when_values_hide: 2 //values hide when showing 2 entities or more
        },
        whenHovering: {
          hideVerticalNow: 0,
          showProjectionLineX: true,
          showProjectionLineY: true,
          higlightValueX: true,
          higlightValueY: true,
          showTooltip: 0
        }
      },
      buttons: []
    },

    //language properties
    language: {
      id: "en",
      strings: {
        en: {
          "title": "Line Chart Title",
          "buttons/find": "Find",
          "buttons/expand": "Expand",
          "buttons/colors": "Colors",
          "buttons/size": "Size",
          "buttons/more_options": "Options",
          "indicator/lex": "Life expectancy",<commit_msg>Use waffle reader on Line Chart<commit_after>/*!
 * VIZABI GAPMINDER PREFERENCES (included only in Gapminder build)
 */

(function () {
  'use strict';
  var root = this;
  var Vizabi = root.Vizabi;

  //DEFAULT OPTIONS
  var BarChart = this.Vizabi.Tool.get('BarChart');
  var LineChart = this.Vizabi.Tool.get('LineChart');
  var BubbleChart = this.Vizabi.Tool.get('BubbleChart');

  BarChart.define('default_options', {
    state: {
      time: {
        start: "1952",
        end: "2012",
        value: "2000",
        step: 1,
        speed: 300,
        formatInput: "%Y"
      },
      entities: {
        dim: "geo",
        show: {
          _defs_: {
            "geo": ["*"],
            "geo.cat": ["region"]
          }
        }
      },
      marker: {
        space: ["entities", "time"],
        label: {
          use: "property",
          which: "geo.name"
        },
        axis_y: {
          use: "indicator",
          which: "lex",
          scaleType: "linear"
        },
        axis_x: {
          use: "property",
          which: "geo.name"
        },
        color: {
          use: "property",
          which: "geo",
          palette: {
            "asi": "#FF5872",
            "eur": "#FFE700",
            "ame": "#7FEB00",
            "afr": "#00D5E9",
            "_default": "#ffb600"
          }
        }
      }
    },
    data: {
      reader: "waffle-server"
    },

    ui: {
      buttons: []
    },

    language: {
      id: "en",
      strings: {
        _defs_: {
          en: {
            "title": "",
            "buttons/expand": "Go Big",
            "buttons/unexpand": "Go Small",
            "buttons/lock": "Lock",
            "buttons/find": "Find",
            "buttons/colors": "Colors",
            "buttons/size": "Size",
            "buttons/axes": "Axes",
            "buttons/more_options": "Options",
            "indicator/lex": "Life expectancy",
            "indicator/gdp_per_cap": "GDP per capita",
            "indicator/pop": "Population",
            "indicator/_default": "Value",
            "indicator/geo.region": "Region",
            "indicator/geo": "Geo code",
            "indicator/time": "",
            "indicator/geo.category": "Geo category"
          }
        }
      }
    }
  });

  LineChart.define('default_options', {
    state: {
      time: {
        start: 1990,
        end: 2012,
        value: 2012,
        step: 1,
        speed: 300,
        formatInput: "%Y"
      },
      //entities we want to show
      entities: {
        dim: "geo",
        show: {
          _defs_: {
            "geo": ["*"],
            "geo.cat": ["region"]
          }
        }
      },
      //how we show it
      marker: {
        space: ["entities", "time"],
        label: {
          use: "property",
          which: "geo.name"
        },
        axis_y: {
          use: "indicator",
          which: "gdp_per_cap",
          scaleType: "log"
        },
        axis_x: {
          use: "indicator",
          which: "time",
          scaleType: "time"
        },
        color: {
          use: "property",
          which: "geo",
          palette: {
            "asi": "#FF5872",
            "eur": "#FFE700",
            "ame": "#7FEB00",
            "afr": "#00D5E9",
            "_default": "#ffb600"
          }
        },
        color_shadow: {
          use: "property",
          which: "geo",
          palette: {
            "asi": "#FF5872",
            "eur": "#FFE700",
            "ame": "#7FEB00",
            "afr": "#00D5E9",
            "_default": "#ffb600"
          }
        }
      }
    },

    data: {
      reader: "waffle-server",
    },

    ui: {
      'vzb-tool-line-chart': {
        entity_labels: {
          min_number_of_entities_when_values_hide: 2 //values hide when showing 2 entities or more
        },
        whenHovering: {
          hideVerticalNow: 0,
          showProjectionLineX: true,
          showProjectionLineY: true,
          higlightValueX: true,
          higlightValueY: true,
          showTooltip: 0
        }
      },
      buttons: []
    },

    //language properties
    language: {
      id: "en",
      strings: {
        en: {
          "title": "Line Chart Title",
          "buttons/find": "Find",
          "buttons/expand": "Expand",
          "buttons/colors": "Colors",
          "buttons/size": "Size",
          "buttons/more_options": "Options",
          "indicator/lex": "Life expectancy",
{'fraction_non_alphanumeric': 0.15300104082340696, 'fraction_numerical': 0.016190586330519254, 'mean_word_length': 1.3272335844994618, 'pattern_counts': {'":': 76, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '496770', 'n_tokens_mistral': 2813, 'n_tokens_neox': 2689, 'n_words': 546}