1/* 2 * There are several ways to initialize QuoteAPI; this one will probably suit 3 * your application. 4 * 5 * Note that this method assumes that the QuoteAPI library has loaded. 6 * 7 * You need to set the appID and symbol for EACH of your clients. 8 * 9 * You could choose to set the appID and symbol in several ways: e.g. with a 10 * config script per client or set it somewhere in the html. 11 * 12 * This example is for Beach Energy. The appID only allows access to BPT. 13 */ 14 15function quoteapiSetup() { 16 17 var appID = "a7b2961fa3ce53dc"; 18 var symbol = "ink.asx"; 19 20 var config = { 21 appID: appID, 22 symbol: symbol, 23 24 components: { 25 smallChart: { 26 component: "priceChart1", 27 css: "quoteapi-chart-xaxis-labels-centered-with-tick", 28 range: "6m" 29 }, 30 mainChart: { 31 component: "priceComparisonChart1", 32 css: "quoteapi-chart-xaxis-labels-centered-with-tick", 33 range: "1y", 34 volume: { 35 visible: true 36 }, 37 announcements: { 38 visible: false 39 } 40 }, 41 navChart: { 42 component: "navChart1", 43 css: "quoteapi-chart-xaxis-labels-centered-with-tick", 44 range: "10y" 45 } 46 }, 47 48 formatting: { 49 dates: "Do MMM YYYY", 50 charts: { 51 times: { 52 year: "'YY", 53 "month+year": "'YY" 54 } 55 } 56 } 57 }; 58 59 return config; 60}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.