AstroApp APIs: Getting started
The easiest way to get started is to see a simple example. The following
html page will display a chart cast for January 1st, 2012 at 1:00 am in
San Francisco, CA.
var astroapp = new AstroApp();
<h2>Chart Example: January 1st, 2012; 1:00 am, San Francisco,
How it works
- First you should include the following line with your AstroApp API
Access Key in the header of your html page:
Then, you should add the <div> tag with id="astroappDiv"
(<div id="astroappDiv"></div>) to
your html <body>. This element will hold the generated chart.
You can place it anywhere on your page.
You should use the AstroApp() class to set chart
And the last step would be calling the astroRun(astroapp); function
to get the chart rendered. In this particular example, this function
will get called when your page first loads.
Almost every component can be scripted, please contact us if you want
specific features added to our APIs.
- The AstroApp APIs are available for non-commercial use in AstroApp Pro and AstroApp Financial Gold Editions.
- Standalone commercial use (without AstroApp subscriptions) is also
available. Please contact our Support Team for details and pricing.