react-chart-js/examples/line-chart-example/dist/static/js/main.8b5d3ab1.chunk.js.map

1 line
8.8 KiB
Plaintext
Raw Normal View History

2020-10-15 10:02:38 +07:00
{"version":3,"sources":["LineChartExample.tsx","App.tsx","serviceWorker.ts","index.tsx"],"names":["LineChartExample","props","chartConfig","type","options","responsive","title","display","text","tooltips","mode","intersect","hover","data","datasets","label","fill","borderColor","labels","App","className","Boolean","window","location","hostname","match","ReactDOM","render","StrictMode","document","getElementById","navigator","serviceWorker","ready","then","registration","unregister","catch","error","console","message"],"mappings":"mNA6CeA,MA1Cf,SAA0BC,GACtB,OACI,kBAAC,eAAD,CACIC,YAAa,CACTC,KAAM,OACNC,QAAS,CACLC,YAAY,EACZC,MAAO,CACHC,SAAS,EACTC,KAAM,oBAEVC,SAAU,CACNC,KAAM,QACNC,WAAW,GAEfC,MAAO,CACHF,KAAM,UACNC,WAAW,IAGnBE,KAAM,CACFC,SAAU,CACN,CACIC,MAAO,YACPF,KAAM,CAAC,EAAG,GAAI,IACdG,MAAM,EACNC,YAAa,WAEjB,CACIF,MAAO,YACPF,KAAM,CAAC,GAAI,GAAI,IACfG,MAAM,EACNC,YAAa,YAGrBC,OAAQ,CAAC,MAAO,MAAO,YC1B5BC,MARf,WACE,OACE,yBAAKC,UAAU,OACb,kBAAC,EAAD,QCKcC,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DCZNC,IAASC,OACP,kBAAC,IAAMC,WAAP,KACE,kBAAC,EAAD,OAEFC,SAASC,eAAe,SDiIpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrBC,MAAK,SAAAC,GACJA,EAAaC,gBAEdC,OAAM,SAAAC,GACLC,QAAQD,MAAMA,EAAME,a","file":"static/js/main.8b5d3ab1.chunk.js","sourcesContent":["import React from 'react';\r\nimport { ReactChartJs } from '@cubetiq/react-chart-js';\r\n\r\nfunction LineChartExample(props: any) {\r\n return (\r\n <ReactChartJs\r\n chartConfig={{\r\n type: 'line',\r\n options: {\r\n responsive: true,\r\n title: {\r\n display: true,\r\n text: 'Monthly Payments',\r\n },\r\n tooltips: {\r\n mode: 'index',\r\n intersect: false,\r\n },\r\n hover: {\r\n mode: 'nearest',\r\n intersect: true,\r\n },\r\n },\r\n data: {\r\n datasets: [\r\n {\r\n label: 'Part-time',\r\n data: [5, 10, 30],\r\n fill: false,\r\n borderColor: '#ff6384',\r\n },\r\n {\r\n label: 'Full-time',\r\n data: [10, 15, 45],\r\n fill: false,\r\n borderColor: '#36a2eb',\r\n },\r\n ],\r\n labels: ['Jan', 'Feb', 'Mar'],\r\n },\r\n }}\r\n />\r\n );\r\n}\r\n\r\nexport default LineChartExample;\r\n","import React from 'react';\nimport './App.css';\nimport LineChartExample from './LineChartExample';\n\nfunction App() {\n return (\n <div className=\"app\">\n <LineChartExample />\n </div>\n );\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\ntype Config = {\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\n onUpdate?: (regist