{"project":"chartjs","branch":"main","commit":"814a62ef2735866be01cd311034616d4543cf4c6","component":{"apis":{"Untitled":{"url":{"type":"value","value":"https://toddle.dev/_api/weather"},"auth":null,"body":{"type":"value","value":null},"name":"Untitled","path":[],"type":"REST","proxy":true,"method":"GET","headers":{"type":"record","entries":[]},"autoFetch":{"type":"value","value":true},"dependsOn":[]}},"name":"HomePage","nodes":{"root":{"tag":"div","type":"element","children":["qUZX5B_obx9JdrREoZr8I"],"classes":{"bTqdax":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-4qyT4kDwjO9hKEcL8NGa":{"tag":"th","type":"element","children":["eHPw8hL9xMU_xa56tZBid"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-K7koGUkIKbQV0WQDyE40":{"type":"text","value":{"type":"value","value":"Name"}},"-O-cKMsTt8HjXy5tCIvFA":{"tag":"th","type":"element","children":["aGr-xf4stfRnSnUC18gFu"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-SI96lrtTUs47epABzFiQ":{"tag":"tr","type":"element","children":["b9krlOWyDlZKzW-3LAS99","jfw0GRIJiNaFpAF6ErnGh","2Sh0LExYYM2u30zjeBzzh"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"01s4VhL1E2_0AxJKoCAai":{"type":"text","value":{"type":"value","value":"[Bug Fixed]\n- Charts are now more responsive on smaller screens.\n- Attributes tables in the home page are now also responsive."}},"0ZYoV_i1YjH9HGYYdUZMo":{"tag":"h2","type":"element","children":["Jf17ytXDRyG31uBdwtaFM"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"10O4zKsUjnWAeaja4UTSw":{"tag":"div","type":"element","children":["Vg5QflnNmPD-hvmeesJkb","KrmSgUwf3SrQ440fKyrWA"],"classes":{"coa-DhZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1cMY1cy9H-gaOHwjDsI3f":{"type":"text","value":{"type":"value","value":"type"}},"1z5Ja-Yhh1BTH4IxS-xbN":{"tag":"tr","type":"element","children":["oq2QG9CJQmeZUoEwcPkKN","ZB1qBeJm_wThmr6tt9uiF","adelf9LRJNRGPlot_C39V"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"21226wgdGcmmoAGg3Y6gs":{"tag":"td","type":"element","children":["hL_z7WU3FF5K6_rVSeDtr"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2IQpny-nF4GKb5QxrEF9i":{"tag":"div","type":"element","children":["zLPUXTO4t1V8nXLsoLC5D","wEPHtPu-10kQb4Y3JiXTK"],"classes":{"ZLwyI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2Sh0LExYYM2u30zjeBzzh":{"tag":"td","type":"element","children":["_1Hkqg-RFH_76o2_9uThl"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2Vgjot9LwDQstYkvYWRDv":{"tag":"div","type":"element","children":["d1Dxv8hVT0UxH64RRnyqQ","OXx7EqgcGayCU5iE7R0L0"],"classes":{"coa-DhZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2puBS69c_4Astl1fvE1x2":{"tag":"div","type":"element","children":["p0FBmzqfPbTE4Pyz4F-TL","egrxCKu9bBNWXUFFt1l7C"],"classes":{"bIwJyo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2szs47SRDJZdI1fNK1l0R":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["oW1dEKnuYTnINry4URGoX"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2x2URyCKk3z4UOQltAjF1":{"tag":"div","type":"element","children":["AC8NqcvMzlZG1r6AHjrRl"],"classes":{"Shgvs":{"formula":{"type":"value","value":true}}},"customProperties":{}},"3CFUXrCjzKLFmt5D6QhtN":{"tag":"th","type":"element","children":["KdshkowRsMw7WwSSK2VlI"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"3Ye8Wj_kyVACjEPODfIz6":{"tag":"p","type":"element","children":["01s4VhL1E2_0AxJKoCAai"],"classes":{"stHWz":{"formula":{"type":"value","value":true}}},"customProperties":{}},"3fPIJNmFcBpkMvk6OZsOP":{"name":"chart","type":"component","attrs":{"data":{"path":["Variables","data"],"type":"path","label":null},"type":{"type":"value","value":"bar"},"elementid":{"type":"value","value":"bar-chart"}},"customProperties":{}},"4-4iGY4KVGejBh5oLlrX5":{"type":"text","value":{"type":"value","value":"type"}},"4VTOWy1CGJzS0wlkON69L":{"tag":"div","type":"element","children":["xD4l7iXArULgz8YJtawxl","W3A4w_GIXUoq39FgqPa5J"],"classes":{"coa-DhZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"5JHrm_oWmpNz1W0_8ZQ_u":{"type":"text","value":{"type":"value","value":"an array of arrays of key value pair\n"}},"5WJdd7vzPF-xI7mZH8EdW":{"tag":"th","type":"element","children":["Ie0n2VUDGzfQHxj_BasCB"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"63AWjpW4QDYK1l9bklfpa":{"type":"text","value":{"type":"value","value":"[[{\"year\":2000,\"count\":16},{\"year\":2010,\"count\":40},{\"year\":2020,\"count\":51}],\n[{\"year\":2000,\"count\":16},{\"year\":2010,\"count\":40},{\"year\":2020,\"count\":51}],\n[{\"year\":2000,\"count\":16},{\"year\":2010,\"count\":40},{\"year\":2020,\"count\":51}],]"}},"7IhNiVvlanmfiFLWxAZ-x":{"tag":"div","type":"element","children":["j4zcf38nB1k9t0CvolgZA"],"classes":{"Shgvs":{"formula":{"type":"value","value":true}}},"customProperties":{}},"7NQgti_9SIy0APYzxJ5Pa":{"tag":"tr","type":"element","children":["RfyRMzscVWPBj7yA0TVBj","21226wgdGcmmoAGg3Y6gs","TPlHvsUL7spjggaWK_3tI","Rwbh0O4XFX1KsjwAryskX"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"7Zsdz0lIdhsk2oUMHJT2y":{"type":"text","value":{"type":"value","value":"Array\n"}},"7c7x4U4dAOiSdB_EUmtk6":{"type":"text","value":{"type":"value","value":"A chart that illustrates a single y value across the x axis."}},"84B13cu67Evemsn37IXZ8":{"tag":"section","type":"element","children":["olKF-w9SJek3MfcN5IvWH","SZ9rshtvS704XK9HyP_xI","z13e99PqktChV7cZ7qEdZ","8zojeA9LM-7nQF-nicyEt"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8JMmh1JG6yvg9WglgEwJc":{"tag":"div","type":"element","children":["gKOdXbW-on_939JSdA1t-"],"classes":{"CsusC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8nm_IL8ftPjJhJE9mfGIq":{"tag":"th","type":"element","children":["-K7koGUkIKbQV0WQDyE40"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8zojeA9LM-7nQF-nicyEt":{"tag":"div","type":"element","children":["4VTOWy1CGJzS0wlkON69L","2puBS69c_4Astl1fvE1x2"],"classes":{"YTJFj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"98CXNds4_7AGsk5QRt1MR":{"tag":"h2","type":"element","children":["Dqh19ODAQohZ74k_M8N7A"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9fV8a1-gm-n_dM88DmJZ2":{"type":"text","value":{"type":"value","value":"7-day forecast"}},"A3d-1CI7ejk0Wws8y-okK":{"tag":"tr","type":"element","children":["8nm_IL8ftPjJhJE9mfGIq","t_gki_NM03cs8IeSKlfzh","-O-cKMsTt8HjXy5tCIvFA","TGirUlDcHWtsZ7d8kTYOZ"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AC8NqcvMzlZG1r6AHjrRl":{"tag":"h3","type":"element","children":["bOFjWvUzS99RqjtqEf5Oo"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"B0cUjTRjL9w5eks74DhJp":{"tag":"div","type":"element","children":["XXnG5maObeLP9Ol8LPchd"],"classes":{"eybmGA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BO7J0YQX9539YFBiQvKJj":{"type":"text","value":{"type":"value","value":"chart type: line, bar, pie, donut, bubble, area, radar."}},"BSBkIHT77s7zLyIIvxXxS":{"tag":"h3","type":"element","children":["TArJG-43MM1fWQYOuoyIx"],"classes":{"feHlii":{"formula":{"type":"value","value":true}}},"customProperties":{}},"C2ztPypJigHNYahz23c_U":{"type":"text","value":{"type":"value","value":"Attributes"}},"DVusFoWUVrSdzGtIo8SgA":{"tag":"div","type":"element","children":["kbvcr9vXhimFIv9gIX2TY"],"classes":{"PXFZI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Dqh19ODAQohZ74k_M8N7A":{"type":"text","value":{"type":"value","value":"Changelog"}},"E8yzxMksJ4zLV0smiAthz":{"type":"text","value":{"type":"value","value":"Example"}},"Fedf_VbJMCTYvmKDVUtKM":{"tag":"li","type":"element","children":["xe_Fis006_-t4gqH9oFzk","3Ye8Wj_kyVACjEPODfIz6"],"classes":{"novGM":{"formula":{"type":"value","value":true}}},"customProperties":{}},"GpMFpwYZBWmF9X-4T0UUa":{"tag":"h4","type":"element","children":["Zz9ISD79DE3xBoGCMuMch"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"H4L4-qYWVCIAN9Ehzwldr":{"tag":"h2","type":"element","children":["sw0h1xF3ZqfcsW-IqEId8"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"H9E0rSnPgGBAKryLxokTx":{"type":"text","value":{"type":"value","value":"Description"}},"HNz9d3WECFv6vnMdrKE_e":{"tag":"td","type":"element","children":["gOrqT8YUzIJr72hN9SXo5"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"HzL6GfVSSjtoYLQr6AWMS":{"tag":"div","type":"element","children":["fFixYXvTvxcPJ00_mwqJY"],"classes":{"exxkCA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"I6lhkK23ljYx8M8hJBJ8b":{"tag":"td","type":"element","children":["tzIGjAWFEF25GnIdMD2tU"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Ie0n2VUDGzfQHxj_BasCB":{"type":"text","value":{"type":"value","value":"Description"}},"JNpb2Gb49dTHkMyX7S_AF":{"tag":"td","type":"element","children":["7Zsdz0lIdhsk2oUMHJT2y"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"JcL7g9eawRfDfly5bz5dS":{"tag":"div","type":"element","children":["DVusFoWUVrSdzGtIo8SgA"],"classes":{"bsjUcy":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Jf17ytXDRyG31uBdwtaFM":{"type":"text","value":{"type":"value","value":"Examples"}},"JiS1B1iDw_Wo057ikp8li":{"tag":"td","type":"element","children":["UlkB4lVtPr3RxS6KlUQrb"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"K2jZvtyhOYgli4x54aewe":{"tag":"div","type":"element","children":["g1pUShf670ia6DUlAgaRS"],"classes":{"eybmGA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"KdshkowRsMw7WwSSK2VlI":{"type":"text","value":{"type":"value","value":"Example"}},"KrmSgUwf3SrQ440fKyrWA":{"tag":"button","type":"element","events":{"click":{"actions":[{"name":"GenerateData","events":{"sampleGenerated":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"data"}],"trigger":"sampleGenerated"}},"version":2,"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nfunction GenerateData (args, ctx) {\n  const startYear = 2010; // Starting year\n    const duration = Math.floor(Math.random() * 20) + 1; // Random duration between 1 and 20 years\n    const endYear = startYear + duration;\n    const sample = [];\n\n    for (let year = startYear; year < endYear; year++) {\n        const count = Math.floor(Math.random() * 101); // Random count from 0 to 100\n        sample.push({ year, count });\n    }\n  ctx.triggerActionEvent(\"sampleGenerated\", sample)\n}"}],"trigger":"click"}},"children":["UAHwYtZFjS75-laDC_Lpa"],"classes":{"dBViEH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"L-te-DFfibb6Z5RTo-ngK":{"tag":"tr","type":"element","children":["HNz9d3WECFv6vnMdrKE_e","aUduzHaUdT0fGXYCInsxl","oWWEiFCD4Zuo9jZl1QIZc","RIsjpP70PNZftAYa5b-Bl"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"L3DrdpaJK5k2HJ48ayJgm":{"tag":"td","type":"element","children":["watETxdHSjjW30AopgSvB"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MhZDRWdFc3ZiAaZFtzgS4":{"type":"text","value":{"type":"value","value":"[\"France\",\"Germany\",\"Japan\",\"Canada\"]"}},"OXx7EqgcGayCU5iE7R0L0":{"tag":"span","type":"element","children":["aIvq7evmxtRXqsAmrCO_E"],"classes":{"EXSxf":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PHDG3U_kWlczx9_zRKXnC":{"type":"text","value":{"type":"value","value":"datalabels"}},"PntEJjw_a1JyJirwvPf7o":{"type":"text","value":{"type":"value","value":"Array\n"}},"QozClqn4vLraoakHnLOeK":{"tag":"section","type":"element","children":["H4L4-qYWVCIAN9Ehzwldr","RpMEP3bYGiAf_VRNmjWiP","2szs47SRDJZdI1fNK1l0R"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Qqss3dkgk6aiy0TVFtbNw":{"name":"multi-chart","type":"component","attrs":{"data":{"path":["Variables","multiData"],"type":"path","label":null},"type":{"type":"value","value":"line"},"elementid":{"type":"value","value":"multi-line"}},"customProperties":{}},"RIsjpP70PNZftAYa5b-Bl":{"tag":"td","type":"element","children":["63AWjpW4QDYK1l9bklfpa"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RfyRMzscVWPBj7yA0TVBj":{"tag":"td","type":"element","children":["PHDG3U_kWlczx9_zRKXnC"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RpMEP3bYGiAf_VRNmjWiP":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["d5R32V345MlGqEinOVxYQ"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Rwbh0O4XFX1KsjwAryskX":{"tag":"td","type":"element","children":["MhZDRWdFc3ZiAaZFtzgS4"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SBuIRkTGPlr0-mJjYEk8G":{"name":"multi-chart","type":"component","attrs":{"data":{"path":["Variables","multiData"],"type":"path","label":null},"type":{"type":"value","value":"bar"},"elementid":{"type":"value","value":"multi-bar"}},"customProperties":{}},"SZ9rshtvS704XK9HyP_xI":{"tag":"div","type":"element","children":["2Vgjot9LwDQstYkvYWRDv","JcL7g9eawRfDfly5bz5dS"],"classes":{"YTJFj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SjyM31jvvlxDybwwZmfyh":{"tag":"tr","type":"element","children":["I6lhkK23ljYx8M8hJBJ8b","zBocpNSg8Q-Ggd4ufjQza","JNpb2Gb49dTHkMyX7S_AF","Tbu965xOdnqkrkTbdH7df"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SncNFXQIkHGeOY9B6AuhC":{"tag":"tr","type":"element","children":["llkXfH3KE94kuJHyP1HmR","zzmv-QO0MV8zjupV6KSKG","JiS1B1iDw_Wo057ikp8li"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SwTeEMESeNOf0gCMXV9El":{"type":"text","value":{"type":"value","value":"multi-chart"}},"TArJG-43MM1fWQYOuoyIx":{"type":"text","value":{"type":"value","value":"v1.0.1"}},"TGirUlDcHWtsZ7d8kTYOZ":{"tag":"th","type":"element","children":["E8yzxMksJ4zLV0smiAthz"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TPlHvsUL7spjggaWK_3tI":{"tag":"td","type":"element","children":["PntEJjw_a1JyJirwvPf7o"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TYgjDotqaFP6IPJLMcPsd":{"tag":"section","type":"element","children":["98CXNds4_7AGsk5QRt1MR","mKRVb-hSGGjmM_NOYYvF8"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TakPU59LBvyE_-rq6hNU9":{"type":"text","value":{"type":"value","value":"Array\n"}},"Tbu965xOdnqkrkTbdH7df":{"tag":"td","type":"element","children":["WkvbI7BwDscs-bKyneBc1"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"UAHwYtZFjS75-laDC_Lpa":{"type":"text","value":{"type":"value","value":"Randomize"}},"UlkB4lVtPr3RxS6KlUQrb":{"type":"text","value":{"type":"value","value":"String\n"}},"Vg5QflnNmPD-hvmeesJkb":{"tag":"h3","type":"element","children":["YsRIHR9eTiXUH4vur-I4g"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"W3A4w_GIXUoq39FgqPa5J":{"tag":"button","type":"element","events":{"click":{"actions":[{"name":"GenerateMultiData","events":{"sampleGenerated":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"multiData"}],"trigger":"sampleGenerated"}},"version":2,"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nfunction GenerateMultiData(args, ctx) {\n    const startYear = 2010; // Starting year\n    const endYear = 2016; // End year after a fixed duration (for example, 6 years)\n    const sample1 = [];\n    const sample2 = [];\n    const sample3 = [];\n\n    for (let year = startYear; year < endYear; year++) {\n        const count1 = Math.floor(Math.random() * 101); // Random count from 0 to 100 for the first dataset\n        const count2 = Math.floor(Math.random() * 101); // Random count from 0 to 100 for the second dataset\n        const count3 = Math.floor(Math.random() * 101); // Random count from 0 to 100 for the second dataset\n\n        sample1.push({ year, count: count1 });\n        sample2.push({ year, count: count2 });\n        sample3.push({ year, count: count3 });\n\n    }\n\n    const result = [sample1, sample2, sample3]; // Combine both datasets into one array\n    ctx.triggerActionEvent(\"sampleGenerated\", result);\n}"}],"trigger":"click"}},"children":["cdngBiXR5Cp3ocpj314lz"],"classes":{"dBViEH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"WkvbI7BwDscs-bKyneBc1":{"type":"text","value":{"type":"value","value":"[{\"country\":\"France\",\"population\":\"67.97\"},{\"country\":\"Germany\",\"population\":\"83.8\"},{\"country\":\"Japan\",\"population\":\"125.1\"},{\"country\":\"Canada\",\"population\":\"38.93\"}]"}},"XEMtzybXEW6rdjJ_gPsLd":{"tag":"td","type":"element","children":["e9KBwL3ObLy8SILFwByI_"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XL095kcjyzmFwkC8Gorhj":{"type":"text","value":{"type":"value","value":"Type"}},"XXnG5maObeLP9Ol8LPchd":{"name":"chart","type":"component","attrs":{"data":{"type":"array","label":null,"arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"France"}},{"Name":0,"name":"population","formula":{"type":"value","value":"67.97"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"Germany"}},{"Name":0,"name":"population","formula":{"type":"value","value":"83.8"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"Japan"}},{"Name":0,"name":"population","formula":{"type":"value","value":"125.1"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"Canada"}},{"Name":0,"name":"population","formula":{"type":"value","value":"38.93"}}]}}]},"type":{"type":"value","value":"bar"},"elementid":{"type":"value","value":"bar-example"}},"customProperties":{}},"Yh3AI9d9k9e1rA4RPw0m-":{"tag":"tr","type":"element","children":["-4qyT4kDwjO9hKEcL8NGa","5WJdd7vzPF-xI7mZH8EdW","qMO828zq4Ndihuq6f2oHu","3CFUXrCjzKLFmt5D6QhtN"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"YsRIHR9eTiXUH4vur-I4g":{"type":"text","value":{"type":"value","value":"Single data"}},"Z7mHHftpej8EmZjl3jM6E":{"tag":"div","type":"element","children":["3fPIJNmFcBpkMvk6OZsOP"],"classes":{"exxkCA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZB1qBeJm_wThmr6tt9uiF":{"tag":"td","type":"element","value":{"type":"value","value":"chart type: bar, line, "},"children":["BO7J0YQX9539YFBiQvKJj"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Zjvzya5TPTP5JBc4wVj9B":{"type":"text","value":{"type":"value","value":"elementid"}},"Zz9ISD79DE3xBoGCMuMch":{"type":"text","value":{"type":"value","value":"Attributes"}},"_1Hkqg-RFH_76o2_9uThl":{"type":"text","value":{"type":"value","value":"String"}},"_EsE7af3dckKY8IBy_YJ6":{"type":"text","value":{"type":"value","value":"id unique to the chart component"}},"_w5Yayffvra2duTcYvuOU":{"tag":"div","type":"element","children":["Z7mHHftpej8EmZjl3jM6E","HzL6GfVSSjtoYLQr6AWMS"],"classes":{"fmbyLA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"aGr-xf4stfRnSnUC18gFu":{"type":"text","value":{"type":"value","value":"Type"}},"aIvq7evmxtRXqsAmrCO_E":{"type":"text","value":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":"City: "}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"path":["Apis","Untitled","data","location","city"],"type":"path"}}],"display_name":"Concatenate","variableArguments":true}},"aUduzHaUdT0fGXYCInsxl":{"tag":"td","type":"element","children":["5JHrm_oWmpNz1W0_8ZQ_u"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"adelf9LRJNRGPlot_C39V":{"tag":"td","type":"element","children":["xHDGbNTg6ASGLRvpYQxTd"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"b9krlOWyDlZKzW-3LAS99":{"tag":"td","type":"element","children":["Zjvzya5TPTP5JBc4wVj9B"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bOFjWvUzS99RqjtqEf5Oo":{"type":"text","value":{"type":"value","value":"chart"}},"bdVX813ourWGALtmvHDX6":{"tag":"p","type":"element","children":["uhkdG54Xmn8ReHAiHtXza"],"classes":{"WsAzi":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bx_bVfkXuMfbVJ-OyuZkd":{"type":"text","value":{"type":"value","value":"A chart that illustrates a multiple y value across the x axis."}},"cdngBiXR5Cp3ocpj314lz":{"type":"text","value":{"type":"value","value":"Randomie"}},"d-Qt-UzvrfiN3rfiMeIUt":{"type":"text","value":{"type":"value","value":"Apr 13, 2014"}},"d1Dxv8hVT0UxH64RRnyqQ":{"tag":"h3","type":"element","children":["9fV8a1-gm-n_dM88DmJZ2"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"d5R32V345MlGqEinOVxYQ":{"tag":"li","type":"element","children":["2x2URyCKk3z4UOQltAjF1","y8uuKBJkVjdEdcVPPT6px","B0cUjTRjL9w5eks74DhJp","2IQpny-nF4GKb5QxrEF9i"],"classes":{"eWHDyg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"e9KBwL3ObLy8SILFwByI_":{"type":"text","value":{"type":"value","value":"elementid"}},"eHPw8hL9xMU_xa56tZBid":{"type":"text","value":{"type":"value","value":"Name"}},"egrxCKu9bBNWXUFFt1l7C":{"tag":"div","type":"element","children":["Qqss3dkgk6aiy0TVFtbNw"],"classes":{"exxkCA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ehRTK8za9JINyBZlruKMk":{"tag":"td","type":"element","children":["_EsE7af3dckKY8IBy_YJ6"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fFixYXvTvxcPJ00_mwqJY":{"name":"chart","type":"component","attrs":{"data":{"path":["Variables","data"],"type":"path","label":null},"type":{"type":"value","value":"line"},"elementid":{"type":"value","value":"line-chart"}},"customProperties":{}},"g1pUShf670ia6DUlAgaRS":{"name":"multi-chart","type":"component","attrs":{"data":{"type":"array","label":null,"arguments":[{"Name":0,"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2000"}},{"Name":0,"name":"count","formula":{"type":"value","value":"58.9"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2010"}},{"Name":0,"name":"count","formula":{"type":"value","value":"62.8"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2020"}},{"Name":0,"name":"count","formula":{"type":"value","value":"67.1"}}]}}]}},{"Name":0,"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2000"}},{"Name":0,"name":"count","formula":{"type":"value","value":"82.2"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2010"}},{"Name":0,"name":"count","formula":{"type":"value","value":"81.8"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2020"}},{"Name":0,"name":"count","formula":{"type":"value","value":"83.2"}}]}}]}},{"Name":0,"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2000"}},{"Name":0,"name":"count","formula":{"type":"value","value":"127"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2010"}},{"Name":0,"name":"count","formula":{"type":"value","value":"128"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2020"}},{"Name":0,"name":"count","formula":{"type":"value","value":"125.8"}}]}}]}},{"Name":0,"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2000"}},{"Name":0,"name":"count","formula":{"type":"value","value":"30.7"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2010"}},{"Name":0,"name":"count","formula":{"type":"value","value":"34.0"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"year","formula":{"type":"value","value":"2020"}},{"Name":0,"name":"count","formula":{"type":"value","value":"37.6"}}]}}]}}]},"type":{"type":"value","value":"bar"},"elementid":{"type":"value","value":"bar-multi-example"},"datalabels":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"France"}},{"Name":0,"formula":{"type":"value","value":"Germany"}},{"Name":0,"formula":{"type":"value","value":"Japan"}},{"Name":0,"formula":{"type":"value","value":"Canada"}}]},"showlegend":{"type":"value","label":null,"value":true}},"customProperties":{}},"gCrglKGgRTgZyVNr2Rin3":{"type":"text","value":{"type":"value","value":"an array of key value pair\n"}},"gKOdXbW-on_939JSdA1t-":{"tag":"div","type":"element","value":{"type":"value","value":"Chart.js wrapper"},"children":["jD-wKYaGpnUIkDvD7xK3c","bdVX813ourWGALtmvHDX6"],"classes":{"eozNhk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gOrqT8YUzIJr72hN9SXo5":{"type":"text","value":{"type":"value","value":"data"}},"hL_z7WU3FF5K6_rVSeDtr":{"type":"text","value":{"type":"value","value":"an array that corresponds to each elemenr in the data array"}},"hVG2Qu2I9ihxg1FaW89ym":{"tag":"section","type":"element","children":["8JMmh1JG6yvg9WglgEwJc"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"iP8xrx9JWW4sbPlhTUfmN":{"tag":"span","type":"element","children":["d-Qt-UzvrfiN3rfiMeIUt"],"classes":{"pjvEw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"j4zcf38nB1k9t0CvolgZA":{"tag":"h3","type":"element","children":["SwTeEMESeNOf0gCMXV9El"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"j6pg2MfFRQw_JHdwv5SEC":{"type":"text","value":{"type":"value","value":"Multiple data"}},"jD-wKYaGpnUIkDvD7xK3c":{"tag":"h3","type":"element","children":["lUPGFYkSWa1r-o8-U5uH1"],"classes":{"bRkPdE":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jfw0GRIJiNaFpAF6ErnGh":{"tag":"td","type":"element","children":["quTgYgj1c8vhK0I6F5ojI"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"kbvcr9vXhimFIv9gIX2TY":{"name":"multi-chart","type":"component","attrs":{"data":{"name":"@toddle/sort_by","type":"function","label":null,"arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"type":"array","label":null,"arguments":[{"Name":0,"formula":{"type":"array","arguments":[{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","0","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","0","temp","max"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","1","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","1","temp","max"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","2","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","2","temp","max"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","3","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","3","temp","max"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","4","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","4","temp","max"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","5","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","5","temp","max"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","6","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","6","temp","max"],"type":"path"}}]}}]}},{"Name":0,"formula":{"type":"array","arguments":[{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","0","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","0","temp","min"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","1","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","1","temp","min"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","2","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","2","temp","min"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","3","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","3","temp","min"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","4","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","4","temp","min"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","5","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","5","temp","min"],"type":"path"}}]}},{"Name":0,"name":"day","formula":{"type":"object","arguments":[{"Name":0,"name":"day","formula":{"path":["Apis","Untitled","data","daily","6","day"],"type":"path"}},{"Name":0,"name":"temp","formula":{"path":["Apis","Untitled","data","daily","6","temp","min"],"type":"path"}}]}}]}}]}},{"name":"Formula","type":{"type":"Formula"},"formula":{"path":["Args","item"],"type":"path"},"isFunction":true},{"name":"Ascending?","type":{"type":"Boolean"},"formula":{"type":"value","value":true}}],"display_name":"Sort by"},"type":{"type":"value","value":"line"},"elementid":{"type":"value","value":"weather-minmax"},"datalabels":{"type":"array","label":null,"arguments":[{"Name":0,"formula":{"type":"value","value":"min"}},{"Name":0,"formula":{"type":"value","value":"max"}}]},"showlegend":{"type":"value","label":null,"value":true}},"customProperties":{}},"kjvSGzgqrBIDWH940YWIL":{"tag":"p","type":"element","children":["bx_bVfkXuMfbVJ-OyuZkd"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"lUPGFYkSWa1r-o8-U5uH1":{"type":"text","value":{"type":"value","value":"Chart.js"}},"llkXfH3KE94kuJHyP1HmR":{"tag":"td","type":"element","children":["1cMY1cy9H-gaOHwjDsI3f"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mKRVb-hSGGjmM_NOYYvF8":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["Fedf_VbJMCTYvmKDVUtKM","tMEeOtT3u-16SAk_9un87"],"classes":{"forbzd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"nslAzXNNap_wcGPn8_din":{"tag":"table","type":"element","children":["A3d-1CI7ejk0Wws8y-okK","L-te-DFfibb6Z5RTo-ngK","7NQgti_9SIy0APYzxJ5Pa","1z5Ja-Yhh1BTH4IxS-xbN","-SI96lrtTUs47epABzFiQ"],"classes":{"ceeutC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oW1dEKnuYTnINry4URGoX":{"tag":"li","type":"element","children":["7IhNiVvlanmfiFLWxAZ-x","kjvSGzgqrBIDWH940YWIL","K2jZvtyhOYgli4x54aewe","w-mVV3FVewUODykigG6UM"],"classes":{"eWHDyg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oWWEiFCD4Zuo9jZl1QIZc":{"tag":"td","type":"element","children":["TakPU59LBvyE_-rq6hNU9"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"okj9eSSHMmBjnV7nV44Z8":{"tag":"tr","type":"element","children":["XEMtzybXEW6rdjJ_gPsLd","ehRTK8za9JINyBZlruKMk","L3DrdpaJK5k2HJ48ayJgm"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"olKF-w9SJek3MfcN5IvWH":{"tag":"div","type":"element","value":{"type":"value","value":"Bar & Line chart (single)"},"children":["0ZYoV_i1YjH9HGYYdUZMo"],"classes":{"dhoKRV":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oq2QG9CJQmeZUoEwcPkKN":{"tag":"td","type":"element","children":["4-4iGY4KVGejBh5oLlrX5"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"p0FBmzqfPbTE4Pyz4F-TL":{"tag":"div","type":"element","children":["SBuIRkTGPlr0-mJjYEk8G"],"classes":{"exxkCA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qMO828zq4Ndihuq6f2oHu":{"tag":"th","type":"element","children":["XL095kcjyzmFwkC8Gorhj"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qUZX5B_obx9JdrREoZr8I":{"tag":"main","type":"element","children":["hVG2Qu2I9ihxg1FaW89ym","84B13cu67Evemsn37IXZ8","QozClqn4vLraoakHnLOeK","TYgjDotqaFP6IPJLMcPsd"],"classes":{"drWRwT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"quTgYgj1c8vhK0I6F5ojI":{"type":"text","value":{"type":"value","value":"id unique to the chart component"}},"sw0h1xF3ZqfcsW-IqEId8":{"type":"text","value":{"type":"value","value":"Components"}},"t_gki_NM03cs8IeSKlfzh":{"tag":"th","type":"element","children":["H9E0rSnPgGBAKryLxokTx"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tzIGjAWFEF25GnIdMD2tU":{"type":"text","value":{"type":"value","value":"data"}},"uWOzkWRAahRoySNyNFOlP":{"type":"text","value":{"type":"value","value":"chart type: line, bar, pie, donut, bubble, area, radar."}},"uhkdG54Xmn8ReHAiHtXza":{"type":"text","value":{"type":"value","value":"A simple chart component that takes in json data and displays it in various chart styles using Chart.js."}},"w-mVV3FVewUODykigG6UM":{"tag":"div","type":"element","children":["GpMFpwYZBWmF9X-4T0UUa","nslAzXNNap_wcGPn8_din"],"classes":{"ZLwyI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wEPHtPu-10kQb4Y3JiXTK":{"tag":"table","type":"element","children":["Yh3AI9d9k9e1rA4RPw0m-","SjyM31jvvlxDybwwZmfyh","SncNFXQIkHGeOY9B6AuhC","okj9eSSHMmBjnV7nV44Z8"],"classes":{"ceeutC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"watETxdHSjjW30AopgSvB":{"type":"text","value":{"type":"value","value":"String"}},"xD4l7iXArULgz8YJtawxl":{"tag":"h3","type":"element","children":["j6pg2MfFRQw_JHdwv5SEC"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"xHDGbNTg6ASGLRvpYQxTd":{"type":"text","value":{"type":"value","value":"String\n"}},"xe_Fis006_-t4gqH9oFzk":{"tag":"div","type":"element","children":["BSBkIHT77s7zLyIIvxXxS","iP8xrx9JWW4sbPlhTUfmN"],"classes":{"coa-DhZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"y8uuKBJkVjdEdcVPPT6px":{"tag":"p","type":"element","children":["7c7x4U4dAOiSdB_EUmtk6"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"z13e99PqktChV7cZ7qEdZ":{"tag":"div","type":"element","children":["10O4zKsUjnWAeaja4UTSw","_w5Yayffvra2duTcYvuOU"],"classes":{"YTJFj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zBocpNSg8Q-Ggd4ufjQza":{"tag":"td","type":"element","children":["gCrglKGgRTgZyVNr2Rin3"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zLPUXTO4t1V8nXLsoLC5D":{"tag":"h4","type":"element","children":["C2ztPypJigHNYahz23c_U"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zzmv-QO0MV8zjupV6KSKG":{"tag":"td","type":"element","value":{"type":"value","value":"chart type: bar, line, "},"children":["uWOzkWRAahRoySNyNFOlP"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tMEeOtT3u-16SAk_9un87":{"tag":"li","type":"element","children":["0l1hV9WEeEbm1eDI4xg0F","DoBnUHt7ayc8Q29RLeZvc"],"classes":{"novGM":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Xrog2bvY_DJ9kkXrlXn1V":{"type":"text","value":{"type":"value","value":"v1.0.0"}},"86HYWcs5sOl-qFRPcbPJl":{"tag":"h3","type":"element","children":["Xrog2bvY_DJ9kkXrlXn1V"],"classes":{"feHlii":{"formula":{"type":"value","value":true}}},"customProperties":{}},"laaQqAElNXaqT26R-6gkN":{"type":"text","value":{"type":"value","value":"Apr 13, 2014"}},"aP0a-C5G_gHWhE9MjBXdr":{"tag":"span","type":"element","children":["laaQqAElNXaqT26R-6gkN"],"classes":{"pjvEw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0l1hV9WEeEbm1eDI4xg0F":{"tag":"div","type":"element","children":["86HYWcs5sOl-qFRPcbPJl","aP0a-C5G_gHWhE9MjBXdr"],"classes":{"coa-DhZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"esnoD9twdRxWyTTCMhTBr":{"type":"text","value":{"type":"value","value":"Initial launch of the Chart.js package.\nAdded chart and multi-chart components."}},"DoBnUHt7ayc8Q29RLeZvc":{"tag":"p","type":"element","children":["esnoD9twdRxWyTTCMhTBr"],"classes":{"stHWz":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"route":{"path":[],"query":{}},"onLoad":{"actions":[{"name":"GenerateData","events":{"sampleGenerated":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"data"}],"trigger":"sampleGenerated"}},"version":2,"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nfunction GenerateData (args, ctx) {\n  const startYear = 2010; // Starting year\n    const duration = Math.floor(Math.random() * 20) + 1; // Random duration between 1 and 20 years\n    const endYear = startYear + duration;\n    const sample = [];\n\n    for (let year = startYear; year < endYear; year++) {\n        const count = Math.floor(Math.random() * 101); // Random count from 0 to 100\n        sample.push({ year, count });\n    }\n  ctx.triggerActionEvent(\"sampleGenerated\", sample)\n}"},{"name":"GenerateMultiData","events":{"sampleGenerated":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"multiData"}],"trigger":"sampleGenerated"}},"version":2,"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nfunction GenerateMultiData (args, ctx) {\n   const startYear = 2010; // Starting year\n    const endYear = 2016; // End year after a fixed duration (for example, 6 years)\n    const sample1 = [];\n    const sample2 = [];\n\n    for (let year = startYear; year < endYear; year++) {\n        const count1 = Math.floor(Math.random() * 101); // Random count from 0 to 100 for the first dataset\n        const count2 = Math.floor(Math.random() * 101); // Random count from 0 to 100 for the second dataset\n        sample1.push({ year, count: count1 });\n        sample2.push({ year, count: count2 });\n    }\n\n    const result = [sample1, sample2]; // Combine both datasets into one array\n    ctx.triggerActionEvent(\"sampleGenerated\", result);\n}"}],"trigger":"load"},"functions":{},"variables":{"data":{"initialValue":{"type":"value","value":""}},"multiData":{"initialValue":{"type":"value","value":""}},"weatherData":{"initialValue":{"type":"value","value":"Nothing"}}}},"components":[{"name":"chart","nodes":{"root":{"tag":"chart","type":"element","children":["CYsBA3Lt_bAg4YFkxqb-j"],"classes":{"etTesQ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"CYsBA3Lt_bAg4YFkxqb-j":{"tag":"canvas","type":"element","attrs":{"id":{"path":["Attributes","elementid"],"type":"path"}},"customProperties":{}}},"onLoad":{"actions":[{"name":"RenderChart","version":2,"exported":true,"arguments":[{"name":"data","formula":{"path":["Attributes","data"],"type":"path"}},{"name":"type","formula":{"path":["Attributes","type"],"type":"path"}},{"name":"elementid","formula":{"path":["Attributes","elementid"],"type":"path"}}],"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nasync function RenderChart(args, ctx) {\n    const cdn = [import(\"https://cdn.jsdelivr.net/npm/chart.js\")];\n    await Promise.all(cdn);\n\n    const data = args.data;\n\n    const xValues = data.map(item => item[Object.keys(item)[0]]);\n    const yValues = data.map(item => item[Object.keys(item)[1]]);\n\n    // Check if 'type' is defined, otherwise set to 'bar' as default\n\n\n    const chartType = args.type || 'bar'; // Default type to 'bar' if not provided\n    const chartLabel = args.label || '';  // Default label to an empty string if not provided\n    const backgroundColor = args.backgroundColor || 'rgba(0, 123, 255, 0.5)'; // Default background color\n    const borderColor = args.borderColor || 'rgba(0, 123, 255, 1)'; // Default border color\n    const borderWidth = args.borderWidth || 1; // Default border width\n\n    // Configure the dataset with dynamic properties based on args\n    const datasetConfig = {\n        label: chartLabel,\n        data: yValues,\n        backgroundColor, // Use shorthand property names\n        borderColor,\n        borderWidth,\n        fill: args.fill !== undefined ? args.fill : false // Check if fill is provided; otherwise, default to false\n    };\n\n    const chart = new Chart(\n        document.getElementById(args.elementid),\n        {\n            type: chartType, // Use the checked or default type\n            data: {\n                labels: xValues,\n                datasets: [datasetConfig]\n            },\n            options: {\n                scales: {\n                    y: {\n                        beginAtZero: args.beginAtZero !== undefined ? args.beginAtZero : true, // Begin at zero unless specified otherwise\n                        max: args.yMax // Optionally set a maximum value for the y-axis\n                    },\n                    x: {\n                        // Additional options for the x-axis can be defined here\n                    }\n                },\n                plugins: {\n                    legend: {\n                        display: false\n                        // display: args.legendDisplay !== undefined ? args.legendDisplay : true, // Control legend display\n                    },\n                    tooltip: {\n                        enabled: args.tooltipEnabled !== undefined ? args.tooltipEnabled : true, // Enable or disable tooltips\n                    },\n                    title: {\n                        display: args.title !== undefined, // Only display the title if it's provided\n                        text: args.title, // Use the title from args\n                        color: args.titleColor || 'white', // Default title color to black\n                        font: {\n                            size: args.titleFontSize || 16 // Default font size\n                        }\n                    }\n                },\n                responsive: args.responsive !== undefined ? args.responsive : true, // Make chart responsive by default\n                maintainAspectRatio: args.maintainAspectRatio !== undefined ? args.maintainAspectRatio : false\n            }\n        }\n    );\n}\n\n"}],"trigger":"Load"},"version":2,"exported":true,"attributes":{"data":{"name":"data"},"type":{"name":"type"},"elementid":{"name":"elementid"}},"onAttributeChange":{"actions":[{"name":"ResetChart","version":2,"arguments":[{"name":"elementId","formula":{"path":["Attributes","elementid"],"type":"path"}}],"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nfunction ResetChart (args, ctx) {\n    let chartStatus = Chart.getChart(args.elementId);\nif (chartStatus !== undefined) {\n  chartStatus.destroy();\n}\n}"},{"name":"RenderChart","version":2,"arguments":[{"name":"data","formula":{"path":["Attributes","data"],"type":"path"}},{"name":"type","formula":{"path":["Attributes","type"],"type":"path"}},{"name":"elementid","formula":{"path":["Attributes","elementid"],"type":"path"}}],"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nasync function RenderChart (args, ctx) {\n  const cdn = [import(\"https://cdn.jsdelivr.net/npm/chart.js\")];\n    await Promise.all(cdn);\n\n    const data = args.data;\n\n    const xValues = data.map(item => item[Object.keys(item)[0]]);\n    const yValues = data.map(item => item[Object.keys(item)[1]]);\n\n    // Check if 'type' is defined, otherwise set to 'bar' as default\n    const chartType = args.type || 'bar';\n\n    const chart = new Chart(\n        document.getElementById(args.elementid),\n        {\n            type: chartType, // Use the checked or default type\n            data: {\n                labels: xValues,\n                datasets: [\n                    {\n                        data: yValues\n                    }\n                ]\n            }\n        }\n    );\n}"}],"trigger":"Attribute change"}},{"name":"multi-chart","nodes":{"root":{"tag":"multi-chart","type":"element","children":["wzKbf4x_cwixJf8HhFpA-"],"classes":{"chAOKJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wzKbf4x_cwixJf8HhFpA-":{"tag":"canvas","type":"element","attrs":{"id":{"path":["Attributes","elementid"],"type":"path"}},"customProperties":{}}},"onLoad":{"actions":[{"name":"RenderMultiChart","version":2,"exported":true,"arguments":[{"name":"data","formula":{"path":["Attributes","data"],"type":"path"}},{"name":"type","formula":{"path":["Attributes","type"],"type":"path"}},{"name":"elementid","formula":{"path":["Attributes","elementid"],"type":"path"}},{"name":"datalabels","formula":{"path":["Attributes","datalabels"],"type":"path"}},{"name":"showLegend","formula":{"path":["Attributes","showlegend"],"type":"path"}}],"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nasync function RenderMultiChart(args, ctx) {\n    const cdn = [import(\"https://cdn.jsdelivr.net/npm/chart.js\")];\n    await Promise.all(cdn);\n\n    const data = args.data;\n    const datalabels = args.datalabels\n\n    const xValues = data[0].map(item => item[Object.keys(item)[0]]);\n    // const transformedData = data.map(subArray => ({\n    //     data: subArray.map(item => item[Object.keys(item)[1]]),\n    //     fill: false\n    // }));\n\n    const transformedData = data.map((subArray, index) => {\n    // Create the base dataset object\n    let dataset = {\n        data: subArray.map(item => item[Object.keys(item)[1]]), // Map over sub-array to extract the y values\n        fill: false\n    };\n\n    // Conditionally add label if labels array exists and the current index is valid\n    if (datalabels && datalabels[index]) {\n        dataset.label = datalabels[index];\n    }\n\n    return dataset;\n});\n\n\n\n\n    const yValues = transformedData\n\n    // Check if 'type' is defined, otherwise set to 'bar' as default\n\n\n    const chartType = args.type || 'bar'; // Default type to 'bar' if not provided\n    const chartLabel = args.label || '';  // Default label to an empty string if not provided\n    const backgroundColor = args.backgroundColor || 'rgba(0, 123, 255, 0.5)'; // Default background color\n    const borderColor = args.borderColor || 'rgba(0, 123, 255, 1)'; // Default border color\n    const borderWidth = args.borderWidth || 1; // Default border width\n\n    // Configure the dataset with dynamic properties based on args\n    const datasetConfig = {\n        label: chartLabel,\n        data: yValues,\n        backgroundColor, // Use shorthand property names\n        borderColor,\n        borderWidth,\n        fill: args.fill !== undefined ? args.fill : false // Check if fill is provided; otherwise, default to false\n    };\n\n    const chart = new Chart(\n        document.getElementById(args.elementid),\n        {\n            type: chartType, // Use the checked or default type\n            data: {\n                labels: xValues,\n                datasets: yValues\n            },\n            options: {\n                scales: {\n                    y: {\n                        beginAtZero: args.beginAtZero !== undefined ? args.beginAtZero : true, // Begin at zero unless specified otherwise\n                        max: args.yMax // Optionally set a maximum value for the y-axis\n                    },\n                    x: {\n                        // Additional options for the x-axis can be defined here\n                    }\n                },\n                plugins: {\n                    legend: {\n                        display: args.showLegend !== undefined ? args.showLegend : false,\n                        // display: args.legendDisplay !== undefined ? args.legendDisplay : true, // Control legend display\n                    },\n                    tooltip: {\n                        enabled: args.tooltipEnabled !== undefined ? args.tooltipEnabled : true, // Enable or disable tooltips\n                    },\n                    title: {\n                        display: args.title !== undefined, // Only display the title if it's provided\n                        text: args.title, // Use the title from args\n                        color: args.titleColor || 'white', // Default title color to black\n                        font: {\n                            size: args.titleFontSize || 16 // Default font size\n                        }\n                    }\n                },\n                responsive: args.responsive !== undefined ? args.responsive : true, // Make chart responsive by default\n                maintainAspectRatio: args.maintainAspectRatio !== undefined ? args.maintainAspectRatio : true\n            }\n        }\n    );\n}"}],"trigger":"Load"},"version":2,"exported":true,"attributes":{"data":{"name":"data"},"type":{"name":"type"},"elementid":{"name":"elementid"},"datalabels":{"name":"datalabels"},"showlegend":{"name":"showlegend"}},"onAttributeChange":{"actions":[{"name":"ResetChart","version":2,"exported":true,"arguments":[{"name":"elementId","formula":{"path":["Attributes","elementid"],"type":"path"}}],"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nfunction ResetChart (args, ctx) {\n    let chartStatus = Chart.getChart(args.elementId);\nif (chartStatus !== undefined) {\n  chartStatus.destroy();\n}\n}"},{"name":"RenderMultiChart","version":2,"exported":true,"arguments":[{"name":"data","formula":{"path":["Attributes","data"],"type":"path"}},{"name":"type","formula":{"path":["Attributes","type"],"type":"path"}},{"name":"elementid","formula":{"path":["Attributes","elementid"],"type":"path"}},{"name":"datalabels","formula":{"path":["Attributes","datalabels"],"type":"path"}},{"name":"showLegend","formula":{"path":["Attributes","showlegend"],"type":"path"}}],"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nasync function RenderMultiChart(args, ctx) {\n    const cdn = [import(\"https://cdn.jsdelivr.net/npm/chart.js\")];\n    await Promise.all(cdn);\n\n    const data = args.data;\n    const datalabels = args.datalabels\n\n    const xValues = data[0].map(item => item[Object.keys(item)[0]]);\n    // const transformedData = data.map(subArray => ({\n    //     data: subArray.map(item => item[Object.keys(item)[1]]),\n    //     fill: false\n    // }));\n\n    const transformedData = data.map((subArray, index) => {\n    // Create the base dataset object\n    let dataset = {\n        data: subArray.map(item => item[Object.keys(item)[1]]), // Map over sub-array to extract the y values\n        fill: false\n    };\n\n    // Conditionally add label if labels array exists and the current index is valid\n    if (datalabels && datalabels[index]) {\n        dataset.label = datalabels[index];\n    }\n\n    return dataset;\n});\n\n\n\n\n    const yValues = transformedData\n\n    // Check if 'type' is defined, otherwise set to 'bar' as default\n\n\n    const chartType = args.type || 'bar'; // Default type to 'bar' if not provided\n    const chartLabel = args.label || '';  // Default label to an empty string if not provided\n    const backgroundColor = args.backgroundColor || 'rgba(0, 123, 255, 0.5)'; // Default background color\n    const borderColor = args.borderColor || 'rgba(0, 123, 255, 1)'; // Default border color\n    const borderWidth = args.borderWidth || 1; // Default border width\n\n    // Configure the dataset with dynamic properties based on args\n    const datasetConfig = {\n        label: chartLabel,\n        data: yValues,\n        backgroundColor, // Use shorthand property names\n        borderColor,\n        borderWidth,\n        fill: args.fill !== undefined ? args.fill : false // Check if fill is provided; otherwise, default to false\n    };\n\n    const chart = new Chart(\n        document.getElementById(args.elementid),\n        {\n            type: chartType, // Use the checked or default type\n            data: {\n                labels: xValues,\n                datasets: yValues\n            },\n            options: {\n                scales: {\n                    y: {\n                        beginAtZero: args.beginAtZero !== undefined ? args.beginAtZero : true, // Begin at zero unless specified otherwise\n                        max: args.yMax // Optionally set a maximum value for the y-axis\n                    },\n                    x: {\n                        // Additional options for the x-axis can be defined here\n                    }\n                },\n                plugins: {\n                    legend: {\n                        display: args.showLegend !== undefined ? args.showLegend : false,\n                        // display: args.legendDisplay !== undefined ? args.legendDisplay : true, // Control legend display\n                    },\n                    tooltip: {\n                        enabled: args.tooltipEnabled !== undefined ? args.tooltipEnabled : true, // Enable or disable tooltips\n                    },\n                    title: {\n                        display: args.title !== undefined, // Only display the title if it's provided\n                        text: args.title, // Use the title from args\n                        color: args.titleColor || 'white', // Default title color to black\n                        font: {\n                            size: args.titleFontSize || 16 // Default font size\n                        }\n                    }\n                },\n                responsive: args.responsive !== undefined ? args.responsive : true, // Make chart responsive by default\n                maintainAspectRatio: args.maintainAspectRatio !== undefined ? args.maintainAspectRatio : true\n            }\n        }\n    );\n}"}],"trigger":"Attribute change"}}]}