Skip to content

Instantly share code, notes, and snippets.

@tral
Last active June 27, 2016 02:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tral/1fe649455fe2de9fb8fe to your computer and use it in GitHub Desktop.
Save tral/1fe649455fe2de9fb8fe to your computer and use it in GitHub Desktop.
Example backend implementation
<?php
header('Access-Control-Allow-Origin : *');
echo '[
{
"target":"upper_75",
"datapoints":[
[622,1450754160000],
[365,1450754220000]
]
},
{
"target":"upper_90",
"datapoints":[
[861,1450754160000],
[767,1450754220000]
]
}
]';
?>
<?php
header('Access-Control-Allow-Origin: *');
?>
<?php
header('Access-Control-Allow-Origin : *');
echo '["upper_25","upper_50","upper_75","upper_90","upper_95"]';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment