├── LICENSE
├── README.md
├── screenshot.png
└── ti.highcharts
├── assets
└── html
│ ├── chart.html
│ ├── exporting.jsf
│ ├── highcharts-more.jsf
│ ├── highcharts.jsf
│ └── jquery.min.jsf
├── controllers
└── widget.js
├── styles
└── widget.tss
├── views
└── widget.xml
└── widget.json
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 joshmocek
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Alloy TiHighcharts Widget [](https://www.appcelerator.com/mobile-app-development-products/) [](https://www.appcelerator.com/mobile-app-development-products/)
2 |
3 | ## Overview
4 | This is a widget for the Alloy MVC framework of [Appcelerator](http://www.appcelerator.com)'s [Titanium](http://www.appcelerator.com/platform) platform.
5 |
6 |
7 | ## Screenshot
8 | 
9 |
10 | ## Tips Are Always Appreciated :)
11 |
12 | Bitcoin: `1Gr8gPsxwbrSuDFxUS53wBDHQ5VHcoLNUV`
13 |
14 | Ethereum: `0xf9ea6F60Dd61ffF6B2e1b34D274383AaBd918880`
15 |
16 | Zcash: `t1R4jPCmBof2tGBjPPEvG19Lsno5erhAkUw`
17 |
18 | Monero: `41hFK3vXafy6WvuDqWZ9nZD1kMuaos54FZnjodhmJ2iL19VvHA2xcN4XWgqyiCcEZGUXFnjektRqA9UqvUSRYv5S3m7PWgr`
19 |
20 |
21 | ## Notes
22 | 1. This creates a webview and gives the user the option to take a picture and destroy the webview if there is no need for user interaction. This is implemented because of how poorly some widgets work with webviews being kept open. The `loadChart()` function takes in two parameters: the chart data, and a boolean (as seen in **Usage 1**). In the below function the webview would be destroyed an replaced with a picture of the data. If the boolean is not set, or set to false then a webview will be used.
23 |
24 | `$.lineChart.loadChart({chartData, true});`
25 |
26 | 2. In `ti.highcharts/assets/html/chart.html` you will find that you might not always need to include `exporting.jsf`, `jquery.min.jsf`, or `highcharts-more.jsf`. If you find no need for them, feel free to delete those lines from the html and delete their associated files from the asset folder.
27 |
28 | 3. If you use this widget and you notice that your view is taking +7 seconds to load consider setting the view after the parent container has loaded. This can be done by not adding your widgets view until the parent view is loaded.
29 |
30 | ```
31 | exports.loaded = function() {
32 | $.section1.add(work.getView());
33 | work.loaded();
34 | }
35 |
36 | var work = Alloy.createController("/widgets/work", {
37 | parent: $,
38 | });
39 | ```
40 |
41 | ## Usage [](http://gitt.io/component/ti.highcharts)
42 |
43 | 1. Install [this widget](http://gitt.io/component/ti.highcharts) via [gitTio](http://gitt.io):
44 |
45 | `gittio install ti.highcharts`
46 |
47 | 2. In your `app/views/index.xml` use it like this:
48 |
49 | ```
50 |