Advertisement
metart

Untitled

Sep 25th, 2015
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php
  2.  
  3. require('../_common.php');
  4.  
  5. $marketingTool = $core -> marketingToolProvider -> readMarketingToolByUUID('8E2BB308F1CA4C99A286CCA560BEAA38');
  6.  
  7. $emailRecords = $core -> emailRecordProvider -> getEmailRecordsByMarketingTool($marketingTool);
  8.  
  9. ?>
  10. <html>
  11. <head>
  12. <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  13. <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
  14. <script src="http://code.highcharts.com/highcharts.js"></script>
  15. <script type="text/javascript">
  16. $(function () {
  17. $('#container').highcharts({
  18. title: {
  19. text: 'How many people opened the Love Hairy email and how many emails have we sent them?',
  20. x: -20 //center
  21. },
  22. xAxis: {
  23. title: {
  24. text: 'Emails Sent'
  25. },
  26. allowDecimals: false
  27. },
  28. yAxis: {
  29. title: {
  30. text: 'Unique People'
  31. },
  32. plotLines: [{
  33. value: 0,
  34. width: 1,
  35. color: '#808080'
  36. }],
  37. min: 0
  38. },
  39. legend: {
  40. layout: 'vertical',
  41. align: 'right',
  42. verticalAlign: 'middle',
  43. borderWidth: 0
  44. },
  45. series: [{
  46. name: 'Opened',
  47. data: [12,255,666]
  48. }, {
  49. name: 'Did not open',
  50. data: [2,5,26]
  51. }]
  52. });
  53. });
  54. </script>
  55. </head>
  56. <body>
  57. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  58. </body>
  59. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement