Integrations
HTML Boilerplate
Create a HTML boilerplate as a first step. Save it in `index.html`
<!DOCTYPE html>
<html>
<head>
<title>Exported Gramex Chart</title>
</head>
<body>
<!-- insert exported code here -->
</body>
</html>
Paste exported code
... too big to show ...
Run server
Start the server on terminal. Alternatively, you could double click the `index.html` file from your folder. This will open the file in your default browser.
python -m http.server
Visit URL
Visit the endpoint in browser.
http://localhost:8000/index.html
Of course, this is a basic situation and most applications have predefined routes for data endpoints. You probably would like to use a custom API endpoint.
APIs
Update data endpoint
Visit the endpoint in browser.
$.getJSON('data').done(function(data) {
// do something with data
draw(data, el, options)
})
Questions? Write to us.