Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('../_common.php');
- $marketingTool = $core -> marketingToolProvider -> readMarketingToolByUUID('8E2BB308F1CA4C99A286CCA560BEAA38');
- $emailRecords = $core -> emailRecordProvider -> getEmailRecordsByMarketingTool($marketingTool);
- ?>
- <html>
- <head>
- <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
- <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
- <script src="http://code.highcharts.com/highcharts.js"></script>
- <script type="text/javascript">
- $(function () {
- $('#container').highcharts({
- title: {
- text: 'How many people opened the Love Hairy email and how many emails have we sent them?',
- x: -20 //center
- },
- xAxis: {
- title: {
- text: 'Emails Sent'
- },
- allowDecimals: false
- },
- yAxis: {
- title: {
- text: 'Unique People'
- },
- plotLines: [{
- value: 0,
- width: 1,
- color: '#808080'
- }],
- min: 0
- },
- legend: {
- layout: 'vertical',
- align: 'right',
- verticalAlign: 'middle',
- borderWidth: 0
- },
- series: [{
- name: 'Opened',
- data: [12,255,666]
- }, {
- name: 'Did not open',
- data: [2,5,26]
- }]
- });
- });
- </script>
- </head>
- <body>
- <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement