@amcharts/amcharts5-react-native 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/dist/generated.js +1 -1
- package/dist/generated.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
|
|
|
5
5
|
Please note, that this project, while following numbering syntax, it DOES NOT
|
|
6
6
|
adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.
|
|
7
7
|
|
|
8
|
+
## [5.0.2] - 2026-10-26
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Loads amCharts 5.21.5.
|
|
12
|
+
|
|
13
|
+
|
|
8
14
|
## [5.0.1] - 2026-10-23
|
|
9
15
|
|
|
10
16
|
### Added
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# amCharts 5 for React Native
|
|
2
2
|
|
|
3
|
-
A React Native component for [amCharts 5](https://
|
|
3
|
+
A React Native component for [amCharts 5](https://docs.amcharts.com/v5/).
|
|
4
4
|
The chart is drawn by the library itself, in a WebView, so every chart type,
|
|
5
5
|
theme and feature works as it does on the web, on canvas or as SVG.
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ import { AmChart } from "@amcharts/amcharts5-react-native";
|
|
|
26
26
|
<AmChart config={config} themes={["Animated"]} style={{ height: 300 }} />
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
The config is a [JSON config](https://
|
|
29
|
+
The config is a [JSON config](https://docs.amcharts.com/v5/concepts/serializing/),
|
|
30
30
|
as an object or a string. The chart types it uses are loaded for it, and so
|
|
31
31
|
is map geodata it names by its global name (`"geoJSON": "am5geodata_worldLow"`).
|
|
32
32
|
A config with different content makes the chart again; the same content
|
|
@@ -190,5 +190,5 @@ JSON config with `run()`, and a map.
|
|
|
190
190
|
|
|
191
191
|
## More
|
|
192
192
|
|
|
193
|
-
- [amCharts 5 documentation](https://
|
|
193
|
+
- [amCharts 5 documentation](https://docs.amcharts.com/v5/) and [demos](https://www.amcharts.com/demos/)
|
|
194
194
|
- License: see [License](#license) above.
|
package/dist/generated.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pageHtml = exports.libraryVersion = void 0;
|
|
4
4
|
// Written by scripts/generate.cjs
|
|
5
|
-
exports.libraryVersion = "5.21.
|
|
5
|
+
exports.libraryVersion = "5.21.5";
|
|
6
6
|
exports.pageHtml = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\">\n<style>\nhtml, body, #chart {\n\tmargin: 0;\n\tpadding: 0;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\tbackground: transparent;\n}\nbody {\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-touch-callout: none;\n\t-webkit-user-select: none;\n\tuser-select: none;\n}\n</style>\n</head>\n<body>\n<div id=\"chart\"></div>\n<script>\n(function () {\n\t\"use strict\";\n\n\t// Which script file has each class, and which files a file needs first\n\tvar classModules = {\"AccelerationBands\":\"stock\",\"AccumulationDistribution\":\"stock\",\"AccumulativeSwingIndex\":\"stock\",\"Annotator\":\"plugins/exporting\",\"ArcDiagram\":\"flow\",\"ArcDiagramLink\":\"flow\",\"ArcDiagramNodes\":\"flow\",\"Aroon\":\"stock\",\"AverageSeries\":\"stock\",\"AverageTrueRange\":\"stock\",\"AwesomeOscillator\":\"stock\",\"Axis\":\"xy\",\"AxisBullet\":\"xy\",\"AxisLabel\":\"xy\",\"AxisLabelRadial\":\"xy\",\"AxisRenderer\":\"xy\",\"AxisRendererCircular\":\"radar\",\"AxisRendererCurveX\":\"timeline\",\"AxisRendererCurveY\":\"timeline\",\"AxisRendererRadial\":\"radar\",\"AxisRendererX\":\"xy\",\"AxisRendererY\":\"xy\",\"AxisTick\":\"xy\",\"BaseColumnSeries\":\"xy\",\"BollingerBands\":\"stock\",\"BreadcrumbBar\":\"hierarchy\",\"BullBearPower\":\"stock\",\"CalloutSeries\":\"stock\",\"Candlestick\":\"xy\",\"CandlestickSeries\":\"xy\",\"CategoryAxis\":\"xy\",\"CategoryDateAxis\":\"xy\",\"ChaikinMoneyFlow\":\"stock\",\"ChaikinOscillator\":\"stock\",\"ChartIndicator\":\"stock\",\"ChartSerializer\":\"plugins/json\",\"Chord\":\"flow\",\"ChordDirected\":\"flow\",\"ChordLink\":\"flow\",\"ChordLinkDirected\":\"flow\",\"ChordNodes\":\"flow\",\"ChordNonRibbon\":\"flow\",\"ClockHand\":\"radar\",\"ClusteredPointSeries\":\"map\",\"ColorControl\":\"stock\",\"ColorPicker\":\"plugins/colorPicker\",\"ColorPickerButton\":\"plugins/colorPicker\",\"ColumnSeries\":\"xy\",\"CommodityChannelIndex\":\"stock\",\"ComparisonControl\":\"stock\",\"CurveChart\":\"timeline\",\"CurveColumnSeries\":\"timeline\",\"CurveCursor\":\"timeline\",\"CurveLineSeries\":\"timeline\",\"DataSaveControl\":\"stock\",\"DateAxis\":\"xy\",\"DateRangeSelector\":\"stock\",\"DisparityIndex\":\"stock\",\"DoodleSeries\":\"stock\",\"DrawingControl\":\"stock\",\"DrawingSeries\":\"stock\",\"DrawingToolControl\":\"stock\",\"Dropdown\":\"stock\",\"DropdownColors\":\"stock\",\"DropdownControl\":\"stock\",\"DropdownList\":\"stock\",\"DropdownListControl\":\"stock\",\"DurationAxis\":\"xy\",\"EditableAxisLabel\":\"xy\",\"EllipseSeries\":\"stock\",\"Exporting\":\"plugins/exporting\",\"ExportingMenu\":\"plugins/exporting\",\"FibonacciSeries\":\"stock\",\"FibonacciTimezoneSeries\":\"stock\",\"Flow\":\"flow\",\"FlowLink\":\"flow\",\"FlowNode\":\"flow\",\"FlowNodes\":\"flow\",\"ForceDirected\":\"hierarchy\",\"FunnelSeries\":\"percent\",\"FunnelSlice\":\"percent\",\"Gantt\":\"gantt\",\"GanttCategoryAxis\":\"gantt\",\"GanttCategoryAxisRenderer\":\"gantt\",\"GanttDateAxis\":\"gantt\",\"GanttDateAxisRenderer\":\"gantt\",\"GanttSeries\":\"gantt\",\"GaplessDateAxis\":\"xy\",\"GraticuleSeries\":\"map\",\"Grid\":\"xy\",\"HeikinAshi\":\"stock\",\"Hierarchy\":\"hierarchy\",\"HierarchyLink\":\"hierarchy\",\"HierarchyNode\":\"hierarchy\",\"HorizontalLineSeries\":\"stock\",\"HorizontalRaySeries\":\"stock\",\"IconControl\":\"stock\",\"IconSeries\":\"stock\",\"Indicator\":\"stock\",\"IndicatorControl\":\"stock\",\"IntervalControl\":\"stock\",\"LabelSeries\":\"stock\",\"LineArrowSeries\":\"stock\",\"LineSeries\":\"xy\",\"LinkedHierarchy\":\"hierarchy\",\"LinkedHierarchyNode\":\"hierarchy\",\"MACD\":\"stock\",\"MACross\":\"stock\",\"MapChart\":\"map\",\"MapLine\":\"map\",\"MapLineSeries\":\"map\",\"MapPointSeries\":\"map\",\"MapPolygon\":\"map\",\"MapPolygonSeries\":\"map\",\"MapRasterSeries\":\"map\",\"MapSankeyNodes\":\"map\",\"MapSankeySeries\":\"map\",\"MapSeries\":\"map\",\"Measure\":\"stock\",\"MedianPrice\":\"stock\",\"Momentum\":\"stock\",\"MovingAverage\":\"stock\",\"MovingAverageDeviation\":\"stock\",\"MovingAverageEnvelope\":\"stock\",\"NightSeries\":\"map\",\"OHLC\":\"xy\",\"OHLCSeries\":\"xy\",\"OnBalanceVolume\":\"stock\",\"OverboughtOversold\":\"stock\",\"PVT\":\"stock\",\"Pack\":\"hierarchy\",\"PanelControls\":\"stock\",\"ParallelChannelSeries\":\"stock\",\"Partition\":\"hierarchy\",\"PercentChart\":\"percent\",\"PercentSeries\":\"percent\",\"PeriodSelector\":\"stock\",\"PictorialStackedSeries\":\"percent\",\"PieChart\":\"percent\",\"PieSeries\":\"percent\",\"PixelMapSeries\":\"map\",\"PolylineSeries\":\"stock\",\"PyramidSeries\":\"percent\",\"QuadrantLineSeries\":\"stock\",\"RadarChart\":\"radar\",\"RadarColumnSeries\":\"radar\",\"RadarCursor\":\"radar\",\"RadarLineSeries\":\"radar\",\"RectangleSeries\":\"stock\",\"RegressionSeries\":\"stock\",\"RelativeStrengthIndex\":\"stock\",\"ResetControl\":\"stock\",\"Sankey\":\"flow\",\"SankeyLink\":\"flow\",\"SankeyNodes\":\"flow\",\"Serializer\":\"plugins/json\",\"SeriesTypeControl\":\"stock\",\"SerpentineChart\":\"timeline\",\"SettingsControl\":\"stock\",\"SettingsModal\":\"stock\",\"SimpleLineSeries\":\"stock\",\"SliceGrouper\":\"plugins/sliceGrouper\",\"SlicedChart\":\"percent\",\"SmoothedRadarLineSeries\":\"radar\",\"SmoothedXLineSeries\":\"xy\",\"SmoothedXYLineSeries\":\"xy\",\"SmoothedYLineSeries\":\"xy\",\"SpiralChart\":\"timeline\",\"StandardDeviation\":\"stock\",\"StepLineSeries\":\"xy\",\"StochasticMomentumIndex\":\"stock\",\"StochasticOscillator\":\"stock\",\"StockChart\":\"stock\",\"StockControl\":\"stock\",\"StockLegend\":\"stock\",\"StockPanel\":\"stock\",\"StockToolbar\":\"stock\",\"Sunburst\":\"hierarchy\",\"SuperTrend\":\"stock\",\"Tree\":\"hierarchy\",\"Treemap\":\"hierarchy\",\"TrendLineSeries\":\"stock\",\"Trix\":\"stock\",\"TypicalPrice\":\"stock\",\"VWAP\":\"stock\",\"ValueAxis\":\"xy\",\"Venn\":\"venn\",\"VerticalLineSeries\":\"stock\",\"Volume\":\"stock\",\"VolumeProfile\":\"stock\",\"VoronoiTreemap\":\"hierarchy\",\"WilliamsR\":\"stock\",\"WordCloud\":\"wc\",\"XYChart\":\"xy\",\"XYChartScrollbar\":\"xy\",\"XYCursor\":\"xy\",\"XYSeries\":\"xy\",\"ZigZag\":\"stock\",\"ZoomControl\":\"map\"};\n\tvar scriptDependencies = {\"pie\":[\"percent\"],\"funnel\":[\"percent\"],\"radar\":[\"xy\"],\"gantt\":[\"xy\",\"plugins/colorPicker\"],\"stock\":[\"xy\"],\"timeline\":[\"xy\"],\"element\":[\"index\",\"plugins/json\"]};\n\tvar modules = {};\n\tObject.keys(classModules).forEach(function (name) {\n\t\tmodules[classModules[name]] = true;\n\t});\n\n\tvar current = 0;\n\tvar options;\n\tvar root;\n\tvar chart;\n\tvar result;\n\tvar update;\n\tvar scripts = {};\n\n\tfunction send(message) {\n\t\tvar text;\n\t\ttry {\n\t\t\ttext = JSON.stringify(message);\n\t\t} catch (error) {\n\t\t\ttext = JSON.stringify({ type: \"error\", message: \"Could not send \" + message.name + \": \" + error.message });\n\t\t}\n\t\twindow.ReactNativeWebView.postMessage(text);\n\t}\n\n\tfunction post(name, value) {\n\t\tsend({ type: \"message\", name: String(name), value: value });\n\t}\n\n\tfunction fail(error) {\n\t\tsend({ type: \"error\", message: String(error && error.message ? error.message : error) });\n\t}\n\n\twindow.addEventListener(\"error\", function (event) {\n\t\tfail(event.error || event.message);\n\t});\n\n\twindow.addEventListener(\"unhandledrejection\", function (event) {\n\t\tfail(event.reason);\n\t});\n\n\t// A geodata global's file: am5geodata_region_world_europeLow > geodata/region/world/europeLow\n\tfunction geodataModule(name) {\n\t\treturn \"geodata/\" + (/^lang_/.test(name) ? \"lang/\" + name.slice(5) : name.replace(/_/g, \"/\"));\n\t}\n\n\t// A global's file: am5xy > xy, am5plugins_exporting > plugins/exporting,\n\t// am5fonts_notosans_sc > fonts/notosans-sc\n\tfunction globalModule(name) {\n\t\tvar rest = name.slice(3);\n\t\tvar match = /^(themes|plugins|locales)_(.+)$/.exec(rest);\n\t\tif (match) {\n\t\t\treturn match[1] + \"/\" + match[2];\n\t\t}\n\t\tif (/^fonts_./.test(rest)) {\n\t\t\treturn \"fonts/\" + rest.slice(6).replace(/_/g, \"-\");\n\t\t}\n\t\tif (/^geodata_./.test(rest)) {\n\t\t\treturn geodataModule(rest.slice(8));\n\t\t}\n\t\treturn modules[rest] ? rest : undefined;\n\t}\n\n\t// A theme is a name, or [name, settings]\n\tfunction themeName(theme) {\n\t\treturn Array.isArray(theme) ? theme[0] : theme;\n\t}\n\n\tfunction add(list, name) {\n\t\tif (!name || name === \"index\" || list.indexOf(name) !== -1) {\n\t\t\treturn;\n\t\t}\n\t\t(scriptDependencies[name] || []).forEach(function (dependency) {\n\t\t\tadd(list, dependency);\n\t\t});\n\t\tlist.push(name);\n\t}\n\n\t// The files a config needs: its classes, and geodata named by its global\n\tfunction addConfig(list, value) {\n\t\tif (typeof value === \"string\") {\n\t\t\tif (/^am5geodata_[A-Za-z0-9_]+$/.test(value)) {\n\t\t\t\tadd(list, geodataModule(value.slice(11)));\n\t\t\t}\n\t\t}\n\t\telse if (Array.isArray(value)) {\n\t\t\tvalue.forEach(function (item) {\n\t\t\t\taddConfig(list, item);\n\t\t\t});\n\t\t}\n\t\telse if (value && typeof value === \"object\") {\n\t\t\tif (typeof value.type === \"string\") {\n\t\t\t\tadd(list, classModules[value.type]);\n\t\t\t}\n\t\t\tObject.keys(value).forEach(function (key) {\n\t\t\t\taddConfig(list, value[key]);\n\t\t\t});\n\t\t}\n\t}\n\n\t// The files code needs, from the globals it uses, and the classes of a\n\t// config it gives the JSON parser\n\tfunction addCode(list, code) {\n\t\t(code.match(/\\bam5[A-Za-z0-9_]*/g) || []).forEach(function (name) {\n\t\t\tadd(list, globalModule(name));\n\t\t});\n\t\tif (code.indexOf(\"am5plugins_json\") !== -1) {\n\t\t\t(code.match(/\\btype[\"']?\\s*:\\s*[\"'][A-Za-z0-9_]+[\"']/g) || []).forEach(function (match) {\n\t\t\t\tadd(list, classModules[/[\"']([A-Za-z0-9_]+)[\"']$/.exec(match)[1]]);\n\t\t\t});\n\t\t}\n\t}\n\n\t// Its own scope, so that it may declare `data` or `root` itself\n\tfunction compile(names, code) {\n\t\treturn new Function(names.join(\",\"), \"return (function () {\\n\" + code + \"\\n})();\");\n\t}\n\n\tfunction url(name) {\n\t\tif (/^[a-z]+:/i.test(name)) {\n\t\t\treturn name;\n\t\t}\n\t\tif (name.indexOf(\"geodata/\") === 0) {\n\t\t\treturn options.geodataUrl + name.slice(8) + \".js\";\n\t\t}\n\t\tif (name.indexOf(\"fonts/\") === 0) {\n\t\t\treturn options.fontsUrl + name.slice(6) + \".js\";\n\t\t}\n\t\treturn options.libraryUrl + name + \".js\";\n\t}\n\n\t// Downloaded side by side, run in order\n\tfunction load(src) {\n\t\tif (!scripts[src]) {\n\t\t\tscripts[src] = new Promise(function (resolve, reject) {\n\t\t\t\tvar script = document.createElement(\"script\");\n\t\t\t\tscript.src = src;\n\t\t\t\tscript.async = false;\n\t\t\t\tscript.onload = function () {\n\t\t\t\t\tresolve();\n\t\t\t\t};\n\t\t\t\tscript.onerror = function () {\n\t\t\t\t\tdelete scripts[src];\n\t\t\t\t\treject(new Error(\"Could not load \" + src));\n\t\t\t\t};\n\t\t\t\tdocument.head.appendChild(script);\n\t\t\t});\n\t\t}\n\t\treturn scripts[src];\n\t}\n\n\tfunction dispose() {\n\t\tif (root) {\n\t\t\troot.dispose();\n\t\t}\n\t\troot = undefined;\n\t\tchart = undefined;\n\t\tresult = undefined;\n\t\tupdate = undefined;\n\t}\n\n\tfunction build(next) {\n\t\tvar id = ++current;\n\t\toptions = next;\n\t\tdispose();\n\n\t\tvar list = [];\n\t\tif (next.config !== undefined) {\n\t\t\tadd(list, \"plugins/json\");\n\t\t\taddConfig(list, next.config);\n\t\t}\n\t\telse {\n\t\t\taddCode(list, next.code || \"\");\n\t\t}\n\t\tnext.themes.forEach(function (theme) {\n\t\t\tadd(list, \"themes/\" + themeName(theme));\n\t\t});\n\t\tnext.modules.forEach(function (name) {\n\t\t\tadd(list, name);\n\t\t});\n\n\t\treturn Promise.all([\"index\"].concat(list).map(function (name) {\n\t\t\treturn load(url(name));\n\t\t})).then(function () {\n\t\t\tif (id !== current) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar am5 = window.am5;\n\t\t\tvar settings = {};\n\t\t\tif (next.renderer === \"svg\") {\n\t\t\t\tif (!am5.SVGRenderer) {\n\t\t\t\t\tthrow new Error(\"renderer=\\\"svg\\\" needs amCharts 5.21.0 or later\");\n\t\t\t\t}\n\t\t\t\tsettings.renderer = am5.SVGRenderer;\n\t\t\t}\n\n\t\t\tvar themes = next.themes.map(function (entry) {\n\t\t\t\tvar name = themeName(entry);\n\t\t\t\tvar theme = window[\"am5themes_\" + name];\n\t\t\t\tif (!theme) {\n\t\t\t\t\tthrow new Error(\"No theme \" + name);\n\t\t\t\t}\n\t\t\t\treturn { theme: theme, settings: Array.isArray(entry) ? entry[1] : undefined };\n\t\t\t});\n\n\t\t\t// Before the root: it decides on the logo when it is made\n\t\t\t(next.licenses || []).forEach(function (license) {\n\t\t\t\tif (am5.registry.licenses.indexOf(license) === -1) {\n\t\t\t\t\tam5.addLicense(license);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\troot = am5.Root.new(\"chart\", settings);\n\t\t\troot.setThemes(themes.map(function (entry) {\n\t\t\t\treturn entry.settings ? entry.theme.new(root, entry.settings) : entry.theme.new(root);\n\t\t\t}));\n\n\t\t\tif (next.config !== undefined) {\n\t\t\t\treturn window.am5plugins_json.JsonParser.new(root).parse(next.config, { parent: root.container }).then(function (parsed) {\n\t\t\t\t\tif (id === current) {\n\t\t\t\t\t\tchart = parsed;\n\t\t\t\t\t\tsend({ type: \"ready\" });\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// A promise it returns is waited for\n\t\t\treturn Promise.resolve(compile([\"root\", \"data\", \"post\"], next.code || \"\")(root, next.data, post)).then(function (value) {\n\t\t\t\tif (id === current) {\n\t\t\t\t\tresult = value;\n\t\t\t\t\tif (typeof value === \"function\") {\n\t\t\t\t\t\tupdate = value;\n\t\t\t\t\t}\n\t\t\t\t\tsend({ type: \"ready\" });\n\t\t\t\t}\n\t\t\t});\n\n\t\t}).catch(function (error) {\n\t\t\tif (id === current) {\n\t\t\t\tdispose();\n\t\t\t\tfail(error);\n\t\t\t}\n\t\t});\n\t}\n\n\twindow.amChartPage = {\n\t\tbuild: build,\n\n\t\t// New data: to the function the code returned, or the chart is made\n\t\t// again. A config chart only keeps it, for run()\n\t\tdata: function (data) {\n\t\t\tif (!options) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\toptions.data = data;\n\t\t\tif (options.config !== undefined) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (update) {\n\t\t\t\ttry {\n\t\t\t\t\tupdate(data);\n\t\t\t\t}\n\t\t\t\tcatch (error) {\n\t\t\t\t\tfail(error);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbuild(options);\n\t\t\t}\n\t\t},\n\n\t\trun: function (code) {\n\t\t\ttry {\n\t\t\t\tcompile([\"root\", \"chart\", \"result\", \"data\", \"post\"], code)(root, chart, result, options ? options.data : undefined, post);\n\t\t\t}\n\t\t\tcatch (error) {\n\t\t\t\tfail(error);\n\t\t\t}\n\t\t}\n\t};\n\n\tsend({ type: \"loaded\" });\n})();\n</script>\n</body>\n</html>\n";
|
|
7
7
|
//# sourceMappingURL=generated.js.map
|
package/dist/generated.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.js","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AACrB,QAAA,cAAc,GAAW,QAAQ,CAAC;AAClC,QAAA,QAAQ,GAAW,yycAAyyc,CAAC","sourcesContent":["// Written by scripts/generate.cjs\nexport const libraryVersion: string = \"5.21.4\";\nexport const pageHtml: string = \"<!DOCTYPE html>\\n<html>\\n<head>\\n<meta charset=\\\"utf-8\\\">\\n<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\\\">\\n<style>\\nhtml, body, #chart {\\n\\tmargin: 0;\\n\\tpadding: 0;\\n\\twidth: 100%;\\n\\theight: 100%;\\n\\toverflow: hidden;\\n\\tbackground: transparent;\\n}\\nbody {\\n\\t-webkit-tap-highlight-color: transparent;\\n\\t-webkit-touch-callout: none;\\n\\t-webkit-user-select: none;\\n\\tuser-select: none;\\n}\\n</style>\\n</head>\\n<body>\\n<div id=\\\"chart\\\"></div>\\n<script>\\n(function () {\\n\\t\\\"use strict\\\";\\n\\n\\t// Which script file has each class, and which files a file needs first\\n\\tvar classModules = {\\\"AccelerationBands\\\":\\\"stock\\\",\\\"AccumulationDistribution\\\":\\\"stock\\\",\\\"AccumulativeSwingIndex\\\":\\\"stock\\\",\\\"Annotator\\\":\\\"plugins/exporting\\\",\\\"ArcDiagram\\\":\\\"flow\\\",\\\"ArcDiagramLink\\\":\\\"flow\\\",\\\"ArcDiagramNodes\\\":\\\"flow\\\",\\\"Aroon\\\":\\\"stock\\\",\\\"AverageSeries\\\":\\\"stock\\\",\\\"AverageTrueRange\\\":\\\"stock\\\",\\\"AwesomeOscillator\\\":\\\"stock\\\",\\\"Axis\\\":\\\"xy\\\",\\\"AxisBullet\\\":\\\"xy\\\",\\\"AxisLabel\\\":\\\"xy\\\",\\\"AxisLabelRadial\\\":\\\"xy\\\",\\\"AxisRenderer\\\":\\\"xy\\\",\\\"AxisRendererCircular\\\":\\\"radar\\\",\\\"AxisRendererCurveX\\\":\\\"timeline\\\",\\\"AxisRendererCurveY\\\":\\\"timeline\\\",\\\"AxisRendererRadial\\\":\\\"radar\\\",\\\"AxisRendererX\\\":\\\"xy\\\",\\\"AxisRendererY\\\":\\\"xy\\\",\\\"AxisTick\\\":\\\"xy\\\",\\\"BaseColumnSeries\\\":\\\"xy\\\",\\\"BollingerBands\\\":\\\"stock\\\",\\\"BreadcrumbBar\\\":\\\"hierarchy\\\",\\\"BullBearPower\\\":\\\"stock\\\",\\\"CalloutSeries\\\":\\\"stock\\\",\\\"Candlestick\\\":\\\"xy\\\",\\\"CandlestickSeries\\\":\\\"xy\\\",\\\"CategoryAxis\\\":\\\"xy\\\",\\\"CategoryDateAxis\\\":\\\"xy\\\",\\\"ChaikinMoneyFlow\\\":\\\"stock\\\",\\\"ChaikinOscillator\\\":\\\"stock\\\",\\\"ChartIndicator\\\":\\\"stock\\\",\\\"ChartSerializer\\\":\\\"plugins/json\\\",\\\"Chord\\\":\\\"flow\\\",\\\"ChordDirected\\\":\\\"flow\\\",\\\"ChordLink\\\":\\\"flow\\\",\\\"ChordLinkDirected\\\":\\\"flow\\\",\\\"ChordNodes\\\":\\\"flow\\\",\\\"ChordNonRibbon\\\":\\\"flow\\\",\\\"ClockHand\\\":\\\"radar\\\",\\\"ClusteredPointSeries\\\":\\\"map\\\",\\\"ColorControl\\\":\\\"stock\\\",\\\"ColorPicker\\\":\\\"plugins/colorPicker\\\",\\\"ColorPickerButton\\\":\\\"plugins/colorPicker\\\",\\\"ColumnSeries\\\":\\\"xy\\\",\\\"CommodityChannelIndex\\\":\\\"stock\\\",\\\"ComparisonControl\\\":\\\"stock\\\",\\\"CurveChart\\\":\\\"timeline\\\",\\\"CurveColumnSeries\\\":\\\"timeline\\\",\\\"CurveCursor\\\":\\\"timeline\\\",\\\"CurveLineSeries\\\":\\\"timeline\\\",\\\"DataSaveControl\\\":\\\"stock\\\",\\\"DateAxis\\\":\\\"xy\\\",\\\"DateRangeSelector\\\":\\\"stock\\\",\\\"DisparityIndex\\\":\\\"stock\\\",\\\"DoodleSeries\\\":\\\"stock\\\",\\\"DrawingControl\\\":\\\"stock\\\",\\\"DrawingSeries\\\":\\\"stock\\\",\\\"DrawingToolControl\\\":\\\"stock\\\",\\\"Dropdown\\\":\\\"stock\\\",\\\"DropdownColors\\\":\\\"stock\\\",\\\"DropdownControl\\\":\\\"stock\\\",\\\"DropdownList\\\":\\\"stock\\\",\\\"DropdownListControl\\\":\\\"stock\\\",\\\"DurationAxis\\\":\\\"xy\\\",\\\"EditableAxisLabel\\\":\\\"xy\\\",\\\"EllipseSeries\\\":\\\"stock\\\",\\\"Exporting\\\":\\\"plugins/exporting\\\",\\\"ExportingMenu\\\":\\\"plugins/exporting\\\",\\\"FibonacciSeries\\\":\\\"stock\\\",\\\"FibonacciTimezoneSeries\\\":\\\"stock\\\",\\\"Flow\\\":\\\"flow\\\",\\\"FlowLink\\\":\\\"flow\\\",\\\"FlowNode\\\":\\\"flow\\\",\\\"FlowNodes\\\":\\\"flow\\\",\\\"ForceDirected\\\":\\\"hierarchy\\\",\\\"FunnelSeries\\\":\\\"percent\\\",\\\"FunnelSlice\\\":\\\"percent\\\",\\\"Gantt\\\":\\\"gantt\\\",\\\"GanttCategoryAxis\\\":\\\"gantt\\\",\\\"GanttCategoryAxisRenderer\\\":\\\"gantt\\\",\\\"GanttDateAxis\\\":\\\"gantt\\\",\\\"GanttDateAxisRenderer\\\":\\\"gantt\\\",\\\"GanttSeries\\\":\\\"gantt\\\",\\\"GaplessDateAxis\\\":\\\"xy\\\",\\\"GraticuleSeries\\\":\\\"map\\\",\\\"Grid\\\":\\\"xy\\\",\\\"HeikinAshi\\\":\\\"stock\\\",\\\"Hierarchy\\\":\\\"hierarchy\\\",\\\"HierarchyLink\\\":\\\"hierarchy\\\",\\\"HierarchyNode\\\":\\\"hierarchy\\\",\\\"HorizontalLineSeries\\\":\\\"stock\\\",\\\"HorizontalRaySeries\\\":\\\"stock\\\",\\\"IconControl\\\":\\\"stock\\\",\\\"IconSeries\\\":\\\"stock\\\",\\\"Indicator\\\":\\\"stock\\\",\\\"IndicatorControl\\\":\\\"stock\\\",\\\"IntervalControl\\\":\\\"stock\\\",\\\"LabelSeries\\\":\\\"stock\\\",\\\"LineArrowSeries\\\":\\\"stock\\\",\\\"LineSeries\\\":\\\"xy\\\",\\\"LinkedHierarchy\\\":\\\"hierarchy\\\",\\\"LinkedHierarchyNode\\\":\\\"hierarchy\\\",\\\"MACD\\\":\\\"stock\\\",\\\"MACross\\\":\\\"stock\\\",\\\"MapChart\\\":\\\"map\\\",\\\"MapLine\\\":\\\"map\\\",\\\"MapLineSeries\\\":\\\"map\\\",\\\"MapPointSeries\\\":\\\"map\\\",\\\"MapPolygon\\\":\\\"map\\\",\\\"MapPolygonSeries\\\":\\\"map\\\",\\\"MapRasterSeries\\\":\\\"map\\\",\\\"MapSankeyNodes\\\":\\\"map\\\",\\\"MapSankeySeries\\\":\\\"map\\\",\\\"MapSeries\\\":\\\"map\\\",\\\"Measure\\\":\\\"stock\\\",\\\"MedianPrice\\\":\\\"stock\\\",\\\"Momentum\\\":\\\"stock\\\",\\\"MovingAverage\\\":\\\"stock\\\",\\\"MovingAverageDeviation\\\":\\\"stock\\\",\\\"MovingAverageEnvelope\\\":\\\"stock\\\",\\\"NightSeries\\\":\\\"map\\\",\\\"OHLC\\\":\\\"xy\\\",\\\"OHLCSeries\\\":\\\"xy\\\",\\\"OnBalanceVolume\\\":\\\"stock\\\",\\\"OverboughtOversold\\\":\\\"stock\\\",\\\"PVT\\\":\\\"stock\\\",\\\"Pack\\\":\\\"hierarchy\\\",\\\"PanelControls\\\":\\\"stock\\\",\\\"ParallelChannelSeries\\\":\\\"stock\\\",\\\"Partition\\\":\\\"hierarchy\\\",\\\"PercentChart\\\":\\\"percent\\\",\\\"PercentSeries\\\":\\\"percent\\\",\\\"PeriodSelector\\\":\\\"stock\\\",\\\"PictorialStackedSeries\\\":\\\"percent\\\",\\\"PieChart\\\":\\\"percent\\\",\\\"PieSeries\\\":\\\"percent\\\",\\\"PixelMapSeries\\\":\\\"map\\\",\\\"PolylineSeries\\\":\\\"stock\\\",\\\"PyramidSeries\\\":\\\"percent\\\",\\\"QuadrantLineSeries\\\":\\\"stock\\\",\\\"RadarChart\\\":\\\"radar\\\",\\\"RadarColumnSeries\\\":\\\"radar\\\",\\\"RadarCursor\\\":\\\"radar\\\",\\\"RadarLineSeries\\\":\\\"radar\\\",\\\"RectangleSeries\\\":\\\"stock\\\",\\\"RegressionSeries\\\":\\\"stock\\\",\\\"RelativeStrengthIndex\\\":\\\"stock\\\",\\\"ResetControl\\\":\\\"stock\\\",\\\"Sankey\\\":\\\"flow\\\",\\\"SankeyLink\\\":\\\"flow\\\",\\\"SankeyNodes\\\":\\\"flow\\\",\\\"Serializer\\\":\\\"plugins/json\\\",\\\"SeriesTypeControl\\\":\\\"stock\\\",\\\"SerpentineChart\\\":\\\"timeline\\\",\\\"SettingsControl\\\":\\\"stock\\\",\\\"SettingsModal\\\":\\\"stock\\\",\\\"SimpleLineSeries\\\":\\\"stock\\\",\\\"SliceGrouper\\\":\\\"plugins/sliceGrouper\\\",\\\"SlicedChart\\\":\\\"percent\\\",\\\"SmoothedRadarLineSeries\\\":\\\"radar\\\",\\\"SmoothedXLineSeries\\\":\\\"xy\\\",\\\"SmoothedXYLineSeries\\\":\\\"xy\\\",\\\"SmoothedYLineSeries\\\":\\\"xy\\\",\\\"SpiralChart\\\":\\\"timeline\\\",\\\"StandardDeviation\\\":\\\"stock\\\",\\\"StepLineSeries\\\":\\\"xy\\\",\\\"StochasticMomentumIndex\\\":\\\"stock\\\",\\\"StochasticOscillator\\\":\\\"stock\\\",\\\"StockChart\\\":\\\"stock\\\",\\\"StockControl\\\":\\\"stock\\\",\\\"StockLegend\\\":\\\"stock\\\",\\\"StockPanel\\\":\\\"stock\\\",\\\"StockToolbar\\\":\\\"stock\\\",\\\"Sunburst\\\":\\\"hierarchy\\\",\\\"SuperTrend\\\":\\\"stock\\\",\\\"Tree\\\":\\\"hierarchy\\\",\\\"Treemap\\\":\\\"hierarchy\\\",\\\"TrendLineSeries\\\":\\\"stock\\\",\\\"Trix\\\":\\\"stock\\\",\\\"TypicalPrice\\\":\\\"stock\\\",\\\"VWAP\\\":\\\"stock\\\",\\\"ValueAxis\\\":\\\"xy\\\",\\\"Venn\\\":\\\"venn\\\",\\\"VerticalLineSeries\\\":\\\"stock\\\",\\\"Volume\\\":\\\"stock\\\",\\\"VolumeProfile\\\":\\\"stock\\\",\\\"VoronoiTreemap\\\":\\\"hierarchy\\\",\\\"WilliamsR\\\":\\\"stock\\\",\\\"WordCloud\\\":\\\"wc\\\",\\\"XYChart\\\":\\\"xy\\\",\\\"XYChartScrollbar\\\":\\\"xy\\\",\\\"XYCursor\\\":\\\"xy\\\",\\\"XYSeries\\\":\\\"xy\\\",\\\"ZigZag\\\":\\\"stock\\\",\\\"ZoomControl\\\":\\\"map\\\"};\\n\\tvar scriptDependencies = {\\\"pie\\\":[\\\"percent\\\"],\\\"funnel\\\":[\\\"percent\\\"],\\\"radar\\\":[\\\"xy\\\"],\\\"gantt\\\":[\\\"xy\\\",\\\"plugins/colorPicker\\\"],\\\"stock\\\":[\\\"xy\\\"],\\\"timeline\\\":[\\\"xy\\\"],\\\"element\\\":[\\\"index\\\",\\\"plugins/json\\\"]};\\n\\tvar modules = {};\\n\\tObject.keys(classModules).forEach(function (name) {\\n\\t\\tmodules[classModules[name]] = true;\\n\\t});\\n\\n\\tvar current = 0;\\n\\tvar options;\\n\\tvar root;\\n\\tvar chart;\\n\\tvar result;\\n\\tvar update;\\n\\tvar scripts = {};\\n\\n\\tfunction send(message) {\\n\\t\\tvar text;\\n\\t\\ttry {\\n\\t\\t\\ttext = JSON.stringify(message);\\n\\t\\t} catch (error) {\\n\\t\\t\\ttext = JSON.stringify({ type: \\\"error\\\", message: \\\"Could not send \\\" + message.name + \\\": \\\" + error.message });\\n\\t\\t}\\n\\t\\twindow.ReactNativeWebView.postMessage(text);\\n\\t}\\n\\n\\tfunction post(name, value) {\\n\\t\\tsend({ type: \\\"message\\\", name: String(name), value: value });\\n\\t}\\n\\n\\tfunction fail(error) {\\n\\t\\tsend({ type: \\\"error\\\", message: String(error && error.message ? error.message : error) });\\n\\t}\\n\\n\\twindow.addEventListener(\\\"error\\\", function (event) {\\n\\t\\tfail(event.error || event.message);\\n\\t});\\n\\n\\twindow.addEventListener(\\\"unhandledrejection\\\", function (event) {\\n\\t\\tfail(event.reason);\\n\\t});\\n\\n\\t// A geodata global's file: am5geodata_region_world_europeLow > geodata/region/world/europeLow\\n\\tfunction geodataModule(name) {\\n\\t\\treturn \\\"geodata/\\\" + (/^lang_/.test(name) ? \\\"lang/\\\" + name.slice(5) : name.replace(/_/g, \\\"/\\\"));\\n\\t}\\n\\n\\t// A global's file: am5xy > xy, am5plugins_exporting > plugins/exporting,\\n\\t// am5fonts_notosans_sc > fonts/notosans-sc\\n\\tfunction globalModule(name) {\\n\\t\\tvar rest = name.slice(3);\\n\\t\\tvar match = /^(themes|plugins|locales)_(.+)$/.exec(rest);\\n\\t\\tif (match) {\\n\\t\\t\\treturn match[1] + \\\"/\\\" + match[2];\\n\\t\\t}\\n\\t\\tif (/^fonts_./.test(rest)) {\\n\\t\\t\\treturn \\\"fonts/\\\" + rest.slice(6).replace(/_/g, \\\"-\\\");\\n\\t\\t}\\n\\t\\tif (/^geodata_./.test(rest)) {\\n\\t\\t\\treturn geodataModule(rest.slice(8));\\n\\t\\t}\\n\\t\\treturn modules[rest] ? rest : undefined;\\n\\t}\\n\\n\\t// A theme is a name, or [name, settings]\\n\\tfunction themeName(theme) {\\n\\t\\treturn Array.isArray(theme) ? theme[0] : theme;\\n\\t}\\n\\n\\tfunction add(list, name) {\\n\\t\\tif (!name || name === \\\"index\\\" || list.indexOf(name) !== -1) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\t(scriptDependencies[name] || []).forEach(function (dependency) {\\n\\t\\t\\tadd(list, dependency);\\n\\t\\t});\\n\\t\\tlist.push(name);\\n\\t}\\n\\n\\t// The files a config needs: its classes, and geodata named by its global\\n\\tfunction addConfig(list, value) {\\n\\t\\tif (typeof value === \\\"string\\\") {\\n\\t\\t\\tif (/^am5geodata_[A-Za-z0-9_]+$/.test(value)) {\\n\\t\\t\\t\\tadd(list, geodataModule(value.slice(11)));\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\telse if (Array.isArray(value)) {\\n\\t\\t\\tvalue.forEach(function (item) {\\n\\t\\t\\t\\taddConfig(list, item);\\n\\t\\t\\t});\\n\\t\\t}\\n\\t\\telse if (value && typeof value === \\\"object\\\") {\\n\\t\\t\\tif (typeof value.type === \\\"string\\\") {\\n\\t\\t\\t\\tadd(list, classModules[value.type]);\\n\\t\\t\\t}\\n\\t\\t\\tObject.keys(value).forEach(function (key) {\\n\\t\\t\\t\\taddConfig(list, value[key]);\\n\\t\\t\\t});\\n\\t\\t}\\n\\t}\\n\\n\\t// The files code needs, from the globals it uses, and the classes of a\\n\\t// config it gives the JSON parser\\n\\tfunction addCode(list, code) {\\n\\t\\t(code.match(/\\\\bam5[A-Za-z0-9_]*/g) || []).forEach(function (name) {\\n\\t\\t\\tadd(list, globalModule(name));\\n\\t\\t});\\n\\t\\tif (code.indexOf(\\\"am5plugins_json\\\") !== -1) {\\n\\t\\t\\t(code.match(/\\\\btype[\\\"']?\\\\s*:\\\\s*[\\\"'][A-Za-z0-9_]+[\\\"']/g) || []).forEach(function (match) {\\n\\t\\t\\t\\tadd(list, classModules[/[\\\"']([A-Za-z0-9_]+)[\\\"']$/.exec(match)[1]]);\\n\\t\\t\\t});\\n\\t\\t}\\n\\t}\\n\\n\\t// Its own scope, so that it may declare `data` or `root` itself\\n\\tfunction compile(names, code) {\\n\\t\\treturn new Function(names.join(\\\",\\\"), \\\"return (function () {\\\\n\\\" + code + \\\"\\\\n})();\\\");\\n\\t}\\n\\n\\tfunction url(name) {\\n\\t\\tif (/^[a-z]+:/i.test(name)) {\\n\\t\\t\\treturn name;\\n\\t\\t}\\n\\t\\tif (name.indexOf(\\\"geodata/\\\") === 0) {\\n\\t\\t\\treturn options.geodataUrl + name.slice(8) + \\\".js\\\";\\n\\t\\t}\\n\\t\\tif (name.indexOf(\\\"fonts/\\\") === 0) {\\n\\t\\t\\treturn options.fontsUrl + name.slice(6) + \\\".js\\\";\\n\\t\\t}\\n\\t\\treturn options.libraryUrl + name + \\\".js\\\";\\n\\t}\\n\\n\\t// Downloaded side by side, run in order\\n\\tfunction load(src) {\\n\\t\\tif (!scripts[src]) {\\n\\t\\t\\tscripts[src] = new Promise(function (resolve, reject) {\\n\\t\\t\\t\\tvar script = document.createElement(\\\"script\\\");\\n\\t\\t\\t\\tscript.src = src;\\n\\t\\t\\t\\tscript.async = false;\\n\\t\\t\\t\\tscript.onload = function () {\\n\\t\\t\\t\\t\\tresolve();\\n\\t\\t\\t\\t};\\n\\t\\t\\t\\tscript.onerror = function () {\\n\\t\\t\\t\\t\\tdelete scripts[src];\\n\\t\\t\\t\\t\\treject(new Error(\\\"Could not load \\\" + src));\\n\\t\\t\\t\\t};\\n\\t\\t\\t\\tdocument.head.appendChild(script);\\n\\t\\t\\t});\\n\\t\\t}\\n\\t\\treturn scripts[src];\\n\\t}\\n\\n\\tfunction dispose() {\\n\\t\\tif (root) {\\n\\t\\t\\troot.dispose();\\n\\t\\t}\\n\\t\\troot = undefined;\\n\\t\\tchart = undefined;\\n\\t\\tresult = undefined;\\n\\t\\tupdate = undefined;\\n\\t}\\n\\n\\tfunction build(next) {\\n\\t\\tvar id = ++current;\\n\\t\\toptions = next;\\n\\t\\tdispose();\\n\\n\\t\\tvar list = [];\\n\\t\\tif (next.config !== undefined) {\\n\\t\\t\\tadd(list, \\\"plugins/json\\\");\\n\\t\\t\\taddConfig(list, next.config);\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\taddCode(list, next.code || \\\"\\\");\\n\\t\\t}\\n\\t\\tnext.themes.forEach(function (theme) {\\n\\t\\t\\tadd(list, \\\"themes/\\\" + themeName(theme));\\n\\t\\t});\\n\\t\\tnext.modules.forEach(function (name) {\\n\\t\\t\\tadd(list, name);\\n\\t\\t});\\n\\n\\t\\treturn Promise.all([\\\"index\\\"].concat(list).map(function (name) {\\n\\t\\t\\treturn load(url(name));\\n\\t\\t})).then(function () {\\n\\t\\t\\tif (id !== current) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvar am5 = window.am5;\\n\\t\\t\\tvar settings = {};\\n\\t\\t\\tif (next.renderer === \\\"svg\\\") {\\n\\t\\t\\t\\tif (!am5.SVGRenderer) {\\n\\t\\t\\t\\t\\tthrow new Error(\\\"renderer=\\\\\\\"svg\\\\\\\" needs amCharts 5.21.0 or later\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tsettings.renderer = am5.SVGRenderer;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvar themes = next.themes.map(function (entry) {\\n\\t\\t\\t\\tvar name = themeName(entry);\\n\\t\\t\\t\\tvar theme = window[\\\"am5themes_\\\" + name];\\n\\t\\t\\t\\tif (!theme) {\\n\\t\\t\\t\\t\\tthrow new Error(\\\"No theme \\\" + name);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn { theme: theme, settings: Array.isArray(entry) ? entry[1] : undefined };\\n\\t\\t\\t});\\n\\n\\t\\t\\t// Before the root: it decides on the logo when it is made\\n\\t\\t\\t(next.licenses || []).forEach(function (license) {\\n\\t\\t\\t\\tif (am5.registry.licenses.indexOf(license) === -1) {\\n\\t\\t\\t\\t\\tam5.addLicense(license);\\n\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\n\\t\\t\\troot = am5.Root.new(\\\"chart\\\", settings);\\n\\t\\t\\troot.setThemes(themes.map(function (entry) {\\n\\t\\t\\t\\treturn entry.settings ? entry.theme.new(root, entry.settings) : entry.theme.new(root);\\n\\t\\t\\t}));\\n\\n\\t\\t\\tif (next.config !== undefined) {\\n\\t\\t\\t\\treturn window.am5plugins_json.JsonParser.new(root).parse(next.config, { parent: root.container }).then(function (parsed) {\\n\\t\\t\\t\\t\\tif (id === current) {\\n\\t\\t\\t\\t\\t\\tchart = parsed;\\n\\t\\t\\t\\t\\t\\tsend({ type: \\\"ready\\\" });\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t});\\n\\t\\t\\t}\\n\\n\\t\\t\\t// A promise it returns is waited for\\n\\t\\t\\treturn Promise.resolve(compile([\\\"root\\\", \\\"data\\\", \\\"post\\\"], next.code || \\\"\\\")(root, next.data, post)).then(function (value) {\\n\\t\\t\\t\\tif (id === current) {\\n\\t\\t\\t\\t\\tresult = value;\\n\\t\\t\\t\\t\\tif (typeof value === \\\"function\\\") {\\n\\t\\t\\t\\t\\t\\tupdate = value;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tsend({ type: \\\"ready\\\" });\\n\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\n\\t\\t}).catch(function (error) {\\n\\t\\t\\tif (id === current) {\\n\\t\\t\\t\\tdispose();\\n\\t\\t\\t\\tfail(error);\\n\\t\\t\\t}\\n\\t\\t});\\n\\t}\\n\\n\\twindow.amChartPage = {\\n\\t\\tbuild: build,\\n\\n\\t\\t// New data: to the function the code returned, or the chart is made\\n\\t\\t// again. A config chart only keeps it, for run()\\n\\t\\tdata: function (data) {\\n\\t\\t\\tif (!options) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\toptions.data = data;\\n\\t\\t\\tif (options.config !== undefined) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\tif (update) {\\n\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\tupdate(data);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tcatch (error) {\\n\\t\\t\\t\\t\\tfail(error);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\telse {\\n\\t\\t\\t\\tbuild(options);\\n\\t\\t\\t}\\n\\t\\t},\\n\\n\\t\\trun: function (code) {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tcompile([\\\"root\\\", \\\"chart\\\", \\\"result\\\", \\\"data\\\", \\\"post\\\"], code)(root, chart, result, options ? options.data : undefined, post);\\n\\t\\t\\t}\\n\\t\\t\\tcatch (error) {\\n\\t\\t\\t\\tfail(error);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t};\\n\\n\\tsend({ type: \\\"loaded\\\" });\\n})();\\n</script>\\n</body>\\n</html>\\n\";\n"]}
|
|
1
|
+
{"version":3,"file":"generated.js","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AACrB,QAAA,cAAc,GAAW,QAAQ,CAAC;AAClC,QAAA,QAAQ,GAAW,yycAAyyc,CAAC","sourcesContent":["// Written by scripts/generate.cjs\nexport const libraryVersion: string = \"5.21.5\";\nexport const pageHtml: string = \"<!DOCTYPE html>\\n<html>\\n<head>\\n<meta charset=\\\"utf-8\\\">\\n<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\\\">\\n<style>\\nhtml, body, #chart {\\n\\tmargin: 0;\\n\\tpadding: 0;\\n\\twidth: 100%;\\n\\theight: 100%;\\n\\toverflow: hidden;\\n\\tbackground: transparent;\\n}\\nbody {\\n\\t-webkit-tap-highlight-color: transparent;\\n\\t-webkit-touch-callout: none;\\n\\t-webkit-user-select: none;\\n\\tuser-select: none;\\n}\\n</style>\\n</head>\\n<body>\\n<div id=\\\"chart\\\"></div>\\n<script>\\n(function () {\\n\\t\\\"use strict\\\";\\n\\n\\t// Which script file has each class, and which files a file needs first\\n\\tvar classModules = {\\\"AccelerationBands\\\":\\\"stock\\\",\\\"AccumulationDistribution\\\":\\\"stock\\\",\\\"AccumulativeSwingIndex\\\":\\\"stock\\\",\\\"Annotator\\\":\\\"plugins/exporting\\\",\\\"ArcDiagram\\\":\\\"flow\\\",\\\"ArcDiagramLink\\\":\\\"flow\\\",\\\"ArcDiagramNodes\\\":\\\"flow\\\",\\\"Aroon\\\":\\\"stock\\\",\\\"AverageSeries\\\":\\\"stock\\\",\\\"AverageTrueRange\\\":\\\"stock\\\",\\\"AwesomeOscillator\\\":\\\"stock\\\",\\\"Axis\\\":\\\"xy\\\",\\\"AxisBullet\\\":\\\"xy\\\",\\\"AxisLabel\\\":\\\"xy\\\",\\\"AxisLabelRadial\\\":\\\"xy\\\",\\\"AxisRenderer\\\":\\\"xy\\\",\\\"AxisRendererCircular\\\":\\\"radar\\\",\\\"AxisRendererCurveX\\\":\\\"timeline\\\",\\\"AxisRendererCurveY\\\":\\\"timeline\\\",\\\"AxisRendererRadial\\\":\\\"radar\\\",\\\"AxisRendererX\\\":\\\"xy\\\",\\\"AxisRendererY\\\":\\\"xy\\\",\\\"AxisTick\\\":\\\"xy\\\",\\\"BaseColumnSeries\\\":\\\"xy\\\",\\\"BollingerBands\\\":\\\"stock\\\",\\\"BreadcrumbBar\\\":\\\"hierarchy\\\",\\\"BullBearPower\\\":\\\"stock\\\",\\\"CalloutSeries\\\":\\\"stock\\\",\\\"Candlestick\\\":\\\"xy\\\",\\\"CandlestickSeries\\\":\\\"xy\\\",\\\"CategoryAxis\\\":\\\"xy\\\",\\\"CategoryDateAxis\\\":\\\"xy\\\",\\\"ChaikinMoneyFlow\\\":\\\"stock\\\",\\\"ChaikinOscillator\\\":\\\"stock\\\",\\\"ChartIndicator\\\":\\\"stock\\\",\\\"ChartSerializer\\\":\\\"plugins/json\\\",\\\"Chord\\\":\\\"flow\\\",\\\"ChordDirected\\\":\\\"flow\\\",\\\"ChordLink\\\":\\\"flow\\\",\\\"ChordLinkDirected\\\":\\\"flow\\\",\\\"ChordNodes\\\":\\\"flow\\\",\\\"ChordNonRibbon\\\":\\\"flow\\\",\\\"ClockHand\\\":\\\"radar\\\",\\\"ClusteredPointSeries\\\":\\\"map\\\",\\\"ColorControl\\\":\\\"stock\\\",\\\"ColorPicker\\\":\\\"plugins/colorPicker\\\",\\\"ColorPickerButton\\\":\\\"plugins/colorPicker\\\",\\\"ColumnSeries\\\":\\\"xy\\\",\\\"CommodityChannelIndex\\\":\\\"stock\\\",\\\"ComparisonControl\\\":\\\"stock\\\",\\\"CurveChart\\\":\\\"timeline\\\",\\\"CurveColumnSeries\\\":\\\"timeline\\\",\\\"CurveCursor\\\":\\\"timeline\\\",\\\"CurveLineSeries\\\":\\\"timeline\\\",\\\"DataSaveControl\\\":\\\"stock\\\",\\\"DateAxis\\\":\\\"xy\\\",\\\"DateRangeSelector\\\":\\\"stock\\\",\\\"DisparityIndex\\\":\\\"stock\\\",\\\"DoodleSeries\\\":\\\"stock\\\",\\\"DrawingControl\\\":\\\"stock\\\",\\\"DrawingSeries\\\":\\\"stock\\\",\\\"DrawingToolControl\\\":\\\"stock\\\",\\\"Dropdown\\\":\\\"stock\\\",\\\"DropdownColors\\\":\\\"stock\\\",\\\"DropdownControl\\\":\\\"stock\\\",\\\"DropdownList\\\":\\\"stock\\\",\\\"DropdownListControl\\\":\\\"stock\\\",\\\"DurationAxis\\\":\\\"xy\\\",\\\"EditableAxisLabel\\\":\\\"xy\\\",\\\"EllipseSeries\\\":\\\"stock\\\",\\\"Exporting\\\":\\\"plugins/exporting\\\",\\\"ExportingMenu\\\":\\\"plugins/exporting\\\",\\\"FibonacciSeries\\\":\\\"stock\\\",\\\"FibonacciTimezoneSeries\\\":\\\"stock\\\",\\\"Flow\\\":\\\"flow\\\",\\\"FlowLink\\\":\\\"flow\\\",\\\"FlowNode\\\":\\\"flow\\\",\\\"FlowNodes\\\":\\\"flow\\\",\\\"ForceDirected\\\":\\\"hierarchy\\\",\\\"FunnelSeries\\\":\\\"percent\\\",\\\"FunnelSlice\\\":\\\"percent\\\",\\\"Gantt\\\":\\\"gantt\\\",\\\"GanttCategoryAxis\\\":\\\"gantt\\\",\\\"GanttCategoryAxisRenderer\\\":\\\"gantt\\\",\\\"GanttDateAxis\\\":\\\"gantt\\\",\\\"GanttDateAxisRenderer\\\":\\\"gantt\\\",\\\"GanttSeries\\\":\\\"gantt\\\",\\\"GaplessDateAxis\\\":\\\"xy\\\",\\\"GraticuleSeries\\\":\\\"map\\\",\\\"Grid\\\":\\\"xy\\\",\\\"HeikinAshi\\\":\\\"stock\\\",\\\"Hierarchy\\\":\\\"hierarchy\\\",\\\"HierarchyLink\\\":\\\"hierarchy\\\",\\\"HierarchyNode\\\":\\\"hierarchy\\\",\\\"HorizontalLineSeries\\\":\\\"stock\\\",\\\"HorizontalRaySeries\\\":\\\"stock\\\",\\\"IconControl\\\":\\\"stock\\\",\\\"IconSeries\\\":\\\"stock\\\",\\\"Indicator\\\":\\\"stock\\\",\\\"IndicatorControl\\\":\\\"stock\\\",\\\"IntervalControl\\\":\\\"stock\\\",\\\"LabelSeries\\\":\\\"stock\\\",\\\"LineArrowSeries\\\":\\\"stock\\\",\\\"LineSeries\\\":\\\"xy\\\",\\\"LinkedHierarchy\\\":\\\"hierarchy\\\",\\\"LinkedHierarchyNode\\\":\\\"hierarchy\\\",\\\"MACD\\\":\\\"stock\\\",\\\"MACross\\\":\\\"stock\\\",\\\"MapChart\\\":\\\"map\\\",\\\"MapLine\\\":\\\"map\\\",\\\"MapLineSeries\\\":\\\"map\\\",\\\"MapPointSeries\\\":\\\"map\\\",\\\"MapPolygon\\\":\\\"map\\\",\\\"MapPolygonSeries\\\":\\\"map\\\",\\\"MapRasterSeries\\\":\\\"map\\\",\\\"MapSankeyNodes\\\":\\\"map\\\",\\\"MapSankeySeries\\\":\\\"map\\\",\\\"MapSeries\\\":\\\"map\\\",\\\"Measure\\\":\\\"stock\\\",\\\"MedianPrice\\\":\\\"stock\\\",\\\"Momentum\\\":\\\"stock\\\",\\\"MovingAverage\\\":\\\"stock\\\",\\\"MovingAverageDeviation\\\":\\\"stock\\\",\\\"MovingAverageEnvelope\\\":\\\"stock\\\",\\\"NightSeries\\\":\\\"map\\\",\\\"OHLC\\\":\\\"xy\\\",\\\"OHLCSeries\\\":\\\"xy\\\",\\\"OnBalanceVolume\\\":\\\"stock\\\",\\\"OverboughtOversold\\\":\\\"stock\\\",\\\"PVT\\\":\\\"stock\\\",\\\"Pack\\\":\\\"hierarchy\\\",\\\"PanelControls\\\":\\\"stock\\\",\\\"ParallelChannelSeries\\\":\\\"stock\\\",\\\"Partition\\\":\\\"hierarchy\\\",\\\"PercentChart\\\":\\\"percent\\\",\\\"PercentSeries\\\":\\\"percent\\\",\\\"PeriodSelector\\\":\\\"stock\\\",\\\"PictorialStackedSeries\\\":\\\"percent\\\",\\\"PieChart\\\":\\\"percent\\\",\\\"PieSeries\\\":\\\"percent\\\",\\\"PixelMapSeries\\\":\\\"map\\\",\\\"PolylineSeries\\\":\\\"stock\\\",\\\"PyramidSeries\\\":\\\"percent\\\",\\\"QuadrantLineSeries\\\":\\\"stock\\\",\\\"RadarChart\\\":\\\"radar\\\",\\\"RadarColumnSeries\\\":\\\"radar\\\",\\\"RadarCursor\\\":\\\"radar\\\",\\\"RadarLineSeries\\\":\\\"radar\\\",\\\"RectangleSeries\\\":\\\"stock\\\",\\\"RegressionSeries\\\":\\\"stock\\\",\\\"RelativeStrengthIndex\\\":\\\"stock\\\",\\\"ResetControl\\\":\\\"stock\\\",\\\"Sankey\\\":\\\"flow\\\",\\\"SankeyLink\\\":\\\"flow\\\",\\\"SankeyNodes\\\":\\\"flow\\\",\\\"Serializer\\\":\\\"plugins/json\\\",\\\"SeriesTypeControl\\\":\\\"stock\\\",\\\"SerpentineChart\\\":\\\"timeline\\\",\\\"SettingsControl\\\":\\\"stock\\\",\\\"SettingsModal\\\":\\\"stock\\\",\\\"SimpleLineSeries\\\":\\\"stock\\\",\\\"SliceGrouper\\\":\\\"plugins/sliceGrouper\\\",\\\"SlicedChart\\\":\\\"percent\\\",\\\"SmoothedRadarLineSeries\\\":\\\"radar\\\",\\\"SmoothedXLineSeries\\\":\\\"xy\\\",\\\"SmoothedXYLineSeries\\\":\\\"xy\\\",\\\"SmoothedYLineSeries\\\":\\\"xy\\\",\\\"SpiralChart\\\":\\\"timeline\\\",\\\"StandardDeviation\\\":\\\"stock\\\",\\\"StepLineSeries\\\":\\\"xy\\\",\\\"StochasticMomentumIndex\\\":\\\"stock\\\",\\\"StochasticOscillator\\\":\\\"stock\\\",\\\"StockChart\\\":\\\"stock\\\",\\\"StockControl\\\":\\\"stock\\\",\\\"StockLegend\\\":\\\"stock\\\",\\\"StockPanel\\\":\\\"stock\\\",\\\"StockToolbar\\\":\\\"stock\\\",\\\"Sunburst\\\":\\\"hierarchy\\\",\\\"SuperTrend\\\":\\\"stock\\\",\\\"Tree\\\":\\\"hierarchy\\\",\\\"Treemap\\\":\\\"hierarchy\\\",\\\"TrendLineSeries\\\":\\\"stock\\\",\\\"Trix\\\":\\\"stock\\\",\\\"TypicalPrice\\\":\\\"stock\\\",\\\"VWAP\\\":\\\"stock\\\",\\\"ValueAxis\\\":\\\"xy\\\",\\\"Venn\\\":\\\"venn\\\",\\\"VerticalLineSeries\\\":\\\"stock\\\",\\\"Volume\\\":\\\"stock\\\",\\\"VolumeProfile\\\":\\\"stock\\\",\\\"VoronoiTreemap\\\":\\\"hierarchy\\\",\\\"WilliamsR\\\":\\\"stock\\\",\\\"WordCloud\\\":\\\"wc\\\",\\\"XYChart\\\":\\\"xy\\\",\\\"XYChartScrollbar\\\":\\\"xy\\\",\\\"XYCursor\\\":\\\"xy\\\",\\\"XYSeries\\\":\\\"xy\\\",\\\"ZigZag\\\":\\\"stock\\\",\\\"ZoomControl\\\":\\\"map\\\"};\\n\\tvar scriptDependencies = {\\\"pie\\\":[\\\"percent\\\"],\\\"funnel\\\":[\\\"percent\\\"],\\\"radar\\\":[\\\"xy\\\"],\\\"gantt\\\":[\\\"xy\\\",\\\"plugins/colorPicker\\\"],\\\"stock\\\":[\\\"xy\\\"],\\\"timeline\\\":[\\\"xy\\\"],\\\"element\\\":[\\\"index\\\",\\\"plugins/json\\\"]};\\n\\tvar modules = {};\\n\\tObject.keys(classModules).forEach(function (name) {\\n\\t\\tmodules[classModules[name]] = true;\\n\\t});\\n\\n\\tvar current = 0;\\n\\tvar options;\\n\\tvar root;\\n\\tvar chart;\\n\\tvar result;\\n\\tvar update;\\n\\tvar scripts = {};\\n\\n\\tfunction send(message) {\\n\\t\\tvar text;\\n\\t\\ttry {\\n\\t\\t\\ttext = JSON.stringify(message);\\n\\t\\t} catch (error) {\\n\\t\\t\\ttext = JSON.stringify({ type: \\\"error\\\", message: \\\"Could not send \\\" + message.name + \\\": \\\" + error.message });\\n\\t\\t}\\n\\t\\twindow.ReactNativeWebView.postMessage(text);\\n\\t}\\n\\n\\tfunction post(name, value) {\\n\\t\\tsend({ type: \\\"message\\\", name: String(name), value: value });\\n\\t}\\n\\n\\tfunction fail(error) {\\n\\t\\tsend({ type: \\\"error\\\", message: String(error && error.message ? error.message : error) });\\n\\t}\\n\\n\\twindow.addEventListener(\\\"error\\\", function (event) {\\n\\t\\tfail(event.error || event.message);\\n\\t});\\n\\n\\twindow.addEventListener(\\\"unhandledrejection\\\", function (event) {\\n\\t\\tfail(event.reason);\\n\\t});\\n\\n\\t// A geodata global's file: am5geodata_region_world_europeLow > geodata/region/world/europeLow\\n\\tfunction geodataModule(name) {\\n\\t\\treturn \\\"geodata/\\\" + (/^lang_/.test(name) ? \\\"lang/\\\" + name.slice(5) : name.replace(/_/g, \\\"/\\\"));\\n\\t}\\n\\n\\t// A global's file: am5xy > xy, am5plugins_exporting > plugins/exporting,\\n\\t// am5fonts_notosans_sc > fonts/notosans-sc\\n\\tfunction globalModule(name) {\\n\\t\\tvar rest = name.slice(3);\\n\\t\\tvar match = /^(themes|plugins|locales)_(.+)$/.exec(rest);\\n\\t\\tif (match) {\\n\\t\\t\\treturn match[1] + \\\"/\\\" + match[2];\\n\\t\\t}\\n\\t\\tif (/^fonts_./.test(rest)) {\\n\\t\\t\\treturn \\\"fonts/\\\" + rest.slice(6).replace(/_/g, \\\"-\\\");\\n\\t\\t}\\n\\t\\tif (/^geodata_./.test(rest)) {\\n\\t\\t\\treturn geodataModule(rest.slice(8));\\n\\t\\t}\\n\\t\\treturn modules[rest] ? rest : undefined;\\n\\t}\\n\\n\\t// A theme is a name, or [name, settings]\\n\\tfunction themeName(theme) {\\n\\t\\treturn Array.isArray(theme) ? theme[0] : theme;\\n\\t}\\n\\n\\tfunction add(list, name) {\\n\\t\\tif (!name || name === \\\"index\\\" || list.indexOf(name) !== -1) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\t(scriptDependencies[name] || []).forEach(function (dependency) {\\n\\t\\t\\tadd(list, dependency);\\n\\t\\t});\\n\\t\\tlist.push(name);\\n\\t}\\n\\n\\t// The files a config needs: its classes, and geodata named by its global\\n\\tfunction addConfig(list, value) {\\n\\t\\tif (typeof value === \\\"string\\\") {\\n\\t\\t\\tif (/^am5geodata_[A-Za-z0-9_]+$/.test(value)) {\\n\\t\\t\\t\\tadd(list, geodataModule(value.slice(11)));\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\telse if (Array.isArray(value)) {\\n\\t\\t\\tvalue.forEach(function (item) {\\n\\t\\t\\t\\taddConfig(list, item);\\n\\t\\t\\t});\\n\\t\\t}\\n\\t\\telse if (value && typeof value === \\\"object\\\") {\\n\\t\\t\\tif (typeof value.type === \\\"string\\\") {\\n\\t\\t\\t\\tadd(list, classModules[value.type]);\\n\\t\\t\\t}\\n\\t\\t\\tObject.keys(value).forEach(function (key) {\\n\\t\\t\\t\\taddConfig(list, value[key]);\\n\\t\\t\\t});\\n\\t\\t}\\n\\t}\\n\\n\\t// The files code needs, from the globals it uses, and the classes of a\\n\\t// config it gives the JSON parser\\n\\tfunction addCode(list, code) {\\n\\t\\t(code.match(/\\\\bam5[A-Za-z0-9_]*/g) || []).forEach(function (name) {\\n\\t\\t\\tadd(list, globalModule(name));\\n\\t\\t});\\n\\t\\tif (code.indexOf(\\\"am5plugins_json\\\") !== -1) {\\n\\t\\t\\t(code.match(/\\\\btype[\\\"']?\\\\s*:\\\\s*[\\\"'][A-Za-z0-9_]+[\\\"']/g) || []).forEach(function (match) {\\n\\t\\t\\t\\tadd(list, classModules[/[\\\"']([A-Za-z0-9_]+)[\\\"']$/.exec(match)[1]]);\\n\\t\\t\\t});\\n\\t\\t}\\n\\t}\\n\\n\\t// Its own scope, so that it may declare `data` or `root` itself\\n\\tfunction compile(names, code) {\\n\\t\\treturn new Function(names.join(\\\",\\\"), \\\"return (function () {\\\\n\\\" + code + \\\"\\\\n})();\\\");\\n\\t}\\n\\n\\tfunction url(name) {\\n\\t\\tif (/^[a-z]+:/i.test(name)) {\\n\\t\\t\\treturn name;\\n\\t\\t}\\n\\t\\tif (name.indexOf(\\\"geodata/\\\") === 0) {\\n\\t\\t\\treturn options.geodataUrl + name.slice(8) + \\\".js\\\";\\n\\t\\t}\\n\\t\\tif (name.indexOf(\\\"fonts/\\\") === 0) {\\n\\t\\t\\treturn options.fontsUrl + name.slice(6) + \\\".js\\\";\\n\\t\\t}\\n\\t\\treturn options.libraryUrl + name + \\\".js\\\";\\n\\t}\\n\\n\\t// Downloaded side by side, run in order\\n\\tfunction load(src) {\\n\\t\\tif (!scripts[src]) {\\n\\t\\t\\tscripts[src] = new Promise(function (resolve, reject) {\\n\\t\\t\\t\\tvar script = document.createElement(\\\"script\\\");\\n\\t\\t\\t\\tscript.src = src;\\n\\t\\t\\t\\tscript.async = false;\\n\\t\\t\\t\\tscript.onload = function () {\\n\\t\\t\\t\\t\\tresolve();\\n\\t\\t\\t\\t};\\n\\t\\t\\t\\tscript.onerror = function () {\\n\\t\\t\\t\\t\\tdelete scripts[src];\\n\\t\\t\\t\\t\\treject(new Error(\\\"Could not load \\\" + src));\\n\\t\\t\\t\\t};\\n\\t\\t\\t\\tdocument.head.appendChild(script);\\n\\t\\t\\t});\\n\\t\\t}\\n\\t\\treturn scripts[src];\\n\\t}\\n\\n\\tfunction dispose() {\\n\\t\\tif (root) {\\n\\t\\t\\troot.dispose();\\n\\t\\t}\\n\\t\\troot = undefined;\\n\\t\\tchart = undefined;\\n\\t\\tresult = undefined;\\n\\t\\tupdate = undefined;\\n\\t}\\n\\n\\tfunction build(next) {\\n\\t\\tvar id = ++current;\\n\\t\\toptions = next;\\n\\t\\tdispose();\\n\\n\\t\\tvar list = [];\\n\\t\\tif (next.config !== undefined) {\\n\\t\\t\\tadd(list, \\\"plugins/json\\\");\\n\\t\\t\\taddConfig(list, next.config);\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\taddCode(list, next.code || \\\"\\\");\\n\\t\\t}\\n\\t\\tnext.themes.forEach(function (theme) {\\n\\t\\t\\tadd(list, \\\"themes/\\\" + themeName(theme));\\n\\t\\t});\\n\\t\\tnext.modules.forEach(function (name) {\\n\\t\\t\\tadd(list, name);\\n\\t\\t});\\n\\n\\t\\treturn Promise.all([\\\"index\\\"].concat(list).map(function (name) {\\n\\t\\t\\treturn load(url(name));\\n\\t\\t})).then(function () {\\n\\t\\t\\tif (id !== current) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvar am5 = window.am5;\\n\\t\\t\\tvar settings = {};\\n\\t\\t\\tif (next.renderer === \\\"svg\\\") {\\n\\t\\t\\t\\tif (!am5.SVGRenderer) {\\n\\t\\t\\t\\t\\tthrow new Error(\\\"renderer=\\\\\\\"svg\\\\\\\" needs amCharts 5.21.0 or later\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tsettings.renderer = am5.SVGRenderer;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvar themes = next.themes.map(function (entry) {\\n\\t\\t\\t\\tvar name = themeName(entry);\\n\\t\\t\\t\\tvar theme = window[\\\"am5themes_\\\" + name];\\n\\t\\t\\t\\tif (!theme) {\\n\\t\\t\\t\\t\\tthrow new Error(\\\"No theme \\\" + name);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn { theme: theme, settings: Array.isArray(entry) ? entry[1] : undefined };\\n\\t\\t\\t});\\n\\n\\t\\t\\t// Before the root: it decides on the logo when it is made\\n\\t\\t\\t(next.licenses || []).forEach(function (license) {\\n\\t\\t\\t\\tif (am5.registry.licenses.indexOf(license) === -1) {\\n\\t\\t\\t\\t\\tam5.addLicense(license);\\n\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\n\\t\\t\\troot = am5.Root.new(\\\"chart\\\", settings);\\n\\t\\t\\troot.setThemes(themes.map(function (entry) {\\n\\t\\t\\t\\treturn entry.settings ? entry.theme.new(root, entry.settings) : entry.theme.new(root);\\n\\t\\t\\t}));\\n\\n\\t\\t\\tif (next.config !== undefined) {\\n\\t\\t\\t\\treturn window.am5plugins_json.JsonParser.new(root).parse(next.config, { parent: root.container }).then(function (parsed) {\\n\\t\\t\\t\\t\\tif (id === current) {\\n\\t\\t\\t\\t\\t\\tchart = parsed;\\n\\t\\t\\t\\t\\t\\tsend({ type: \\\"ready\\\" });\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t});\\n\\t\\t\\t}\\n\\n\\t\\t\\t// A promise it returns is waited for\\n\\t\\t\\treturn Promise.resolve(compile([\\\"root\\\", \\\"data\\\", \\\"post\\\"], next.code || \\\"\\\")(root, next.data, post)).then(function (value) {\\n\\t\\t\\t\\tif (id === current) {\\n\\t\\t\\t\\t\\tresult = value;\\n\\t\\t\\t\\t\\tif (typeof value === \\\"function\\\") {\\n\\t\\t\\t\\t\\t\\tupdate = value;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tsend({ type: \\\"ready\\\" });\\n\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\n\\t\\t}).catch(function (error) {\\n\\t\\t\\tif (id === current) {\\n\\t\\t\\t\\tdispose();\\n\\t\\t\\t\\tfail(error);\\n\\t\\t\\t}\\n\\t\\t});\\n\\t}\\n\\n\\twindow.amChartPage = {\\n\\t\\tbuild: build,\\n\\n\\t\\t// New data: to the function the code returned, or the chart is made\\n\\t\\t// again. A config chart only keeps it, for run()\\n\\t\\tdata: function (data) {\\n\\t\\t\\tif (!options) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\toptions.data = data;\\n\\t\\t\\tif (options.config !== undefined) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\tif (update) {\\n\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\tupdate(data);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tcatch (error) {\\n\\t\\t\\t\\t\\tfail(error);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\telse {\\n\\t\\t\\t\\tbuild(options);\\n\\t\\t\\t}\\n\\t\\t},\\n\\n\\t\\trun: function (code) {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tcompile([\\\"root\\\", \\\"chart\\\", \\\"result\\\", \\\"data\\\", \\\"post\\\"], code)(root, chart, result, options ? options.data : undefined, post);\\n\\t\\t\\t}\\n\\t\\t\\tcatch (error) {\\n\\t\\t\\t\\tfail(error);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t};\\n\\n\\tsend({ type: \\\"loaded\\\" });\\n})();\\n</script>\\n</body>\\n</html>\\n\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amcharts/amcharts5-react-native",
|
|
3
|
-
"version": "5.0.
|
|
4
|
-
"libraryVersion": "5.21.
|
|
3
|
+
"version": "5.0.2",
|
|
4
|
+
"libraryVersion": "5.21.5",
|
|
5
5
|
"description": "A React Native component for amCharts 5: charts from a JSON config or from chart code, drawn in a WebView",
|
|
6
6
|
"author": "amCharts <contact@amcharts.com> (https://www.amcharts.com/)",
|
|
7
7
|
"homepage": "https://github.com/amcharts/amcharts5/tree/master/integrations/react-native#readme",
|