(self["webpackChunk"] = self["webpackChunk"] || []).push([["app-bulle"],{ /***/ "./assets/app/frontend/js/bulle.js": /*!*****************************************!*\ !*** ./assets/app/frontend/js/bulle.js ***! \*****************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js"); /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @amcharts/amcharts4/core */ "./node_modules/@amcharts/amcharts4/core.js"); /* harmony import */ var _amcharts_amcharts4_charts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @amcharts/amcharts4/charts */ "./node_modules/@amcharts/amcharts4/charts.js"); /* harmony import */ var _amcharts_amcharts4_plugins_forceDirected__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @amcharts/amcharts4/plugins/forceDirected */ "./node_modules/@amcharts/amcharts4/plugins/forceDirected.js"); // Create chart var chart = _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__.create("carto-bulles", _amcharts_amcharts4_plugins_forceDirected__WEBPACK_IMPORTED_MODULE_3__.ForceDirectedTree); // Create series var series = chart.series.push(new _amcharts_amcharts4_plugins_forceDirected__WEBPACK_IMPORTED_MODULE_3__.ForceDirectedSeries()); series.dataSource.url = routes.app_carto_json; // Set data // series.data = [{ // "name": "Nos révoltes", // "link": ["Nos rêves"], // "children": [{ // "name": "A1", "value": 100 // }, { // "name": "A2", "value": 60 // }, { // "name": "A3", "value": 30 // }] // }, { // "name": "Nos rêves", // "link": ["Les actions \n inspirantes"], // "children": [{ // "name": "B1", "value": 135 // }, { // "name": "B2", "value": 98 // }, { // "name": "B3", "value": 56 // }] // }, { // "name": "Les actions \n inspirantes", // "link": ["Les actions \n à booster"], // "children": [{ // "name": "C1", "value": 335 // }, { // "name": "C2", "value": 148 // }, { // "name": "C3", "value": 126 // }, { // "name": "C4", "value": 26 // }] // }, { // "name": "Les actions \n à booster", // "link": ["Nos révoltes"], // "children": [{ // "name": "D1", "value": 415 // }, { // "name": "D2", "value": 148 // }, { // "name": "D3", "value": 89 // }, { // "name": "D4", "value": 64 // }, { // "name": "D5", "value": 16 // }] // }]; series.nodes.template.events.on("hit", function (event) { console.log(event.target.dataItem.nb); }); series.manyBodyStrength = -25; series.links.template.strength = 2; series.centerStrength = 1.2; //active le zoom chart.zoomable = true; //Nombre de level affiché par défaut series.maxLevels = 1; //link entre "frere" // series.dataFields.id = "name"; // series.dataFields.linkWith = "link"; //distance entre les bulles series.links.template.distance = 1.7; // Set up data fields series.dataFields.name = "name"; series.dataFields.children = "children"; series.dataFields.nb = "nb"; // Add labels series.nodes.template.label.text = "{name}"; series.fontSize = 20; series.minRadius = 70; series.maxRadius = 100; //Couleur des bulles series.colors.list = [_amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__.color("#dc5b2f"), _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__.color("#fce767"), _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__.color("#97533a"), _amcharts_amcharts4_core__WEBPACK_IMPORTED_MODULE_1__.color("#568b6f")]; //Apparence des liens entre les bulles series.links.template.strokeWidth = 5; series.links.template.strokeOpacity = 1; //tooltip series.nodes.template.tooltipText = "{nb}"; /***/ }) }, /******/ __webpack_require__ => { // webpackRuntimeModules /******/ "use strict"; /******/ /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) /******/ __webpack_require__.O(0, ["vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-e7c189"], () => (__webpack_exec__("./assets/app/frontend/js/bulle.js"))); /******/ var __webpack_exports__ = __webpack_require__.O(); /******/ } ]); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvYXBwL2Zyb250ZW5kL2pzL2J1bGxlLmpzIl0sIm5hbWVzIjpbImNoYXJ0IiwiYW00Y29yZSIsImFtNHBsdWdpbnNfZm9yY2VEaXJlY3RlZCIsInNlcmllcyIsInB1c2giLCJkYXRhU291cmNlIiwidXJsIiwicm91dGVzIiwiYXBwX2NhcnRvX2pzb24iLCJub2RlcyIsInRlbXBsYXRlIiwiZXZlbnRzIiwib24iLCJldmVudCIsImNvbnNvbGUiLCJsb2ciLCJ0YXJnZXQiLCJkYXRhSXRlbSIsIm5iIiwibWFueUJvZHlTdHJlbmd0aCIsImxpbmtzIiwic3RyZW5ndGgiLCJjZW50ZXJTdHJlbmd0aCIsInpvb21hYmxlIiwibWF4TGV2ZWxzIiwiZGlzdGFuY2UiLCJkYXRhRmllbGRzIiwibmFtZSIsImNoaWxkcmVuIiwibGFiZWwiLCJ0ZXh0IiwiZm9udFNpemUiLCJtaW5SYWRpdXMiLCJtYXhSYWRpdXMiLCJjb2xvcnMiLCJsaXN0Iiwic3Ryb2tlV2lkdGgiLCJzdHJva2VPcGFjaXR5IiwidG9vbHRpcFRleHQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0NBR0E7O0FBQ0EsSUFBSUEsS0FBSyxHQUFHQyw0REFBQSxDQUFlLGNBQWYsRUFBK0JDLHdGQUEvQixDQUFaLEMsQ0FFQTs7QUFDQSxJQUFJQyxNQUFNLEdBQUdILEtBQUssQ0FBQ0csTUFBTixDQUFhQyxJQUFiLENBQWtCLElBQUlGLDBGQUFKLEVBQWxCLENBQWI7QUFFQUMsTUFBTSxDQUFDRSxVQUFQLENBQWtCQyxHQUFsQixHQUF3Qk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