Version Description
- Using jqPlot instead of Google Chart API
- Some facelifting
- Some minor bugfixes
Download this release
Release Info
Developer | Braekling |
Plugin | WP-Matomo (WP-Piwik) |
Version | 0.8.0 |
Comparing to | |
See all releases |
Code changes from version 0.7.1 to 0.8.0
- css/wp-piwik.css +61 -0
- dashboard/browsers.php +15 -28
- dashboard/header.php +1 -1
- dashboard/overview.php +2 -2
- dashboard/screens.php +17 -30
- dashboard/systems.php +18 -29
- dashboard/visitors.php +18 -27
- js/jqplot/IMPORTANT_NOTICE.txt +1 -0
- js/jqplot/MIT-LICENSE.txt +21 -0
- js/jqplot/README.txt +46 -0
- js/jqplot/copyright.txt +13 -0
- js/jqplot/excanvas.min.js +1 -0
- js/jqplot/gpl-2.0.txt +280 -0
- js/jqplot/jquery.jqplot.min.css +1 -0
- js/jqplot/jquery.jqplot.min.js +14 -0
- js/jqplot/plugins/jqplot.pieRenderer.min.js +14 -0
- js/jqplot/plugins/jqplot.trendline.min.js +14 -0
- js/jqplot/usage.txt +119 -0
- js/jqplot/wp-piwik.jqplot.js +41 -0
- languages/wp-piwik-de_DE.mo +0 -0
- languages/wp-piwik-de_DE.po +209 -164
- readme.txt +14 -13
- screenshot-1.gif +0 -0
- screenshot-2.gif +0 -0
- screenshot-3.gif +0 -0
- wp-piwik.php +165 -122
css/wp-piwik.css
CHANGED
@@ -13,6 +13,7 @@ div.wp-piwik-side div.wp-piwik-graph-wide {
|
|
13 |
|
14 |
div.wp-piwik-graph-wide {
|
15 |
text-align:center;
|
|
|
16 |
}
|
17 |
|
18 |
table.wp-piwik-table th.n, td.n {
|
@@ -22,3 +23,63 @@ table.wp-piwik-table th.n, td.n {
|
|
22 |
table.wp-piwik-table tr:hover {
|
23 |
background-color:#ccc;
|
24 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
div.wp-piwik-graph-wide {
|
15 |
text-align:center;
|
16 |
+
padding-bottom:5px;
|
17 |
}
|
18 |
|
19 |
table.wp-piwik-table th.n, td.n {
|
23 |
table.wp-piwik-table tr:hover {
|
24 |
background-color:#ccc;
|
25 |
}
|
26 |
+
div.wp-piwik-sidebox {
|
27 |
+
width:200px;
|
28 |
+
padding:10px;
|
29 |
+
float:right;
|
30 |
+
border:1px solid black;
|
31 |
+
background:#ffc
|
32 |
+
}
|
33 |
+
div.wp-piwik-sidebox div {
|
34 |
+
width:190px;
|
35 |
+
text-align:center;
|
36 |
+
border-top:1px solid black;
|
37 |
+
padding:5px
|
38 |
+
}
|
39 |
+
div.wp-piwik-settings-container {
|
40 |
+
margin-right:250px;
|
41 |
+
max-width:1024px;
|
42 |
+
}
|
43 |
+
div.wp-piwik-settings h4 {
|
44 |
+
float:left;
|
45 |
+
font-family:"Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif !important;
|
46 |
+
font-size:12px !important;
|
47 |
+
font-weight:normal;
|
48 |
+
padding-top:5px !important;
|
49 |
+
text-align:right;
|
50 |
+
width:100px;
|
51 |
+
}
|
52 |
+
div.wp-piwik-settings h4 label {
|
53 |
+
margin-right:10px;
|
54 |
+
vertical-align:middle;
|
55 |
+
}
|
56 |
+
div.wp-piwik-settings .input-text-wrap input,
|
57 |
+
div.wp-piwik-settings .input-text-wrap select,
|
58 |
+
div.wp-piwik-settings .input-text-wrap textarea,
|
59 |
+
div.wp-piwik-settings .input-wrap input {
|
60 |
+
border:0 none;
|
61 |
+
color:#333333;
|
62 |
+
margin:0;
|
63 |
+
outline:medium none;
|
64 |
+
padding:0;
|
65 |
+
width:99%;
|
66 |
+
}
|
67 |
+
div.wp-piwik-settings .input-wrap {
|
68 |
+
margin:0 0 1em 100px;
|
69 |
+
padding:3px 3px;
|
70 |
+
}
|
71 |
+
|
72 |
+
div.wp-piwik-settings .input-text-wrap {
|
73 |
+
margin:0 0 1em 100px;
|
74 |
+
border:1px solid #CCCCCC;
|
75 |
+
padding:2px 3px;
|
76 |
+
}
|
77 |
+
div.wp-piwik_desc {
|
78 |
+
font-size:11px;
|
79 |
+
margin:0 0 10px 100px;
|
80 |
+
padding:0;
|
81 |
+
}
|
82 |
+
|
83 |
+
div.wp-piwik_desc strong {
|
84 |
+
color:#f00;
|
85 |
+
}
|
dashboard/browsers.php
CHANGED
@@ -11,40 +11,20 @@
|
|
11 |
);
|
12 |
$aryConf['title'] = __('Browser', 'wp-piwik');
|
13 |
include('header.php');
|
14 |
-
$strValues =
|
15 |
-
$intSum = 0;
|
16 |
-
foreach ($aryConf['data'] as $aryValues) {
|
17 |
-
$intSum += $aryValues['nb_uniq_visitors'];
|
18 |
-
}
|
19 |
-
$intCount = 0; $intMore = 0;
|
20 |
foreach ($aryConf['data'] as $key => $aryValues) {
|
21 |
-
$aryConf['data'][$key]['wp_piwik_percent'] = round(($aryValues['nb_uniq_visitors']/$intSum*100), 2);
|
22 |
$intCount++;
|
23 |
-
if ($intCount <= 9)
|
24 |
-
|
25 |
-
|
26 |
-
} else ($intMore += $aryConf['data'][$key]['wp_piwik_percent']);
|
27 |
-
}
|
28 |
-
if ($intMore) {
|
29 |
-
$strValues .= $intMore.',';
|
30 |
-
$strLabels .= '|'.__('Others', 'wp-piwik');
|
31 |
}
|
|
|
32 |
$strValues = substr($strValues, 0, -1);
|
33 |
-
$strLabels = substr($strLabels, 1);
|
34 |
-
$strBase = 'http://chart.apis.google.com/chart?'.
|
35 |
-
'cht=p&'.
|
36 |
-
'chs=500x220&'.
|
37 |
-
'chd=t:'.$strValues.'&'.
|
38 |
-
'chl='.$strLabels.'&'.
|
39 |
-
'chco=405A89,C0DAFF&';
|
40 |
-
if (self::$bolWPMU)
|
41 |
-
$bolDisableGAPI = get_site_option('wpmu-piwik_disable_gapi');
|
42 |
-
else
|
43 |
-
$bolDisableGAPI = get_option('wp-piwik_disable_gapi');
|
44 |
|
45 |
/***************************************************************************/ ?>
|
46 |
<div class="wp-piwik-graph-wide">
|
47 |
-
|
48 |
</div>
|
49 |
<div class="table">
|
50 |
<table class="widefat wp-piwik-table">
|
@@ -63,13 +43,20 @@
|
|
63 |
'</td><td class="n">'.
|
64 |
$aryValues['nb_uniq_visitors'].
|
65 |
'</td><td class="n">'.
|
66 |
-
number_format($aryValues['
|
67 |
'%</td></tr>';
|
68 |
unset($aryTmp);
|
69 |
/***************************************************************************/ ?>
|
70 |
</tbody>
|
71 |
</table>
|
72 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
<?php /************************************************************************/
|
74 |
include ('footer.php');
|
75 |
|
11 |
);
|
12 |
$aryConf['title'] = __('Browser', 'wp-piwik');
|
13 |
include('header.php');
|
14 |
+
$strValues = '';
|
15 |
+
$intCount = 0; $intMore = 0; $intSum = 0;
|
|
|
|
|
|
|
|
|
16 |
foreach ($aryConf['data'] as $key => $aryValues) {
|
|
|
17 |
$intCount++;
|
18 |
+
if ($intCount <= 9) $strValues .= '["'.$aryValues['shortLabel'].'",'.$aryValues['nb_uniq_visitors'].'],';
|
19 |
+
else $intMore += $aryValues['nb_uniq_visitors'];
|
20 |
+
$intSum += $aryValues['nb_uniq_visitors'];
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
+
if ($intMore) $strValues .= '["'.__('Others', 'wp-piwik').'",'.$intMore.'],';
|
23 |
$strValues = substr($strValues, 0, -1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
/***************************************************************************/ ?>
|
26 |
<div class="wp-piwik-graph-wide">
|
27 |
+
<div id="wp-piwik_stats_browsers_graph" style="height:310px;width:490px"></div>
|
28 |
</div>
|
29 |
<div class="table">
|
30 |
<table class="widefat wp-piwik-table">
|
43 |
'</td><td class="n">'.
|
44 |
$aryValues['nb_uniq_visitors'].
|
45 |
'</td><td class="n">'.
|
46 |
+
number_format($aryValues['nb_uniq_visitors']/$intSum*100, 2).
|
47 |
'%</td></tr>';
|
48 |
unset($aryTmp);
|
49 |
/***************************************************************************/ ?>
|
50 |
</tbody>
|
51 |
</table>
|
52 |
</div>
|
53 |
+
<script type="text/javascript">
|
54 |
+
$j.jqplot('wp-piwik_stats_browsers_graph', [[<?php echo $strValues; ?>]], {
|
55 |
+
seriesDefaults:{renderer:$j.jqplot.PieRenderer, rendererOptions:{sliceMargin:8}},
|
56 |
+
legend:{show:true}
|
57 |
+
|
58 |
+
});
|
59 |
+
</script>
|
60 |
<?php /************************************************************************/
|
61 |
include ('footer.php');
|
62 |
|
dashboard/header.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
**********************************/
|
5 |
?>
|
6 |
<div id="<?php echo $aryConf['id']; ?>" class="postbox <?php echo ($aryConf['closed']?'if-js-closed':''); ?>" >
|
7 |
-
<div class="handlediv" title="
|
8 |
<br />
|
9 |
</div>
|
10 |
<h3 class='hndle'>
|
4 |
**********************************/
|
5 |
?>
|
6 |
<div id="<?php echo $aryConf['id']; ?>" class="postbox <?php echo ($aryConf['closed']?'if-js-closed':''); ?>" >
|
7 |
+
<div class="handlediv" title="Click to toggle">
|
8 |
<br />
|
9 |
</div>
|
10 |
<h3 class='hndle'>
|
dashboard/overview.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
$aryConf['params']['limit']
|
11 |
);
|
12 |
$aryConf['title'] = __('Overview', 'wp-piwik');
|
13 |
-
if (!isset($aryConf['inline']) ||
|
14 |
include('header.php');
|
15 |
if ($aryConf['params']['date'] == 'last30') {
|
16 |
$aryTmp = array(
|
@@ -46,7 +46,7 @@
|
|
46 |
echo '<tr><td>'.__('Total time spent by visitors', 'wp-piwik').':</td><td>'.$strTime.'</td></tr>';
|
47 |
echo '<tr><td>'.__('Bounce count', 'wp-piwik').':</td><td>'.$aryConf['data']['bounce_count'].'</td></tr>';
|
48 |
if (get_option('wp-piwik_piwiklink', 0))
|
49 |
-
echo '<tr><td>'.__('Shortcut', 'wp-piwik').':</td><td><a href="'.get_option('wp-piwik_url').'">Piwik</a
|
50 |
|
51 |
/***************************************************************************/ ?>
|
52 |
</tbody>
|
10 |
$aryConf['params']['limit']
|
11 |
);
|
12 |
$aryConf['title'] = __('Overview', 'wp-piwik');
|
13 |
+
if (!isset($aryConf['inline']) || $aryConf['inline'] != true)
|
14 |
include('header.php');
|
15 |
if ($aryConf['params']['date'] == 'last30') {
|
16 |
$aryTmp = array(
|
46 |
echo '<tr><td>'.__('Total time spent by visitors', 'wp-piwik').':</td><td>'.$strTime.'</td></tr>';
|
47 |
echo '<tr><td>'.__('Bounce count', 'wp-piwik').':</td><td>'.$aryConf['data']['bounce_count'].'</td></tr>';
|
48 |
if (get_option('wp-piwik_piwiklink', 0))
|
49 |
+
echo '<tr><td>'.__('Shortcut', 'wp-piwik').':</td><td><a href="'.get_option('wp-piwik_url').'">Piwik</a>'.(isset($aryConf['inline']) && $aryConf['inline']?' - <a href="?page=wp-piwik/wp-piwik.php">WP-Piwik</a>':'').'</td></tr>';
|
50 |
|
51 |
/***************************************************************************/ ?>
|
52 |
</tbody>
|
dashboard/screens.php
CHANGED
@@ -11,39 +11,19 @@
|
|
11 |
);
|
12 |
$aryConf['title'] = __('Resolution', 'wp-piwik');
|
13 |
include('header.php');
|
14 |
-
$strValues =
|
15 |
-
$intSum = 0;
|
16 |
-
foreach ($aryConf['data'] as $aryValues)
|
|
|
|
|
|
|
17 |
$intSum += $aryValues['nb_uniq_visitors'];
|
18 |
-
|
19 |
-
|
20 |
-
$aryConf['data'][$key]['wp_piwik_percent'] = round(($aryValues['nb_uniq_visitors']/$intSum*100), 2);
|
21 |
-
$intCount++;
|
22 |
-
if ($intCount <= 9) {
|
23 |
-
$strValues .= $aryConf['data'][$key]['wp_piwik_percent'].',';
|
24 |
-
$strLabels .= '|'.urlencode($aryValues['label']);
|
25 |
-
} else ($intMore += $aryConf['data'][$key]['wp_piwik_percent']);
|
26 |
-
}
|
27 |
-
if ($intMore) {
|
28 |
-
$strValues .= $intMore.',';
|
29 |
-
$strLabels .= '|'.__('Others', 'wp-piwik');
|
30 |
-
}
|
31 |
$strValues = substr($strValues, 0, -1);
|
32 |
-
$strLabels = substr($strLabels, 1);
|
33 |
-
$strBase = 'http://chart.apis.google.com/chart?'.
|
34 |
-
'cht=p&'.
|
35 |
-
'chs=500x220&'.
|
36 |
-
'chd=t:'.$strValues.'&'.
|
37 |
-
'chl='.$strLabels.'&'.
|
38 |
-
'chco=405A89,C0DAFF&';
|
39 |
-
if (self::$bolWPMU)
|
40 |
-
$bolDisableGAPI = get_site_option('wpmu-piwik_disable_gapi');
|
41 |
-
else
|
42 |
-
$bolDisableGAPI = get_option('wp-piwik_disable_gapi');
|
43 |
-
|
44 |
/***************************************************************************/ ?>
|
45 |
<div class="wp-piwik-graph-wide">
|
46 |
-
|
47 |
</div>
|
48 |
<div class="table">
|
49 |
<table class="widefat wp-piwik-table">
|
@@ -62,13 +42,20 @@
|
|
62 |
'</td><td class="n">'.
|
63 |
$aryValues['nb_uniq_visitors'].
|
64 |
'</td><td class="n">'.
|
65 |
-
number_format($aryValues['
|
66 |
'%</td></tr>';
|
67 |
unset($aryTmp);
|
68 |
/***************************************************************************/ ?>
|
69 |
</tbody>
|
70 |
</table>
|
71 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
<?php /************************************************************************/
|
73 |
include ('footer.php');
|
74 |
|
11 |
);
|
12 |
$aryConf['title'] = __('Resolution', 'wp-piwik');
|
13 |
include('header.php');
|
14 |
+
$strValues = '';
|
15 |
+
$intCount = 0; $intMore = 0; $intSum = 0;
|
16 |
+
foreach ($aryConf['data'] as $key => $aryValues) {
|
17 |
+
$intCount++;
|
18 |
+
if ($intCount <= 9) $strValues .= '["'.$aryValues['label'].'",'.$aryValues['nb_uniq_visitors'].'],';
|
19 |
+
else $intMore += $aryValues['nb_uniq_visitors'];
|
20 |
$intSum += $aryValues['nb_uniq_visitors'];
|
21 |
+
}
|
22 |
+
if ($intMore) $strValues .= '["'.__('Others', 'wp-piwik').'",'.$intMore.'],';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
$strValues = substr($strValues, 0, -1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
/***************************************************************************/ ?>
|
25 |
<div class="wp-piwik-graph-wide">
|
26 |
+
<div id="wp-piwik_stats_screens_graph" style="height:310px;width:490px"></div>
|
27 |
</div>
|
28 |
<div class="table">
|
29 |
<table class="widefat wp-piwik-table">
|
42 |
'</td><td class="n">'.
|
43 |
$aryValues['nb_uniq_visitors'].
|
44 |
'</td><td class="n">'.
|
45 |
+
number_format($aryValues['nb_uniq_visitors']/$intSum*100, 2).
|
46 |
'%</td></tr>';
|
47 |
unset($aryTmp);
|
48 |
/***************************************************************************/ ?>
|
49 |
</tbody>
|
50 |
</table>
|
51 |
</div>
|
52 |
+
<script type="text/javascript">
|
53 |
+
$j.jqplot('wp-piwik_stats_screens_graph', [[<?php echo $strValues; ?>]], {
|
54 |
+
seriesDefaults:{renderer:$j.jqplot.PieRenderer, rendererOptions:{sliceMargin:8}},
|
55 |
+
legend:{show:true}
|
56 |
+
|
57 |
+
});
|
58 |
+
</script>
|
59 |
<?php /************************************************************************/
|
60 |
include ('footer.php');
|
61 |
|
dashboard/systems.php
CHANGED
@@ -11,39 +11,21 @@
|
|
11 |
);
|
12 |
$aryConf['title'] = __('Operating System', 'wp-piwik');
|
13 |
include('header.php');
|
14 |
-
$strValues =
|
15 |
-
$intSum = 0;
|
16 |
-
foreach ($aryConf['data'] as $aryValues)
|
|
|
|
|
|
|
17 |
$intSum += $aryValues['nb_uniq_visitors'];
|
18 |
-
|
19 |
-
|
20 |
-
$aryConf['data'][$key]['wp_piwik_percent'] = round(($aryValues['nb_uniq_visitors']/$intSum*100), 2);
|
21 |
-
$intCount++;
|
22 |
-
if ($intCount <= 9) {
|
23 |
-
$strValues .= $aryConf['data'][$key]['wp_piwik_percent'].',';
|
24 |
-
$strLabels .= '|'.urlencode($aryValues['label']);
|
25 |
-
} else ($intMore += $aryConf['data'][$key]['wp_piwik_percent']);
|
26 |
-
}
|
27 |
-
if ($intMore) {
|
28 |
-
$strValues .= $intMore.',';
|
29 |
-
$strLabels .= '|'.__('Others', 'wp-piwik');
|
30 |
-
}
|
31 |
$strValues = substr($strValues, 0, -1);
|
32 |
-
|
33 |
-
$strBase = 'http://chart.apis.google.com/chart?'.
|
34 |
-
'cht=p&'.
|
35 |
-
'chs=500x220&'.
|
36 |
-
'chd=t:'.$strValues.'&'.
|
37 |
-
'chl='.$strLabels.'&'.
|
38 |
-
'chco=405A89,C0DAFF&';
|
39 |
-
if (self::$bolWPMU)
|
40 |
-
$bolDisableGAPI = get_site_option('wpmu-piwik_disable_gapi');
|
41 |
-
else
|
42 |
-
$bolDisableGAPI = get_option('wp-piwik_disable_gapi');
|
43 |
|
44 |
/***************************************************************************/ ?>
|
45 |
<div class="wp-piwik-graph-wide">
|
46 |
-
|
47 |
</div>
|
48 |
<div class="table">
|
49 |
<table class="widefat wp-piwik-table">
|
@@ -62,13 +44,20 @@
|
|
62 |
'</td><td class="n">'.
|
63 |
$aryValues['nb_uniq_visitors'].
|
64 |
'</td><td class="n">'.
|
65 |
-
number_format($aryValues['
|
66 |
'%</td></tr>';
|
67 |
unset($aryTmp);
|
68 |
/***************************************************************************/ ?>
|
69 |
</tbody>
|
70 |
</table>
|
71 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
<?php /************************************************************************/
|
73 |
include ('footer.php');
|
74 |
|
11 |
);
|
12 |
$aryConf['title'] = __('Operating System', 'wp-piwik');
|
13 |
include('header.php');
|
14 |
+
$strValues = '';
|
15 |
+
$intCount = 0; $intMore = 0; $intSum = 0;
|
16 |
+
foreach ($aryConf['data'] as $key => $aryValues) {
|
17 |
+
$intCount++;
|
18 |
+
if ($intCount <= 9) $strValues .= '["'.$aryValues['label'].'",'.$aryValues['nb_uniq_visitors'].'],';
|
19 |
+
else $intMore += $aryValues['nb_uniq_visitors'];
|
20 |
$intSum += $aryValues['nb_uniq_visitors'];
|
21 |
+
}
|
22 |
+
if ($intMore) $strValues .= '["'.__('Others', 'wp-piwik').'",'.$intMore.'],';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
$strValues = substr($strValues, 0, -1);
|
24 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
/***************************************************************************/ ?>
|
27 |
<div class="wp-piwik-graph-wide">
|
28 |
+
<div id="wp-piwik_stats_systems_graph" style="height:310px;width:490px"></div>
|
29 |
</div>
|
30 |
<div class="table">
|
31 |
<table class="widefat wp-piwik-table">
|
44 |
'</td><td class="n">'.
|
45 |
$aryValues['nb_uniq_visitors'].
|
46 |
'</td><td class="n">'.
|
47 |
+
number_format($aryValues['nb_uniq_visitors']/$intSum*100, 2).
|
48 |
'%</td></tr>';
|
49 |
unset($aryTmp);
|
50 |
/***************************************************************************/ ?>
|
51 |
</tbody>
|
52 |
</table>
|
53 |
</div>
|
54 |
+
<script type="text/javascript">
|
55 |
+
$j.jqplot('wp-piwik_stats_systems_graph', [[<?php echo $strValues; ?>]], {
|
56 |
+
seriesDefaults:{renderer:$j.jqplot.PieRenderer, rendererOptions:{sliceMargin:8}},
|
57 |
+
legend:{show:true}
|
58 |
+
|
59 |
+
});
|
60 |
+
</script>
|
61 |
<?php /************************************************************************/
|
62 |
include ('footer.php');
|
63 |
|
dashboard/visitors.php
CHANGED
@@ -23,43 +23,26 @@
|
|
23 |
);
|
24 |
$aryConf['title'] = __('Visitors', 'wp-piwik');
|
25 |
include('header.php');
|
26 |
-
$strValues = $strLabels = $strBounced = $strValuesU = '';
|
27 |
-
$
|
28 |
-
while ($intMax % 10 != 0 || $intMax == 0) $intMax++;
|
29 |
-
$intStep = $intMax / 5;
|
30 |
-
if ($intStep < 10) $intStep = 10;
|
31 |
-
else while ($intStep % 10 != 0 && $intStep != 1) $intStep--;
|
32 |
-
$intUSum = 0;
|
33 |
foreach ($aryConf['data']['Visitors'] as $strDate => $intValue) {
|
34 |
-
$
|
35 |
-
$
|
36 |
-
$
|
37 |
-
$
|
|
|
38 |
$intUSum += $aryConf['data']['Unique'][$strDate];
|
39 |
}
|
40 |
$intAvg = round($intUSum/30,0);
|
41 |
-
$intAvgG = round($intAvg/($intMax/100),2);
|
42 |
$strValues = substr($strValues, 0, -1);
|
43 |
$strValuesU = substr($strValuesU, 0, -1);
|
|
|
44 |
$strBounced = substr($strBounced, 0, -1);
|
45 |
-
$
|
46 |
-
$strGraph = 'cht=lc&'.
|
47 |
-
'chg=0,'.round($intStep/($intMax/100),2).',2,2&'.
|
48 |
-
'chs=500x220&'.
|
49 |
-
'chd=t:'.$strValues.'|'.$strValuesU.'|'.$strBounced.'|'.$intAvgG.','.$intAvgG.'&'.
|
50 |
-
'chxl=0:'.$strLabels.'&'.
|
51 |
-
'chco=90AAD9,A0BAE9,E9A0BA,FF0000&'.
|
52 |
-
'chm=B,D4E2ED,0,1,0|B,E4F2FD,1,2,0|B,FDE4F2,2,3,0&'.
|
53 |
-
'chxt=x,y&'.
|
54 |
-
'chxr=1,0,'.$intMax.','.$intStep;
|
55 |
-
if (self::$bolWPMU)
|
56 |
-
$bolDisableGAPI = get_site_option('wpmu-piwik_disable_gapi');
|
57 |
-
else
|
58 |
-
$bolDisableGAPI = get_option('wp-piwik_disable_gapi');
|
59 |
|
60 |
/***************************************************************************/ ?>
|
61 |
<div class="wp-piwik-graph-wide">
|
62 |
-
|
63 |
</div>
|
64 |
<div class="table">
|
65 |
<table class="widefat wp-piwik-table">
|
@@ -87,6 +70,14 @@
|
|
87 |
</tbody>
|
88 |
</table>
|
89 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
<?php /************************************************************************/
|
91 |
include ('footer.php');
|
92 |
|
23 |
);
|
24 |
$aryConf['title'] = __('Visitors', 'wp-piwik');
|
25 |
include('header.php');
|
26 |
+
$strValues = $strLabels = $strBounced = $strValuesU = $strCounter = '';
|
27 |
+
$intUSum = $intCount = 0;
|
|
|
|
|
|
|
|
|
|
|
28 |
foreach ($aryConf['data']['Visitors'] as $strDate => $intValue) {
|
29 |
+
$intCount++;
|
30 |
+
$strValues .= $intValue.',';
|
31 |
+
$strValuesU .= $aryConf['data']['Unique'][$strDate].',';
|
32 |
+
$strBounced .= $aryConf['data']['Bounced'][$strDate].',';
|
33 |
+
$strLabels .= '['.$intCount.',"'.substr($strDate,-2).'"],';
|
34 |
$intUSum += $aryConf['data']['Unique'][$strDate];
|
35 |
}
|
36 |
$intAvg = round($intUSum/30,0);
|
|
|
37 |
$strValues = substr($strValues, 0, -1);
|
38 |
$strValuesU = substr($strValuesU, 0, -1);
|
39 |
+
$strLabels = substr($strLabels, 0, -1);
|
40 |
$strBounced = substr($strBounced, 0, -1);
|
41 |
+
$strCounter = substr($strCounter, 0, -1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
/***************************************************************************/ ?>
|
44 |
<div class="wp-piwik-graph-wide">
|
45 |
+
<div id="wp-piwik_stats_vistors_graph" style="height:220px;width:490px"></div>
|
46 |
</div>
|
47 |
<div class="table">
|
48 |
<table class="widefat wp-piwik-table">
|
70 |
</tbody>
|
71 |
</table>
|
72 |
</div>
|
73 |
+
<script type="text/javascript">
|
74 |
+
$j.jqplot('wp-piwik_stats_vistors_graph', [[<?php echo $strValues; ?>],[<?php echo $strValuesU; ?>],[<?php echo $strBounced;?>]],
|
75 |
+
{
|
76 |
+
axes:{yaxis:{min:0, tickOptions:{formatString:'%.0f'}},xaxis:{min:1,max:30,ticks:[<?php echo $strLabels; ?>]}},
|
77 |
+
seriesDefaults:{showMarker:false,lineWidth:1,fill:true,fillAndStroke:true,fillAlpha:0.9,trendline:{show:false,color:'#C00',lineWidth:1.5,type:'exp'}},
|
78 |
+
series:[{color:'#90AAD9',fillColor:'#D4E2ED'},{color:'#A3BCEA',fillColor:'#E4F2FD',trendline:{show:true,label:'Unique visitor trend'}},{color:'#E9A0BA',fillColor:'#FDE4F2'}],
|
79 |
+
});
|
80 |
+
</script>
|
81 |
<?php /************************************************************************/
|
82 |
include ('footer.php');
|
83 |
|
js/jqplot/IMPORTANT_NOTICE.txt
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
This package contains just parts needed by WP-Piwik. To get the full package of jqPlot, visit http://www.jqplot.com/
|
js/jqplot/MIT-LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Title: MIT License
|
2 |
+
|
3 |
+
Copyright (c) 2009 Chris Leonello
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in
|
13 |
+
all copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21 |
+
THE SOFTWARE.
|
js/jqplot/README.txt
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Title: jqPlot Readme
|
2 |
+
|
3 |
+
Pure JavaScript plotting plugin for jQuery.
|
4 |
+
|
5 |
+
Copyright (c) 2009 Chris Leonello
|
6 |
+
This software is licensed under the GPL version 2.0 and MIT licenses.
|
7 |
+
|
8 |
+
To learn how to use jqPlot, start with the Basic Unsage Instructions below. Then read the
|
9 |
+
usage.txt and jqPlotOptions.txt files included with the distribution.
|
10 |
+
|
11 |
+
The jqPlot home page is at <http://www.jqplot.com/>.
|
12 |
+
|
13 |
+
Downloads can be found at <http://bitbucket.org/cleonello/jqplot/downloads/>.
|
14 |
+
|
15 |
+
The mailing list is at <http://groups.google.com/group/jqplot-users>.
|
16 |
+
|
17 |
+
Examples and unit tests are at <http://www.jqplot.com/tests/>.
|
18 |
+
|
19 |
+
Documentation is at <http://www.jqplot.com/docs/>.
|
20 |
+
|
21 |
+
The project page and source code are at <http://www.bitbucket.org/cleonello/jqplot/>.
|
22 |
+
|
23 |
+
Bugs, issues, feature requests: <http://www.bitbucket.org/cleonello/jqplot/issues/>.
|
24 |
+
|
25 |
+
Basic Usage Instructions:
|
26 |
+
|
27 |
+
jqPlot requires jQuery (tested with 1.3.2 or better). jQuery 1.3.2 is included in
|
28 |
+
the distribution. To use jqPlot include jQuery, the jqPlot jQuery plugin, the jqPlot css file and
|
29 |
+
optionally the excanvas script for IE support in your web page...
|
30 |
+
|
31 |
+
> <!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.js"></script><![endif]-->
|
32 |
+
> <script language="javascript" type="text/javascript" src="jquery-1.3.2.min.js"></script>
|
33 |
+
> <script language="javascript" type="text/javascript" src="jquery.jqplot.min.js"></script>
|
34 |
+
> <link rel="stylesheet" type="text/css" href="jquery.jqplot.css" />
|
35 |
+
|
36 |
+
For usage instructions, see <jqPlot Usage> in usage.txt. For available options, see
|
37 |
+
<jqPlot Options> in jqPlotOptions.txt.
|
38 |
+
|
39 |
+
Building from source:
|
40 |
+
|
41 |
+
To build a distribution from source you need to have ant <http://ant.apache.org>
|
42 |
+
installed. There are 6 targets: clean, dist, min, tests, docs and all. Use
|
43 |
+
|
44 |
+
> ant -p
|
45 |
+
|
46 |
+
to get a description of the various build targets.
|
js/jqplot/copyright.txt
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Copyright (c) 2009 Chris Leonello
|
3 |
+
* jqPlot is currently available for use in all personal or commercial projects
|
4 |
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
5 |
+
* choose the license that best suits your project and use it accordingly.
|
6 |
+
*
|
7 |
+
* Although not required, the author would appreciate an email letting him
|
8 |
+
* know of any substantial use of jqPlot. You can reach the author at:
|
9 |
+
* chris dot leonello at gmail dot com or see http://www.jqplot.com/info.php .
|
10 |
+
*
|
11 |
+
* If you are feeling kind and generous, consider supporting the project by
|
12 |
+
* making a donation at: http://www.jqplot.com/donate.php .
|
13 |
+
*/
|
js/jqplot/excanvas.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
if(!document.createElement("canvas").getContext){(function(){var Y=Math;var q=Y.round;var o=Y.sin;var B=Y.cos;var H=Y.abs;var N=Y.sqrt;var d=10;var f=d/2;function A(){return this.context_||(this.context_=new D(this))}var v=Array.prototype.slice;function g(j,m,p){var i=v.call(arguments,2);return function(){return j.apply(m,i.concat(v.call(arguments)))}}function ad(i){return String(i).replace(/&/g,"&").replace(/"/g,""")}function R(j){if(!j.namespaces.g_vml_){j.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML")}if(!j.namespaces.g_o_){j.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML")}if(!j.styleSheets.ex_canvas_){var i=j.createStyleSheet();i.owningElement.id="ex_canvas_";i.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}R(document);var e={init:function(i){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var j=i||document;j.createElement("canvas");j.attachEvent("onreadystatechange",g(this.init_,this,j))}},init_:function(p){var m=p.getElementsByTagName("canvas");for(var j=0;j<m.length;j++){this.initElement(m[j])}},initElement:function(j){if(!j.getContext){j.getContext=A;R(j.ownerDocument);j.innerHTML="";j.attachEvent("onpropertychange",z);j.attachEvent("onresize",V);var i=j.attributes;if(i.width&&i.width.specified){j.style.width=i.width.nodeValue+"px"}else{j.width=j.clientWidth}if(i.height&&i.height.specified){j.style.height=i.height.nodeValue+"px"}else{j.height=j.clientHeight}}return j}};function z(j){var i=j.srcElement;switch(j.propertyName){case"width":i.getContext().clearRect();i.style.width=i.attributes.width.nodeValue+"px";i.firstChild.style.width=i.clientWidth+"px";break;case"height":i.getContext().clearRect();i.style.height=i.attributes.height.nodeValue+"px";i.firstChild.style.height=i.clientHeight+"px";break}}function V(j){var i=j.srcElement;if(i.firstChild){i.firstChild.style.width=i.clientWidth+"px";i.firstChild.style.height=i.clientHeight+"px"}}e.init();var n=[];for(var ac=0;ac<16;ac++){for(var ab=0;ab<16;ab++){n[ac*16+ab]=ac.toString(16)+ab.toString(16)}}function C(){return[[1,0,0],[0,1,0],[0,0,1]]}function J(p,m){var j=C();for(var i=0;i<3;i++){for(var af=0;af<3;af++){var Z=0;for(var ae=0;ae<3;ae++){Z+=p[i][ae]*m[ae][af]}j[i][af]=Z}}return j}function x(j,i){i.fillStyle=j.fillStyle;i.lineCap=j.lineCap;i.lineJoin=j.lineJoin;i.lineWidth=j.lineWidth;i.miterLimit=j.miterLimit;i.shadowBlur=j.shadowBlur;i.shadowColor=j.shadowColor;i.shadowOffsetX=j.shadowOffsetX;i.shadowOffsetY=j.shadowOffsetY;i.strokeStyle=j.strokeStyle;i.globalAlpha=j.globalAlpha;i.font=j.font;i.textAlign=j.textAlign;i.textBaseline=j.textBaseline;i.arcScaleX_=j.arcScaleX_;i.arcScaleY_=j.arcScaleY_;i.lineScale_=j.lineScale_}var b={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};function M(j){var p=j.indexOf("(",3);var i=j.indexOf(")",p+1);var m=j.substring(p+1,i).split(",");if(m.length==4&&j.substr(3,1)=="a"){alpha=Number(m[3])}else{m[3]=1}return m}function c(i){return parseFloat(i)/100}function u(j,m,i){return Math.min(i,Math.max(m,j))}function I(af){var m,j,i;h=parseFloat(af[0])/360%360;if(h<0){h++}s=u(c(af[1]),0,1);l=u(c(af[2]),0,1);if(s==0){m=j=i=l}else{var Z=l<0.5?l*(1+s):l+s-l*s;var ae=2*l-Z;m=a(ae,Z,h+1/3);j=a(ae,Z,h);i=a(ae,Z,h-1/3)}return"#"+n[Math.floor(m*255)]+n[Math.floor(j*255)]+n[Math.floor(i*255)]}function a(j,i,m){if(m<0){m++}if(m>1){m--}if(6*m<1){return j+(i-j)*6*m}else{if(2*m<1){return i}else{if(3*m<2){return j+(i-j)*(2/3-m)*6}else{return j}}}}function F(j){var ae,Z=1;j=String(j);if(j.charAt(0)=="#"){ae=j}else{if(/^rgb/.test(j)){var p=M(j);var ae="#",af;for(var m=0;m<3;m++){if(p[m].indexOf("%")!=-1){af=Math.floor(c(p[m])*255)}else{af=Number(p[m])}ae+=n[u(af,0,255)]}Z=p[3]}else{if(/^hsl/.test(j)){var p=M(j);ae=I(p);Z=p[3]}else{ae=b[j]||j}}}return{color:ae,alpha:Z}}var r={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var L={};function E(i){if(L[i]){return L[i]}var p=document.createElement("div");var m=p.style;try{m.font=i}catch(j){}return L[i]={style:m.fontStyle||r.style,variant:m.fontVariant||r.variant,weight:m.fontWeight||r.weight,size:m.fontSize||r.size,family:m.fontFamily||r.family}}function w(m,j){var i={};for(var af in m){i[af]=m[af]}var ae=parseFloat(j.currentStyle.fontSize),Z=parseFloat(m.size);if(typeof m.size=="number"){i.size=m.size}else{if(m.size.indexOf("px")!=-1){i.size=Z}else{if(m.size.indexOf("em")!=-1){i.size=ae*Z}else{if(m.size.indexOf("%")!=-1){i.size=(ae/100)*Z}else{if(m.size.indexOf("pt")!=-1){i.size=ae*(4/3)*Z}else{i.size=ae}}}}}i.size*=0.981;return i}function aa(i){return i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family}function S(i){switch(i){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function D(j){this.m_=C();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=d*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=j;var i=j.ownerDocument.createElement("div");i.style.width=j.clientWidth+"px";i.style.height=j.clientHeight+"px";i.style.overflow="hidden";i.style.position="absolute";j.appendChild(i);this.element_=i;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var t=D.prototype;t.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};t.beginPath=function(){this.currentPath_=[]};t.moveTo=function(j,i){var m=this.getCoords_(j,i);this.currentPath_.push({type:"moveTo",x:m.x,y:m.y});this.currentX_=m.x;this.currentY_=m.y};t.lineTo=function(j,i){var m=this.getCoords_(j,i);this.currentPath_.push({type:"lineTo",x:m.x,y:m.y});this.currentX_=m.x;this.currentY_=m.y};t.bezierCurveTo=function(m,j,ai,ah,ag,ae){var i=this.getCoords_(ag,ae);var af=this.getCoords_(m,j);var Z=this.getCoords_(ai,ah);K(this,af,Z,i)};function K(i,Z,m,j){i.currentPath_.push({type:"bezierCurveTo",cp1x:Z.x,cp1y:Z.y,cp2x:m.x,cp2y:m.y,x:j.x,y:j.y});i.currentX_=j.x;i.currentY_=j.y}t.quadraticCurveTo=function(ag,m,j,i){var af=this.getCoords_(ag,m);var ae=this.getCoords_(j,i);var ah={x:this.currentX_+2/3*(af.x-this.currentX_),y:this.currentY_+2/3*(af.y-this.currentY_)};var Z={x:ah.x+(ae.x-this.currentX_)/3,y:ah.y+(ae.y-this.currentY_)/3};K(this,ah,Z,ae)};t.arc=function(aj,ah,ai,ae,j,m){ai*=d;var an=m?"at":"wa";var ak=aj+B(ae)*ai-f;var am=ah+o(ae)*ai-f;var i=aj+B(j)*ai-f;var al=ah+o(j)*ai-f;if(ak==i&&!m){ak+=0.125}var Z=this.getCoords_(aj,ah);var ag=this.getCoords_(ak,am);var af=this.getCoords_(i,al);this.currentPath_.push({type:an,x:Z.x,y:Z.y,radius:ai,xStart:ag.x,yStart:ag.y,xEnd:af.x,yEnd:af.y})};t.rect=function(m,j,i,p){this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+p);this.lineTo(m,j+p);this.closePath()};t.strokeRect=function(m,j,i,p){var Z=this.currentPath_;this.beginPath();this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+p);this.lineTo(m,j+p);this.closePath();this.stroke();this.currentPath_=Z};t.fillRect=function(m,j,i,p){var Z=this.currentPath_;this.beginPath();this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+p);this.lineTo(m,j+p);this.closePath();this.fill();this.currentPath_=Z};t.createLinearGradient=function(j,p,i,m){var Z=new U("gradient");Z.x0_=j;Z.y0_=p;Z.x1_=i;Z.y1_=m;return Z};t.createRadialGradient=function(p,ae,m,j,Z,i){var af=new U("gradientradial");af.x0_=p;af.y0_=ae;af.r0_=m;af.x1_=j;af.y1_=Z;af.r1_=i;return af};t.drawImage=function(ao,m){var ah,af,aj,aw,am,ak,aq,ay;var ai=ao.runtimeStyle.width;var an=ao.runtimeStyle.height;ao.runtimeStyle.width="auto";ao.runtimeStyle.height="auto";var ag=ao.width;var au=ao.height;ao.runtimeStyle.width=ai;ao.runtimeStyle.height=an;if(arguments.length==3){ah=arguments[1];af=arguments[2];am=ak=0;aq=aj=ag;ay=aw=au}else{if(arguments.length==5){ah=arguments[1];af=arguments[2];aj=arguments[3];aw=arguments[4];am=ak=0;aq=ag;ay=au}else{if(arguments.length==9){am=arguments[1];ak=arguments[2];aq=arguments[3];ay=arguments[4];ah=arguments[5];af=arguments[6];aj=arguments[7];aw=arguments[8]}else{throw Error("Invalid number of arguments")}}}var ax=this.getCoords_(ah,af);var p=aq/2;var j=ay/2;var av=[];var i=10;var ae=10;av.push(" <g_vml_:group",' coordsize="',d*i,",",d*ae,'"',' coordorigin="0,0"',' style="width:',i,"px;height:",ae,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]||this.m_[1][1]!=1||this.m_[1][0]){var Z=[];Z.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",q(ax.x/d),",","Dy=",q(ax.y/d),"");var at=ax;var ar=this.getCoords_(ah+aj,af);var ap=this.getCoords_(ah,af+aw);var al=this.getCoords_(ah+aj,af+aw);at.x=Y.max(at.x,ar.x,ap.x,al.x);at.y=Y.max(at.y,ar.y,ap.y,al.y);av.push("padding:0 ",q(at.x/d),"px ",q(at.y/d),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",Z.join(""),", sizingmethod='clip');")}else{av.push("top:",q(ax.y/d),"px;left:",q(ax.x/d),"px;")}av.push(' ">','<g_vml_:image src="',ao.src,'"',' style="width:',d*aj,"px;"," height:",d*aw,'px"',' cropleft="',am/ag,'"',' croptop="',ak/au,'"',' cropright="',(ag-am-aq)/ag,'"',' cropbottom="',(au-ak-ay)/au,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",av.join(""))};t.stroke=function(aj){var ah=[];var Z=false;var m=10;var ak=10;ah.push("<g_vml_:shape",' filled="',!!aj,'"',' style="position:absolute;width:',m,"px;height:",ak,'px;"',' coordorigin="0,0"',' coordsize="',d*m,",",d*ak,'"',' stroked="',!aj,'"',' path="');var al=false;var ae={x:null,y:null};var ai={x:null,y:null};for(var af=0;af<this.currentPath_.length;af++){var j=this.currentPath_[af];var ag;switch(j.type){case"moveTo":ag=j;ah.push(" m ",q(j.x),",",q(j.y));break;case"lineTo":ah.push(" l ",q(j.x),",",q(j.y));break;case"close":ah.push(" x ");j=null;break;case"bezierCurveTo":ah.push(" c ",q(j.cp1x),",",q(j.cp1y),",",q(j.cp2x),",",q(j.cp2y),",",q(j.x),",",q(j.y));break;case"at":case"wa":ah.push(" ",j.type," ",q(j.x-this.arcScaleX_*j.radius),",",q(j.y-this.arcScaleY_*j.radius)," ",q(j.x+this.arcScaleX_*j.radius),",",q(j.y+this.arcScaleY_*j.radius)," ",q(j.xStart),",",q(j.yStart)," ",q(j.xEnd),",",q(j.yEnd));break}if(j){if(ae.x==null||j.x<ae.x){ae.x=j.x}if(ai.x==null||j.x>ai.x){ai.x=j.x}if(ae.y==null||j.y<ae.y){ae.y=j.y}if(ai.y==null||j.y>ai.y){ai.y=j.y}}}ah.push(' ">');if(!aj){y(this,ah)}else{G(this,ah,ae,ai)}ah.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",ah.join(""))};function y(m,ae){var j=F(m.strokeStyle);var p=j.color;var Z=j.alpha*m.globalAlpha;var i=m.lineScale_*m.lineWidth;if(i<1){Z*=i}ae.push("<g_vml_:stroke",' opacity="',Z,'"',' joinstyle="',m.lineJoin,'"',' miterlimit="',m.miterLimit,'"',' endcap="',S(m.lineCap),'"',' weight="',i,'px"',' color="',p,'" />')}function G(ao,ag,aI,ap){var ah=ao.fillStyle;var az=ao.arcScaleX_;var ay=ao.arcScaleY_;var j=ap.x-aI.x;var p=ap.y-aI.y;if(ah instanceof U){var al=0;var aD={x:0,y:0};var av=0;var ak=1;if(ah.type_=="gradient"){var aj=ah.x0_/az;var m=ah.y0_/ay;var ai=ah.x1_/az;var aK=ah.y1_/ay;var aH=ao.getCoords_(aj,m);var aG=ao.getCoords_(ai,aK);var ae=aG.x-aH.x;var Z=aG.y-aH.y;al=Math.atan2(ae,Z)*180/Math.PI;if(al<0){al+=360}if(al<0.000001){al=0}}else{var aH=ao.getCoords_(ah.x0_,ah.y0_);aD={x:(aH.x-aI.x)/j,y:(aH.y-aI.y)/p};j/=az*d;p/=ay*d;var aB=Y.max(j,p);av=2*ah.r0_/aB;ak=2*ah.r1_/aB-av}var at=ah.colors_;at.sort(function(aL,i){return aL.offset-i.offset});var an=at.length;var ar=at[0].color;var aq=at[an-1].color;var ax=at[0].alpha*ao.globalAlpha;var aw=at[an-1].alpha*ao.globalAlpha;var aC=[];for(var aF=0;aF<an;aF++){var am=at[aF];aC.push(am.offset*ak+av+" "+am.color)}ag.push('<g_vml_:fill type="',ah.type_,'"',' method="none" focus="100%"',' color="',ar,'"',' color2="',aq,'"',' colors="',aC.join(","),'"',' opacity="',aw,'"',' g_o_:opacity2="',ax,'"',' angle="',al,'"',' focusposition="',aD.x,",",aD.y,'" />')}else{if(ah instanceof T){if(j&&p){var af=-aI.x;var aA=-aI.y;ag.push("<g_vml_:fill",' position="',af/j*az*az,",",aA/p*ay*ay,'"',' type="tile"',' src="',ah.src_,'" />')}}else{var aJ=F(ao.fillStyle);var au=aJ.color;var aE=aJ.alpha*ao.globalAlpha;ag.push('<g_vml_:fill color="',au,'" opacity="',aE,'" />')}}}t.fill=function(){this.stroke(true)};t.closePath=function(){this.currentPath_.push({type:"close"})};t.getCoords_=function(p,j){var i=this.m_;return{x:d*(p*i[0][0]+j*i[1][0]+i[2][0])-f,y:d*(p*i[0][1]+j*i[1][1]+i[2][1])-f}};t.save=function(){var i={};x(this,i);this.aStack_.push(i);this.mStack_.push(this.m_);this.m_=J(C(),this.m_)};t.restore=function(){if(this.aStack_.length){x(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function k(i){return isFinite(i[0][0])&&isFinite(i[0][1])&&isFinite(i[1][0])&&isFinite(i[1][1])&&isFinite(i[2][0])&&isFinite(i[2][1])}function X(j,i,p){if(!k(i)){return}j.m_=i;if(p){var Z=i[0][0]*i[1][1]-i[0][1]*i[1][0];j.lineScale_=N(H(Z))}}t.translate=function(m,j){var i=[[1,0,0],[0,1,0],[m,j,1]];X(this,J(i,this.m_),false)};t.rotate=function(j){var p=B(j);var m=o(j);var i=[[p,m,0],[-m,p,0],[0,0,1]];X(this,J(i,this.m_),false)};t.scale=function(m,j){this.arcScaleX_*=m;this.arcScaleY_*=j;var i=[[m,0,0],[0,j,0],[0,0,1]];X(this,J(i,this.m_),true)};t.transform=function(Z,p,af,ae,j,i){var m=[[Z,p,0],[af,ae,0],[j,i,1]];X(this,J(m,this.m_),true)};t.setTransform=function(ae,Z,ag,af,p,j){var i=[[ae,Z,0],[ag,af,0],[p,j,1]];X(this,i,true)};t.drawText_=function(ak,ai,ah,an,ag){var am=this.m_,aq=1000,j=0,ap=aq,af={x:0,y:0},ae=[];var i=w(E(this.font),this.element_);var p=aa(i);var ar=this.element_.currentStyle;var Z=this.textAlign.toLowerCase();switch(Z){case"left":case"center":case"right":break;case"end":Z=ar.direction=="ltr"?"right":"left";break;case"start":Z=ar.direction=="rtl"?"right":"left";break;default:Z="left"}switch(this.textBaseline){case"hanging":case"top":af.y=i.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":af.y=-i.size/2.25;break}switch(Z){case"right":j=aq;ap=0.05;break;case"center":j=ap=aq/2;break}var ao=this.getCoords_(ai+af.x,ah+af.y);ae.push('<g_vml_:line from="',-j,' 0" to="',ap,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!ag,'" stroked="',!!ag,'" style="position:absolute;width:1px;height:1px;">');if(ag){y(this,ae)}else{G(this,ae,{x:-j,y:0},{x:ap,y:i.size})}var al=am[0][0].toFixed(3)+","+am[1][0].toFixed(3)+","+am[0][1].toFixed(3)+","+am[1][1].toFixed(3)+",0,0";var aj=q(ao.x/d)+","+q(ao.y/d);ae.push('<g_vml_:skew on="t" matrix="',al,'" ',' offset="',aj,'" origin="',j,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',ad(ak),'" style="v-text-align:',Z,";font:",ad(p),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",ae.join(""))};t.fillText=function(m,i,p,j){this.drawText_(m,i,p,j,false)};t.strokeText=function(m,i,p,j){this.drawText_(m,i,p,j,true)};t.measureText=function(m){if(!this.textMeasureEl_){var i='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",i);this.textMeasureEl_=this.element_.lastChild}var j=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(j.createTextNode(m));return{width:this.textMeasureEl_.offsetWidth}};t.clip=function(){};t.arcTo=function(){};t.createPattern=function(j,i){return new T(j,i)};function U(i){this.type_=i;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}U.prototype.addColorStop=function(j,i){i=F(i);this.colors_.push({offset:j,color:i.color,alpha:i.alpha})};function T(j,i){Q(j);switch(i){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=i;break;default:O("SYNTAX_ERR")}this.src_=j.src;this.width_=j.width;this.height_=j.height}function O(i){throw new P(i)}function Q(i){if(!i||i.nodeType!=1||i.tagName!="IMG"){O("TYPE_MISMATCH_ERR")}if(i.readyState!="complete"){O("INVALID_STATE_ERR")}}function P(i){this.code=this[i];this.message=i+": DOM Exception "+this.code}var W=P.prototype=new Error;W.INDEX_SIZE_ERR=1;W.DOMSTRING_SIZE_ERR=2;W.HIERARCHY_REQUEST_ERR=3;W.WRONG_DOCUMENT_ERR=4;W.INVALID_CHARACTER_ERR=5;W.NO_DATA_ALLOWED_ERR=6;W.NO_MODIFICATION_ALLOWED_ERR=7;W.NOT_FOUND_ERR=8;W.NOT_SUPPORTED_ERR=9;W.INUSE_ATTRIBUTE_ERR=10;W.INVALID_STATE_ERR=11;W.SYNTAX_ERR=12;W.INVALID_MODIFICATION_ERR=13;W.NAMESPACE_ERR=14;W.INVALID_ACCESS_ERR=15;W.VALIDATION_ERR=16;W.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=e;CanvasRenderingContext2D=D;CanvasGradient=U;CanvasPattern=T;DOMException=P})()};
|
js/jqplot/gpl-2.0.txt
ADDED
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Title: GPL Version 2
|
2 |
+
|
3 |
+
GNU GENERAL PUBLIC LICENSE
|
4 |
+
Version 2, June 1991
|
5 |
+
|
6 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
7 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
8 |
+
Everyone is permitted to copy and distribute verbatim copies
|
9 |
+
of this license document, but changing it is not allowed.
|
10 |
+
|
11 |
+
Preamble
|
12 |
+
|
13 |
+
The licenses for most software are designed to take away your
|
14 |
+
freedom to share and change it. By contrast, the GNU General Public
|
15 |
+
License is intended to guarantee your freedom to share and change free
|
16 |
+
software--to make sure the software is free for all its users. This
|
17 |
+
General Public License applies to most of the Free Software
|
18 |
+
Foundation's software and to any other program whose authors commit to
|
19 |
+
using it. (Some other Free Software Foundation software is covered by
|
20 |
+
the GNU Lesser General Public License instead.) You can apply it to
|
21 |
+
your programs, too.
|
22 |
+
|
23 |
+
When we speak of free software, we are referring to freedom, not
|
24 |
+
price. Our General Public Licenses are designed to make sure that you
|
25 |
+
have the freedom to distribute copies of free software (and charge for
|
26 |
+
this service if you wish), that you receive source code or can get it
|
27 |
+
if you want it, that you can change the software or use pieces of it
|
28 |
+
in new free programs; and that you know you can do these things.
|
29 |
+
|
30 |
+
To protect your rights, we need to make restrictions that forbid
|
31 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
32 |
+
These restrictions translate to certain responsibilities for you if you
|
33 |
+
distribute copies of the software, or if you modify it.
|
34 |
+
|
35 |
+
For example, if you distribute copies of such a program, whether
|
36 |
+
gratis or for a fee, you must give the recipients all the rights that
|
37 |
+
you have. You must make sure that they, too, receive or can get the
|
38 |
+
source code. And you must show them these terms so they know their
|
39 |
+
rights.
|
40 |
+
|
41 |
+
We protect your rights with two steps: (1) copyright the software, and
|
42 |
+
(2) offer you this license which gives you legal permission to copy,
|
43 |
+
distribute and/or modify the software.
|
44 |
+
|
45 |
+
Also, for each author's protection and ours, we want to make certain
|
46 |
+
that everyone understands that there is no warranty for this free
|
47 |
+
software. If the software is modified by someone else and passed on, we
|
48 |
+
want its recipients to know that what they have is not the original, so
|
49 |
+
that any problems introduced by others will not reflect on the original
|
50 |
+
authors' reputations.
|
51 |
+
|
52 |
+
Finally, any free program is threatened constantly by software
|
53 |
+
patents. We wish to avoid the danger that redistributors of a free
|
54 |
+
program will individually obtain patent licenses, in effect making the
|
55 |
+
program proprietary. To prevent this, we have made it clear that any
|
56 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
57 |
+
|
58 |
+
The precise terms and conditions for copying, distribution and
|
59 |
+
modification follow.
|
60 |
+
|
61 |
+
GNU GENERAL PUBLIC LICENSE
|
62 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
63 |
+
|
64 |
+
0. This License applies to any program or other work which contains
|
65 |
+
a notice placed by the copyright holder saying it may be distributed
|
66 |
+
under the terms of this General Public License. The "Program", below,
|
67 |
+
refers to any such program or work, and a "work based on the Program"
|
68 |
+
means either the Program or any derivative work under copyright law:
|
69 |
+
that is to say, a work containing the Program or a portion of it,
|
70 |
+
either verbatim or with modifications and/or translated into another
|
71 |
+
language. (Hereinafter, translation is included without limitation in
|
72 |
+
the term "modification".) Each licensee is addressed as "you".
|
73 |
+
|
74 |
+
Activities other than copying, distribution and modification are not
|
75 |
+
covered by this License; they are outside its scope. The act of
|
76 |
+
running the Program is not restricted, and the output from the Program
|
77 |
+
is covered only if its contents constitute a work based on the
|
78 |
+
Program (independent of having been made by running the Program).
|
79 |
+
Whether that is true depends on what the Program does.
|
80 |
+
|
81 |
+
1. You may copy and distribute verbatim copies of the Program's
|
82 |
+
source code as you receive it, in any medium, provided that you
|
83 |
+
conspicuously and appropriately publish on each copy an appropriate
|
84 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
85 |
+
notices that refer to this License and to the absence of any warranty;
|
86 |
+
and give any other recipients of the Program a copy of this License
|
87 |
+
along with the Program.
|
88 |
+
|
89 |
+
You may charge a fee for the physical act of transferring a copy, and
|
90 |
+
you may at your option offer warranty protection in exchange for a fee.
|
91 |
+
|
92 |
+
2. You may modify your copy or copies of the Program or any portion
|
93 |
+
of it, thus forming a work based on the Program, and copy and
|
94 |
+
distribute such modifications or work under the terms of Section 1
|
95 |
+
above, provided that you also meet all of these conditions:
|
96 |
+
|
97 |
+
a) You must cause the modified files to carry prominent notices
|
98 |
+
stating that you changed the files and the date of any change.
|
99 |
+
|
100 |
+
b) You must cause any work that you distribute or publish, that in
|
101 |
+
whole or in part contains or is derived from the Program or any
|
102 |
+
part thereof, to be licensed as a whole at no charge to all third
|
103 |
+
parties under the terms of this License.
|
104 |
+
|
105 |
+
c) If the modified program normally reads commands interactively
|
106 |
+
when run, you must cause it, when started running for such
|
107 |
+
interactive use in the most ordinary way, to print or display an
|
108 |
+
announcement including an appropriate copyright notice and a
|
109 |
+
notice that there is no warranty (or else, saying that you provide
|
110 |
+
a warranty) and that users may redistribute the program under
|
111 |
+
these conditions, and telling the user how to view a copy of this
|
112 |
+
License. (Exception: if the Program itself is interactive but
|
113 |
+
does not normally print such an announcement, your work based on
|
114 |
+
the Program is not required to print an announcement.)
|
115 |
+
|
116 |
+
These requirements apply to the modified work as a whole. If
|
117 |
+
identifiable sections of that work are not derived from the Program,
|
118 |
+
and can be reasonably considered independent and separate works in
|
119 |
+
themselves, then this License, and its terms, do not apply to those
|
120 |
+
sections when you distribute them as separate works. But when you
|
121 |
+
distribute the same sections as part of a whole which is a work based
|
122 |
+
on the Program, the distribution of the whole must be on the terms of
|
123 |
+
this License, whose permissions for other licensees extend to the
|
124 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
125 |
+
|
126 |
+
Thus, it is not the intent of this section to claim rights or contest
|
127 |
+
your rights to work written entirely by you; rather, the intent is to
|
128 |
+
exercise the right to control the distribution of derivative or
|
129 |
+
collective works based on the Program.
|
130 |
+
|
131 |
+
In addition, mere aggregation of another work not based on the Program
|
132 |
+
with the Program (or with a work based on the Program) on a volume of
|
133 |
+
a storage or distribution medium does not bring the other work under
|
134 |
+
the scope of this License.
|
135 |
+
|
136 |
+
3. You may copy and distribute the Program (or a work based on it,
|
137 |
+
under Section 2) in object code or executable form under the terms of
|
138 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
139 |
+
|
140 |
+
a) Accompany it with the complete corresponding machine-readable
|
141 |
+
source code, which must be distributed under the terms of Sections
|
142 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
143 |
+
|
144 |
+
b) Accompany it with a written offer, valid for at least three
|
145 |
+
years, to give any third party, for a charge no more than your
|
146 |
+
cost of physically performing source distribution, a complete
|
147 |
+
machine-readable copy of the corresponding source code, to be
|
148 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
149 |
+
customarily used for software interchange; or,
|
150 |
+
|
151 |
+
c) Accompany it with the information you received as to the offer
|
152 |
+
to distribute corresponding source code. (This alternative is
|
153 |
+
allowed only for noncommercial distribution and only if you
|
154 |
+
received the program in object code or executable form with such
|
155 |
+
an offer, in accord with Subsection b above.)
|
156 |
+
|
157 |
+
The source code for a work means the preferred form of the work for
|
158 |
+
making modifications to it. For an executable work, complete source
|
159 |
+
code means all the source code for all modules it contains, plus any
|
160 |
+
associated interface definition files, plus the scripts used to
|
161 |
+
control compilation and installation of the executable. However, as a
|
162 |
+
special exception, the source code distributed need not include
|
163 |
+
anything that is normally distributed (in either source or binary
|
164 |
+
form) with the major components (compiler, kernel, and so on) of the
|
165 |
+
operating system on which the executable runs, unless that component
|
166 |
+
itself accompanies the executable.
|
167 |
+
|
168 |
+
If distribution of executable or object code is made by offering
|
169 |
+
access to copy from a designated place, then offering equivalent
|
170 |
+
access to copy the source code from the same place counts as
|
171 |
+
distribution of the source code, even though third parties are not
|
172 |
+
compelled to copy the source along with the object code.
|
173 |
+
|
174 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
175 |
+
except as expressly provided under this License. Any attempt
|
176 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
177 |
+
void, and will automatically terminate your rights under this License.
|
178 |
+
However, parties who have received copies, or rights, from you under
|
179 |
+
this License will not have their licenses terminated so long as such
|
180 |
+
parties remain in full compliance.
|
181 |
+
|
182 |
+
5. You are not required to accept this License, since you have not
|
183 |
+
signed it. However, nothing else grants you permission to modify or
|
184 |
+
distribute the Program or its derivative works. These actions are
|
185 |
+
prohibited by law if you do not accept this License. Therefore, by
|
186 |
+
modifying or distributing the Program (or any work based on the
|
187 |
+
Program), you indicate your acceptance of this License to do so, and
|
188 |
+
all its terms and conditions for copying, distributing or modifying
|
189 |
+
the Program or works based on it.
|
190 |
+
|
191 |
+
6. Each time you redistribute the Program (or any work based on the
|
192 |
+
Program), the recipient automatically receives a license from the
|
193 |
+
original licensor to copy, distribute or modify the Program subject to
|
194 |
+
these terms and conditions. You may not impose any further
|
195 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
196 |
+
You are not responsible for enforcing compliance by third parties to
|
197 |
+
this License.
|
198 |
+
|
199 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
200 |
+
infringement or for any other reason (not limited to patent issues),
|
201 |
+
conditions are imposed on you (whether by court order, agreement or
|
202 |
+
otherwise) that contradict the conditions of this License, they do not
|
203 |
+
excuse you from the conditions of this License. If you cannot
|
204 |
+
distribute so as to satisfy simultaneously your obligations under this
|
205 |
+
License and any other pertinent obligations, then as a consequence you
|
206 |
+
may not distribute the Program at all. For example, if a patent
|
207 |
+
license would not permit royalty-free redistribution of the Program by
|
208 |
+
all those who receive copies directly or indirectly through you, then
|
209 |
+
the only way you could satisfy both it and this License would be to
|
210 |
+
refrain entirely from distribution of the Program.
|
211 |
+
|
212 |
+
If any portion of this section is held invalid or unenforceable under
|
213 |
+
any particular circumstance, the balance of the section is intended to
|
214 |
+
apply and the section as a whole is intended to apply in other
|
215 |
+
circumstances.
|
216 |
+
|
217 |
+
It is not the purpose of this section to induce you to infringe any
|
218 |
+
patents or other property right claims or to contest validity of any
|
219 |
+
such claims; this section has the sole purpose of protecting the
|
220 |
+
integrity of the free software distribution system, which is
|
221 |
+
implemented by public license practices. Many people have made
|
222 |
+
generous contributions to the wide range of software distributed
|
223 |
+
through that system in reliance on consistent application of that
|
224 |
+
system; it is up to the author/donor to decide if he or she is willing
|
225 |
+
to distribute software through any other system and a licensee cannot
|
226 |
+
impose that choice.
|
227 |
+
|
228 |
+
This section is intended to make thoroughly clear what is believed to
|
229 |
+
be a consequence of the rest of this License.
|
230 |
+
|
231 |
+
8. If the distribution and/or use of the Program is restricted in
|
232 |
+
certain countries either by patents or by copyrighted interfaces, the
|
233 |
+
original copyright holder who places the Program under this License
|
234 |
+
may add an explicit geographical distribution limitation excluding
|
235 |
+
those countries, so that distribution is permitted only in or among
|
236 |
+
countries not thus excluded. In such case, this License incorporates
|
237 |
+
the limitation as if written in the body of this License.
|
238 |
+
|
239 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
240 |
+
of the General Public License from time to time. Such new versions will
|
241 |
+
be similar in spirit to the present version, but may differ in detail to
|
242 |
+
address new problems or concerns.
|
243 |
+
|
244 |
+
Each version is given a distinguishing version number. If the Program
|
245 |
+
specifies a version number of this License which applies to it and "any
|
246 |
+
later version", you have the option of following the terms and conditions
|
247 |
+
either of that version or of any later version published by the Free
|
248 |
+
Software Foundation. If the Program does not specify a version number of
|
249 |
+
this License, you may choose any version ever published by the Free Software
|
250 |
+
Foundation.
|
251 |
+
|
252 |
+
10. If you wish to incorporate parts of the Program into other free
|
253 |
+
programs whose distribution conditions are different, write to the author
|
254 |
+
to ask for permission. For software which is copyrighted by the Free
|
255 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
256 |
+
make exceptions for this. Our decision will be guided by the two goals
|
257 |
+
of preserving the free status of all derivatives of our free software and
|
258 |
+
of promoting the sharing and reuse of software generally.
|
259 |
+
|
260 |
+
NO WARRANTY
|
261 |
+
|
262 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
263 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
264 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
265 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
266 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
267 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
268 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
269 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
270 |
+
REPAIR OR CORRECTION.
|
271 |
+
|
272 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
273 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
274 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
275 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
276 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
277 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
278 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
279 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
280 |
+
POSSIBILITY OF SUCH DAMAGES.
|
js/jqplot/jquery.jqplot.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.jqplot-target{position:relative;color:#666;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;font-size:1em;}.jqplot-axis{font-size:.75em;}.jqplot-xaxis{margin-top:10px;}.jqplot-x2axis{margin-bottom:10px;}.jqplot-yaxis{margin-right:10px;}.jqplot-y2axis,.jqplot-y3axis,.jqplot-y4axis,.jqplot-y5axis,.jqplot-y6axis,.jqplot-y7axis,.jqplot-y8axis,.jqplot-y9axis{margin-left:10px;margin-right:10px;}.jqplot-axis-tick,.jqplot-xaxis-tick,.jqplot-yaxis-tick,.jqplot-x2axis-tick,.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{position:absolute;}.jqplot-xaxis-tick{top:0;left:15px;vertical-align:top;}.jqplot-x2axis-tick{bottom:0;left:15px;vertical-align:bottom;}.jqplot-yaxis-tick{right:0;top:15px;text-align:right;}.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{left:0;top:15px;text-align:left;}.jqplot-xaxis-label{margin-top:10px;font-size:11pt;position:absolute;}.jqplot-x2axis-label{margin-bottom:10px;font-size:11pt;position:absolute;}.jqplot-yaxis-label{margin-right:10px;font-size:11pt;position:absolute;}.jqplot-y2axis-label,.jqplot-y3axis-label,.jqplot-y4axis-label,.jqplot-y5axis-label,.jqplot-y6axis-label,.jqplot-y7axis-label,.jqplot-y8axis-label,.jqplot-y9axis-label{font-size:11pt;position:absolute;}table.jqplot-table-legend,table.jqplot-cursor-legend{background-color:rgba(255,255,255,0.6);border:1px solid #ccc;position:absolute;font-size:.75em;}td.jqplot-table-legend{vertical-align:middle;}td.jqplot-table-legend>div{border:1px solid #ccc;padding:.2em;}div.jqplot-table-legend-swatch{width:0;height:0;border-top-width:.35em;border-bottom-width:.35em;border-left-width:.6em;border-right-width:.6em;border-top-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-style:solid;}.jqplot-title{top:0;left:0;padding-bottom:.5em;font-size:1.2em;}table.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;}.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px;}.jqplot-highlighter-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px;}.jqplot-point-label{font-size:.75em;}td.jqplot-cursor-legend-swatch{vertical-align:middle;text-align:center;}div.jqplot-cursor-legend-swatch{width:1.2em;height:.7em;}
|
js/jqplot/jquery.jqplot.min.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Copyright (c) 2009 Chris Leonello
|
3 |
+
* jqPlot is currently available for use in all personal or commercial projects
|
4 |
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
5 |
+
* choose the license that best suits your project and use it accordingly.
|
6 |
+
*
|
7 |
+
* Although not required, the author would appreciate an email letting him
|
8 |
+
* know of any substantial use of jqPlot. You can reach the author at:
|
9 |
+
* chris dot leonello at gmail dot com or see http://www.jqplot.com/info.php .
|
10 |
+
*
|
11 |
+
* If you are feeling kind and generous, consider supporting the project by
|
12 |
+
* making a donation at: http://www.jqplot.com/donate.php .
|
13 |
+
*/
|
14 |
+
(function(h){var c;h.jqplot=function(A,y,w){var x,v;if(y==null){throw"No data specified"}if(y.constructor==Array&&y.length==0||y[0].constructor!=Array){throw"Improper Data Array"}if(w==null){if(y instanceof Array){x=y;v=null}else{if(y.constructor==Object){x=null;v=y}}}else{x=y;v=w}var z=new n();z.init(A,x,v);z.draw();return z};h.jqplot.debug=1;h.jqplot.config={debug:1,enablePlugins:true,defaultHeight:300,defaultWidth:400};h.jqplot.enablePlugins=h.jqplot.config.enablePlugins;h.jqplot.preInitHooks=[];h.jqplot.postInitHooks=[];h.jqplot.preParseOptionsHooks=[];h.jqplot.postParseOptionsHooks=[];h.jqplot.preDrawHooks=[];h.jqplot.postDrawHooks=[];h.jqplot.preDrawSeriesHooks=[];h.jqplot.postDrawSeriesHooks=[];h.jqplot.preDrawLegendHooks=[];h.jqplot.addLegendRowHooks=[];h.jqplot.preSeriesInitHooks=[];h.jqplot.postSeriesInitHooks=[];h.jqplot.preParseSeriesOptionsHooks=[];h.jqplot.postParseSeriesOptionsHooks=[];h.jqplot.eventListenerHooks=[];h.jqplot.preDrawSeriesShadowHooks=[];h.jqplot.postDrawSeriesShadowHooks=[];h.jqplot.ElemContainer=function(){this._elem;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null}};h.jqplot.ElemContainer.prototype.getWidth=function(){if(this._elem){return this._elem.outerWidth(true)}else{return null}};h.jqplot.ElemContainer.prototype.getHeight=function(){if(this._elem){return this._elem.outerHeight(true)}else{return null}};h.jqplot.ElemContainer.prototype.getPosition=function(){if(this._elem){return this._elem.position()}else{return{top:null,left:null,bottom:null,right:null}}};h.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top};h.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left};h.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")};h.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")};function l(v){h.jqplot.ElemContainer.call(this);this.name=v;this._series=[];this.show=false;this.tickRenderer=h.jqplot.AxisTickRenderer;this.tickOptions={};this.labelRenderer=h.jqplot.AxisLabelRenderer;this.labelOptions={};this.label=null;this.showLabel=true;this.min=null;this.max=null;this.autoscale=false;this.pad=1.2;this.padMax=null;this.padMin=null;this.ticks=[];this.numberTicks;this.tickInterval;this.renderer=h.jqplot.LinearAxisRenderer;this.rendererOptions={};this.showTicks=true;this.showTickMarks=true;this.showMinorTicks=true;this.useSeriesColor=false;this.borderWidth=null;this.borderColor=null;this._dataBounds={min:null,max:null};this._offsets={min:null,max:null};this._ticks=[];this._label=null;this.syncTicks=null;this.tickSpacing=75;this._min=null;this._max=null;this._tickInterval=null;this._numberTicks=null;this.__ticks=null}l.prototype=new h.jqplot.ElemContainer();l.prototype.constructor=l;l.prototype.init=function(){this.renderer=new this.renderer();this.tickOptions.axis=this.name;if(this.label==null||this.label==""){this.showLabel=false}else{this.labelOptions.label=this.label}if(this.showLabel==false){this.labelOptions.show=false}if(this.pad==0){this.pad=1}if(this.padMax==0){this.padMax=1}if(this.padMin==0){this.padMin=1}if(this.padMax==null){this.padMax=(this.pad-1)/2+1}if(this.padMin==null){this.padMin=(this.pad-1)/2+1}this.pad=this.padMax+this.padMin-1;if(this.min!=null||this.max!=null){this.autoscale=false}if(this.syncTicks==null&&this.name.indexOf("y")>-1){this.syncTicks=true}else{if(this.syncTicks==null){this.syncTicks=false}}this.renderer.init.call(this,this.rendererOptions)};l.prototype.draw=function(v){return this.renderer.draw.call(this,v)};l.prototype.set=function(){this.renderer.set.call(this)};l.prototype.pack=function(w,v){if(this.show){this.renderer.pack.call(this,w,v)}if(this._min==null){this._min=this.min;this._max=this.max;this._tickInterval=this.tickInterval;this._numberTicks=this.numberTicks;this.__ticks=this._ticks}};l.prototype.reset=function(){this.renderer.reset.call(this)};l.prototype.resetScale=function(){this.min=null;this.max=null;this.numberTicks=null;this.tickInterval=null};function b(v){h.jqplot.ElemContainer.call(this);this.show=false;this.location="ne";this.xoffset=12;this.yoffset=12;this.border;this.background;this.textColor;this.fontFamily;this.fontSize;this.rowSpacing="0.5em";this.renderer=h.jqplot.TableLegendRenderer;this.rendererOptions={};this.preDraw=false;this.escapeHtml=false;this._series=[];h.extend(true,this,v)}b.prototype=new h.jqplot.ElemContainer();b.prototype.constructor=b;b.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};b.prototype.draw=function(w){for(var v=0;v<h.jqplot.preDrawLegendHooks.length;v++){h.jqplot.preDrawLegendHooks[v].call(this,w)}return this.renderer.draw.call(this,w)};b.prototype.pack=function(v){this.renderer.pack.call(this,v)};function k(v){h.jqplot.ElemContainer.call(this);this.text=v;this.show=true;this.fontFamily;this.fontSize;this.textAlign;this.textColor;this.renderer=h.jqplot.DivTitleRenderer;this.rendererOptions={}}k.prototype=new h.jqplot.ElemContainer();k.prototype.constructor=k;k.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};k.prototype.draw=function(v){return this.renderer.draw.call(this,v)};k.prototype.pack=function(){this.renderer.pack.call(this)};function o(){h.jqplot.ElemContainer.call(this);this.show=true;this.xaxis="xaxis";this._xaxis;this.yaxis="yaxis";this._yaxis;this.gridBorderWidth=2;this.renderer=h.jqplot.LineRenderer;this.rendererOptions={};this.data=[];this.gridData=[];this.label="";this.showLabel=true;this.color;this.lineWidth=2.5;this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.25;this.shadowDepth=3;this.shadowAlpha="0.1";this.breakOnNull=false;this.markerRenderer=h.jqplot.MarkerRenderer;this.markerOptions={};this.showLine=true;this.showMarker=true;this.index;this.fill=false;this.fillColor;this.fillAlpha;this.fillAndStroke=false;this.disableStack=false;this._stack=false;this.neighborThreshold=4;this.fillToZero=false;this.fillAxis="y";this.useNegativeColors=true;this._stackData=[];this._plotData=[];this._plotValues={x:[],y:[]};this._intervals={x:{},y:{}};this._prevPlotData=[];this._prevGridData=[];this._stackAxis="y";this._primaryAxis="_xaxis";this.canvas=new h.jqplot.GenericCanvas();this.shadowCanvas=new h.jqplot.GenericCanvas();this.plugins={};this._sumy=0;this._sumx=0}o.prototype=new h.jqplot.ElemContainer();o.prototype.constructor=o;o.prototype.init=function(w,B,y){this.index=w;this.gridBorderWidth=B;var A=this.data;for(var x=0;x<A.length;x++){if(!this.breakOnNull){if(A[x]==null||A[x][0]==null||A[x][1]==null){A.splice(x,1);continue}}else{if(A[x]==null||A[x][0]==null||A[x][1]==null){var z}}}if(!this.fillColor){this.fillColor=this.color}if(this.fillAlpha){var v=h.jqplot.normalize2rgb(this.fillColor);var v=h.jqplot.getColorComponents(v);this.fillColor="rgba("+v[0]+","+v[1]+","+v[2]+","+this.fillAlpha+")"}this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions,y);this.markerRenderer=new this.markerRenderer();if(!this.markerOptions.color){this.markerOptions.color=this.color}if(this.markerOptions.show==null){this.markerOptions.show=this.showMarker}this.markerRenderer.init(this.markerOptions)};o.prototype.draw=function(B,y,A){var w=(y==c)?{}:y;B=(B==c)?this.canvas._ctx:B;for(var v=0;v<h.jqplot.preDrawSeriesHooks.length;v++){h.jqplot.preDrawSeriesHooks[v].call(this,B,w)}if(this.show){this.renderer.setGridData.call(this,A);if(!w.preventJqPlotSeriesDrawTrigger){h(B.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData])}var z=[];if(w.data){z=w.data}else{if(!this._stack){z=this.data}else{z=this._plotData}}var x=w.gridData||this.renderer.makeGridData.call(this,z,A);this.renderer.draw.call(this,B,x,w)}for(var v=0;v<h.jqplot.postDrawSeriesHooks.length;v++){h.jqplot.postDrawSeriesHooks[v].call(this,B,w)}};o.prototype.drawShadow=function(B,y,A){var w=(y==c)?{}:y;B=(B==c)?this.shadowCanvas._ctx:B;for(var v=0;v<h.jqplot.preDrawSeriesShadowHooks.length;v++){h.jqplot.preDrawSeriesShadowHooks[v].call(this,B,w)}if(this.shadow){this.renderer.setGridData.call(this,A);var z=[];if(w.data){z=w.data}else{if(!this._stack){z=this.data}else{z=this._plotData}}var x=w.gridData||this.renderer.makeGridData.call(this,z,A);this.renderer.drawShadow.call(this,B,x,w)}for(var v=0;v<h.jqplot.postDrawSeriesShadowHooks.length;v++){h.jqplot.postDrawSeriesShadowHooks[v].call(this,B,w)}};function g(){h.jqplot.ElemContainer.call(this);this.drawGridlines=true;this.gridLineColor="#cccccc";this.gridLineWidth=1;this.background="#fffdf6";this.borderColor="#999999";this.borderWidth=2;this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.5;this.shadowWidth=3;this.shadowDepth=3;this.shadowAlpha="0.07";this._left;this._top;this._right;this._bottom;this._width;this._height;this._axes=[];this.renderer=h.jqplot.CanvasGridRenderer;this.rendererOptions={};this._offsets={top:null,bottom:null,left:null,right:null}}g.prototype=new h.jqplot.ElemContainer();g.prototype.constructor=g;g.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};g.prototype.createElement=function(v){this._offsets=v;return this.renderer.createElement.call(this)};g.prototype.draw=function(){this.renderer.draw.call(this)};h.jqplot.GenericCanvas=function(){h.jqplot.ElemContainer.call(this);this._ctx};h.jqplot.GenericCanvas.prototype=new h.jqplot.ElemContainer();h.jqplot.GenericCanvas.prototype.constructor=h.jqplot.GenericCanvas;h.jqplot.GenericCanvas.prototype.createElement=function(z,x,w){this._offsets=z;var v="jqplot";if(x!=c){v=x}var y=document.createElement("canvas");if(w!=c){this._plotDimensions=w}y.width=this._plotDimensions.width-this._offsets.left-this._offsets.right;y.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom;this._elem=h(y);this._elem.addClass(v);this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top});if(h.browser.msie){window.G_vmlCanvasManager.init_(document)}if(h.browser.msie){y=window.G_vmlCanvasManager.initElement(y)}return this._elem};h.jqplot.GenericCanvas.prototype.setContext=function(){this._ctx=this._elem.get(0).getContext("2d");return this._ctx};function n(){this.data=[];this.targetId=null;this.target=null;this.defaults={axesDefaults:{},axes:{xaxis:{},yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{}},seriesDefaults:{},gridPadding:{top:10,right:10,bottom:23,left:10},series:[]};this.series=[];this.axes={xaxis:new l("xaxis"),yaxis:new l("yaxis"),x2axis:new l("x2axis"),y2axis:new l("y2axis"),y3axis:new l("y3axis"),y4axis:new l("y4axis"),y5axis:new l("y5axis"),y6axis:new l("y6axis"),y7axis:new l("y7axis"),y8axis:new l("y8axis"),y9axis:new l("y9axis")};this.grid=new g();this.legend=new b();this.baseCanvas=new h.jqplot.GenericCanvas();this.eventCanvas=new h.jqplot.GenericCanvas();this._width=null;this._height=null;this._plotDimensions={height:null,width:null};this._gridPadding={top:10,right:10,bottom:10,left:10};this.syncXTicks=true;this.syncYTicks=true;this.seriesColors=["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3","#bd70c7"];this.negativeSeriesColors=["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"];this.sortData=true;var y=0;this.textColor;this.fontFamily;this.fontSize;this.title=new k();this.options={};this.stackSeries=false;this._stackData=[];this._plotData=[];this.plugins={};this._drawCount=0;this.drawIfHidden=false;this._sumy=0;this._sumx=0;this.colorGenerator=h.jqplot.ColorGenerator;this.init=function(G,F,C){for(var D=0;D<h.jqplot.preInitHooks.length;D++){h.jqplot.preInitHooks[D].call(this,G,F,C)}this.targetId="#"+G;this.target=h("#"+G);if(!this.target.get(0)){throw"No plot target specified"}if(this.target.css("position")=="static"){this.target.css("position","relative")}if(!this.target.hasClass("jqplot-target")){this.target.addClass("jqplot-target")}if(!this.target.height()){var E;if(C&&C.height){E=parseInt(C.height,10)}else{if(this.target.attr("data-height")){E=parseInt(this.target.attr("data-height"),10)}else{E=parseInt(h.jqplot.config.defaultHeight,10)}}this._height=E;this.target.css("height",E+"px")}else{this._height=this.target.height()}if(!this.target.width()){var z;if(C&&C.width){z=parseInt(C.width,10)}else{if(this.target.attr("data-width")){z=parseInt(this.target.attr("data-width"),10)}else{z=parseInt(h.jqplot.config.defaultWidth,10)}}this._width=z;this.target.css("width",z+"px")}else{this._width=this.target.width()}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;if(this._height<=0||this._width<=0||!this._height||!this._width){throw"Canvas dimension not set"}this.data=F;this.parseOptions(C);if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this.title.init();this.legend.init();this._sumy=0;this._sumx=0;for(var D=0;D<this.series.length;D++){this.series[D].shadowCanvas._plotDimensions=this._plotDimensions;this.series[D].canvas._plotDimensions=this._plotDimensions;for(var B=0;B<h.jqplot.preSeriesInitHooks.length;B++){h.jqplot.preSeriesInitHooks[B].call(this.series[D],G,F,this.options.seriesDefaults,this.options.series[D])}this.populatePlotData(this.series[D],D);this.series[D]._plotDimensions=this._plotDimensions;this.series[D].init(D,this.grid.borderWidth,this);for(var B=0;B<h.jqplot.postSeriesInitHooks.length;B++){h.jqplot.postSeriesInitHooks[B].call(this.series[D],G,F,this.options.seriesDefaults,this.options.series[D])}this._sumy+=this.series[D]._sumy;this._sumx+=this.series[D]._sumx}for(var A in this.axes){this.axes[A]._plotDimensions=this._plotDimensions;this.axes[A].init()}if(this.sortData){v(this.series)}this.grid.init();this.grid._axes=this.axes;this.legend._series=this.series;for(var D=0;D<h.jqplot.postInitHooks.length;D++){h.jqplot.postInitHooks[D].call(this,G,F,C)}};this.resetAxesScale=function(C){var B=(C!=c)?C:this.axes;if(B===true){B=this.axes}if(B.constructor===Array){for(var A=0;A<B.length;A++){this.axes[B[A]].resetScale()}}else{if(B.constructor===Object){for(var z in B){this.axes[z].resetScale()}}}};this.reInitialize=function(){if(!this.target.height()){var D;if(options&&options.height){D=parseInt(options.height,10)}else{if(this.target.attr("data-height")){D=parseInt(this.target.attr("data-height"),10)}else{D=parseInt(h.jqplot.config.defaultHeight,10)}}this._height=D;this.target.css("height",D+"px")}else{this._height=this.target.height()}if(!this.target.width()){var z;if(options&&options.width){z=parseInt(options.width,10)}else{if(this.target.attr("data-width")){z=parseInt(this.target.attr("data-width"),10)}else{z=parseInt(h.jqplot.config.defaultWidth,10)}}this._width=z;this.target.css("width",z+"px")}else{this._width=this.target.width()}if(this._height<=0||this._width<=0||!this._height||!this._width){throw"Target dimension not set"}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;for(var E in this.axes){var C=this.axes[E];C._plotWidth=this._width;C._plotHeight=this._height}this.title._plotWidth=this._width;if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this._sumy=0;this._sumx=0;for(var B=0;B<this.series.length;B++){this.populatePlotData(this.series[B],B);this.series[B]._plotDimensions=this._plotDimensions;this.series[B].canvas._plotDimensions=this._plotDimensions;this._sumy+=this.series[B]._sumy;this._sumx+=this.series[B]._sumx}for(var A in this.axes){this.axes[A]._plotDimensions=this._plotDimensions;this.axes[A]._ticks=[];this.axes[A].renderer.init.call(this.axes[A],{})}if(this.sortData){v(this.series)}this.grid._axes=this.axes;this.legend._series=this.series};function v(D){var E,B;for(var C=0;C<D.length;C++){E=D[C].data;var z=true;if(D[C]._stackAxis=="x"){for(var A=0;A<E.length;A++){if(typeof(E[A][1])!="number"){z=false;break}}if(z){E.sort(function(G,F){return G[1]-F[1]})}}else{for(var A=0;A<E.length;A++){if(typeof(E[A][0])!="number"){z=false;break}}if(z){E.sort(function(G,F){return G[0]-F[0]})}}}}this.populatePlotData=function(D,E){this._plotData=[];this._stackData=[];D._stackData=[];D._plotData=[];var H={x:[],y:[]};if(this.stackSeries&&!D.disableStack){D._stack=true;var F=D._stackAxis=="x"?0:1;var G=F?0:1;var I=h.extend(true,[],D.data);var J=h.extend(true,[],D.data);for(var B=0;B<E;B++){var z=this.series[B].data;for(var A=0;A<z.length;A++){I[A][0]+=z[A][0];I[A][1]+=z[A][1];J[A][F]+=z[A][F]}}for(var C=0;C<J.length;C++){H.x.push(J[C][0]);H.y.push(J[C][1])}this._plotData.push(J);this._stackData.push(I);D._stackData=I;D._plotData=J;D._plotValues=H}else{for(var C=0;C<D.data.length;C++){H.x.push(D.data[C][0]);H.y.push(D.data[C][1])}this._stackData.push(D.data);this.series[E]._stackData=D.data;this._plotData.push(D.data);D._plotData=D.data;D._plotValues=H}if(E>0){D._prevPlotData=this.series[E-1]._plotData}D._sumy=0;D._sumx=0;for(C=D.data.length-1;C>-1;C--){D._sumy+=D.data[C][1];D._sumx+=D.data[C][0]}};this.getNextSeriesColor=(function(A){var z=0;var B=A.seriesColors;return function(){if(z<B.length){return B[z++]}else{z=0;return B[z++]}}})(this);this.parseOptions=function(H){for(var E=0;E<h.jqplot.preParseOptionsHooks.length;E++){h.jqplot.preParseOptionsHooks[E].call(this,H)}this.options=h.extend(true,{},this.defaults,H);this.stackSeries=this.options.stackSeries;if(this.options.seriesColors){this.seriesColors=this.options.seriesColors}var z=new this.colorGenerator(this.seriesColors);h.extend(true,this._gridPadding,this.options.gridPadding);this.sortData=(this.options.sortData!=null)?this.options.sortData:this.sortData;for(var A in this.axes){var C=this.axes[A];h.extend(true,C,this.options.axesDefaults,this.options.axes[A]);C._plotWidth=this._width;C._plotHeight=this._height}if(this.data.length==0){this.data=[];for(var E=0;E<this.options.series.length;E++){this.data.push(this.options.series.data)}}var F=function(L,J){var I=[];var K;J=J||"vertical";if(!(L[0] instanceof Array)){for(var K=0;K<L.length;K++){if(J=="vertical"){I.push([K+1,L[K]])}else{I.push([L[K],K+1])}}}else{h.extend(true,I,L)}return I};for(var E=0;E<this.data.length;E++){var G=new o();for(var D=0;D<h.jqplot.preParseSeriesOptionsHooks.length;D++){h.jqplot.preParseSeriesOptionsHooks[D].call(G,this.options.seriesDefaults,this.options.series[E])}h.extend(true,G,{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[E]);var B="vertical";if(G.renderer.constructor==h.jqplot.barRenderer&&G.rendererOptions&&G.rendererOptions.barDirection=="horizontal"){B="horizontal"}G.data=F(this.data[E],B);switch(G.xaxis){case"xaxis":G._xaxis=this.axes.xaxis;break;case"x2axis":G._xaxis=this.axes.x2axis;break;default:break}G._yaxis=this.axes[G.yaxis];G._xaxis._series.push(G);G._yaxis._series.push(G);if(G.show){G._xaxis.show=true;G._yaxis.show=true}if(!G.color&&G.show!=false){G.color=z.next()}if(!G.label){G.label="Series "+(E+1).toString()}this.series.push(G);for(var D=0;D<h.jqplot.postParseSeriesOptionsHooks.length;D++){h.jqplot.postParseSeriesOptionsHooks[D].call(this.series[E],this.options.seriesDefaults,this.options.series[E])}}h.extend(true,this.grid,this.options.grid);for(var A in this.axes){var C=this.axes[A];if(C.borderWidth==null){C.borderWidth=this.grid.borderWidth}if(C.borderColor==null){if(A!="xaxis"&&A!="x2axis"&&C.useSeriesColor===true&&C.show){C.borderColor=C._series[0].color}else{C.borderColor=this.grid.borderColor}}}if(typeof this.options.title=="string"){this.title.text=this.options.title}else{if(typeof this.options.title=="object"){h.extend(true,this.title,this.options.title)}}this.title._plotWidth=this._width;h.extend(true,this.legend,this.options.legend);for(var E=0;E<h.jqplot.postParseOptionsHooks.length;E++){h.jqplot.postParseOptionsHooks[E].call(this,H)}};this.replot=function(A){var B=(A!=c)?A:{};var z=(B.clear!=c)?B.clear:true;var C=(B.resetAxes!=c)?B.resetAxes:false;this.target.trigger("jqplotPreReplot");if(z){this.target.empty()}if(C){this.resetAxesScale(C)}this.reInitialize();this.draw();this.target.trigger("jqplotPostReplot")};this.redraw=function(z){z=(z!=null)?z:true;this.target.trigger("jqplotPreRedraw");if(z){this.target.empty()}for(var B in this.axes){this.axes[B]._ticks=[]}for(var A=0;A<this.series.length;A++){this.populatePlotData(this.series[A],A)}this._sumy=0;this._sumx=0;for(A=0;A<this.series.length;A++){this._sumy+=this.series[A]._sumy;this._sumx+=this.series[A]._sumx}this.draw();this.target.trigger("jqplotPostRedraw")};this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){this.target.trigger("jqplotPreDraw");var F;for(F=0;F<h.jqplot.preDrawHooks.length;F++){h.jqplot.preDrawHooks[F].call(this)}this.target.append(this.baseCanvas.createElement({left:0,right:0,top:0,bottom:0},"jqplot-base-canvas"));var E=this.baseCanvas.setContext();this.target.append(this.title.draw());this.title.pack({top:0,left:0});for(var B in this.axes){this.target.append(this.axes[B].draw(E));this.axes[B].set()}if(this.axes.yaxis.show){this._gridPadding.left=this.axes.yaxis.getWidth()}var C=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];var A=[0,0,0,0];var H=0;var D,z;for(D=8;D>0;D--){z=this.axes[C[D-1]];if(z.show){A[D-1]=H;H+=z.getWidth()}}if(H>this._gridPadding.right){this._gridPadding.right=H}if(this.title.show&&this.axes.x2axis.show){this._gridPadding.top=this.title.getHeight()+this.axes.x2axis.getHeight()}else{if(this.title.show){this._gridPadding.top=this.title.getHeight()}else{if(this.axes.x2axis.show){this._gridPadding.top=this.axes.x2axis.getHeight()}}}if(this.axes.xaxis.show){this._gridPadding.bottom=this.axes.xaxis.getHeight()}this.axes.xaxis.pack({position:"absolute",bottom:0,left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});this.axes.yaxis.pack({position:"absolute",top:0,left:0,height:this._height},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});this.axes.x2axis.pack({position:"absolute",top:this.title.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});for(F=8;F>0;F--){this.axes[C[F-1]].pack({position:"absolute",top:0,right:A[F-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top})}this.target.append(this.grid.createElement(this._gridPadding));this.grid.draw();for(F=0;F<this.series.length;F++){this.target.append(this.series[F].shadowCanvas.createElement(this._gridPadding,"jqplot-series-canvas jqplot-shadow"));this.series[F].shadowCanvas.setContext()}for(F=0;F<this.series.length;F++){this.target.append(this.series[F].canvas.createElement(this._gridPadding,"jqplot-series-canvas"));this.series[F].canvas.setContext()}this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas"));var I=this.eventCanvas.setContext();I.fillStyle="rgba(0,0,0,0)";I.fillRect(0,0,I.canvas.width,I.canvas.height);this.bindCustomEvents();if(this.legend.preDraw){this.target.append(this.legend.draw());this.legend.pack(this._gridPadding);if(this.legend._elem){this.drawSeries({legendInfo:{location:this.legend.location,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}})}else{this.drawSeries()}}else{this.drawSeries();h(this.series[this.series.length-1].canvas._elem).after(this.legend.draw());this.legend.pack(this._gridPadding)}for(var F=0;F<h.jqplot.eventListenerHooks.length;F++){var G=h.jqplot.eventListenerHooks[F];this.eventCanvas._elem.bind(G[0],{plot:this},G[1])}for(var F=0;F<h.jqplot.postDrawHooks.length;F++){h.jqplot.postDrawHooks[F].call(this)}if(this.target.is(":visible")){this._drawCount+=1}this.target.trigger("jqplotPostDraw",[this])}};this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick);this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown);this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp);this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove);this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter);this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave)};function w(H){var G=H.data.plot;var C=G.eventCanvas._elem.offset();var F={x:H.pageX-C.left,y:H.pageY-C.top};var D={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null};var E=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];var z=G.axes;for(var A=11;A>0;A--){var B=E[A-1];if(z[B].show){D[B]=z[B].series_p2u(F[B.charAt(0)])}}return({offsets:C,gridPos:F,dataPos:D})}function x(F,J,I){var G=null;var K,D,B,H,C,A;var E;for(var D=0;D<F.series.length;D++){K=F.series[D];A=K.renderer;if(K.show){E=Math.abs(K.markerRenderer.size/2+K.neighborThreshold);for(var C=0;C<K.gridData.length;C++){p=K.gridData[C];if(A.constructor==h.jqplot.OHLCRenderer){if(A.candleStick){var z=K._yaxis.series_u2p;if(J>=p[0]-A._bodyWidth/2&&J<=p[0]+A._bodyWidth/2&&I>=z(K.data[C][2])&&I<=z(K.data[C][3])){G={seriesIndex:D,pointIndex:C,gridData:p,data:K.data[C]}}}else{if(!A.hlc){var z=K._yaxis.series_u2p;if(J>=p[0]-A._tickLength&&J<=p[0]+A._tickLength&&I>=z(K.data[C][2])&&I<=z(K.data[C][3])){G={seriesIndex:D,pointIndex:C,gridData:p,data:K.data[C]}}}else{var z=K._yaxis.series_u2p;if(J>=p[0]-A._tickLength&&J<=p[0]+A._tickLength&&I>=z(K.data[C][1])&&I<=z(K.data[C][2])){G={seriesIndex:D,pointIndex:C,gridData:p,data:K.data[C]}}}}}else{H=Math.sqrt((J-p[0])*(J-p[0])+(I-p[1])*(I-p[1]));if(H<=E&&(H<=B||B==null)){B=H;G={seriesIndex:D,pointIndex:C,gridData:p,data:K.data[C]}}}}}}return G}this.onClick=function(A){var z=w(A);var C=A.data.plot;var B=x(C,z.gridPos.x,z.gridPos.y);A.data.plot.eventCanvas._elem.trigger("jqplotClick",[z.gridPos,z.dataPos,B,C])};this.onDblClick=function(A){var z=w(A);var C=A.data.plot;var B=x(C,z.gridPos.x,z.gridPos.y);A.data.plot.eventCanvas._elem.trigger("jqplotDblClick",[z.gridPos,z.dataPos,B,C])};this.onMouseDown=function(A){var z=w(A);var C=A.data.plot;var B=x(C,z.gridPos.x,z.gridPos.y);A.data.plot.eventCanvas._elem.trigger("jqplotMouseDown",[z.gridPos,z.dataPos,B,C])};this.onMouseUp=function(A){var z=w(A);A.data.plot.eventCanvas._elem.trigger("jqplotMouseUp",[z.gridPos,z.dataPos,null,A.data.plot])};this.onMouseMove=function(A){var z=w(A);var C=A.data.plot;var B=x(C,z.gridPos.x,z.gridPos.y);A.data.plot.eventCanvas._elem.trigger("jqplotMouseMove",[z.gridPos,z.dataPos,B,C])};this.onMouseEnter=function(A){var z=w(A);var B=A.data.plot;A.data.plot.eventCanvas._elem.trigger("jqplotMouseEnter",[z.gridPos,z.dataPos,null,B])};this.onMouseLeave=function(A){var z=w(A);var B=A.data.plot;A.data.plot.eventCanvas._elem.trigger("jqplotMouseLeave",[z.gridPos,z.dataPos,null,B])};this.drawSeries=function(B,z){var D,C,A;if(z!=c){C=this.series[z];A=C.shadowCanvas._ctx;A.clearRect(0,0,A.canvas.width,A.canvas.height);C.drawShadow(A,B,this);A=C.canvas._ctx;A.clearRect(0,0,A.canvas.width,A.canvas.height);C.draw(A,B,this)}else{for(D=0;D<this.series.length;D++){C=this.series[D];A=C.shadowCanvas._ctx;A.clearRect(0,0,A.canvas.width,A.canvas.height);C.drawShadow(A,B,this);A=C.canvas._ctx;A.clearRect(0,0,A.canvas.width,A.canvas.height);C.draw(A,B,this)}}}}h.jqplot.ColorGenerator=function(w){var v=0;this.next=function(){if(v<w.length){return w[v++]}else{v=0;return w[v++]}};this.previous=function(){if(v>0){return w[v--]}else{v=w.length-1;return w[v]}};this.get=function(x){return w[x]};this.setColors=function(x){w=x};this.reset=function(){v=0}};h.jqplot.hex2rgb=function(x,v){x=x.replace("#","");if(x.length==3){x=x[0]+x[0]+x[1]+x[1]+x[2]+x[2]}var w;w="rgba("+parseInt(x.slice(0,2),16)+", "+parseInt(x.slice(2,4),16)+", "+parseInt(x.slice(4,6),16);if(v){w+=", "+v}w+=")";return w};h.jqplot.rgb2hex=function(z){var x=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/;var v=z.match(x);var y="#";for(i=1;i<4;i++){var w;if(v[i].search(/%/)!=-1){w=parseInt(255*v[i]/100,10).toString(16);if(w.length==1){w="0"+w}}else{w=parseInt(v[i],10).toString(16);if(w.length==1){w="0"+w}}y+=w}return y};h.jqplot.normalize2rgb=function(w,v){if(w.search(/^ *rgba?\(/)!=-1){return w}else{if(w.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/)!=-1){return h.jqplot.hex2rgb(w,v)}else{throw"invalid color spec"}}};h.jqplot.getColorComponents=function(z){var y=h.jqplot.normalize2rgb(z);var x=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/;var v=y.match(x);var w=[];for(i=1;i<4;i++){if(v[i].search(/%/)!=-1){w[i-1]=parseInt(255*v[i]/100,10)}else{w[i-1]=parseInt(v[i],10)}}w[3]=parseFloat(v[4])?parseFloat(v[4]):1;return w};h.jqplot.log=function(){if(window.console&&h.jqplot.debug){if(arguments.length==1){console.log(arguments[0])}else{console.log(arguments)}}};var f=h.jqplot.log;h.jqplot.AxisLabelRenderer=function(v){h.jqplot.ElemContainer.call(this);this.axis;this.show=true;this.label="";this._elem;this.escapeHTML=false;h.extend(true,this,v)};h.jqplot.AxisLabelRenderer.prototype=new h.jqplot.ElemContainer();h.jqplot.AxisLabelRenderer.prototype.constructor=h.jqplot.AxisLabelRenderer;h.jqplot.AxisLabelRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.AxisLabelRenderer.prototype.draw=function(){this._elem=h('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>');if(Number(this.label)){this._elem.css("white-space","nowrap")}if(!this.escapeHTML){this._elem.html(this.label)}else{this._elem.text(this.label)}return this._elem};h.jqplot.AxisLabelRenderer.prototype.pack=function(){};h.jqplot.AxisTickRenderer=function(v){h.jqplot.ElemContainer.call(this);this.mark="outside";this.axis;this.showMark=true;this.showGridline=true;this.isMinorTick=false;this.size=4;this.markSize=6;this.show=true;this.showLabel=true;this.label="";this.value=null;this._styles={};this.formatter=h.jqplot.DefaultTickFormatter;this.formatString="";this.fontFamily;this.fontSize;this.textColor;this._elem;h.extend(true,this,v)};h.jqplot.AxisTickRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.AxisTickRenderer.prototype=new h.jqplot.ElemContainer();h.jqplot.AxisTickRenderer.prototype.constructor=h.jqplot.AxisTickRenderer;h.jqplot.AxisTickRenderer.prototype.setTick=function(v,x,w){this.value=v;this.axis=x;if(w){this.isMinorTick=true}return this};h.jqplot.AxisTickRenderer.prototype.draw=function(){if(!this.label){this.label=this.formatter(this.formatString,this.value)}style='style="position:absolute;';if(Number(this.label)){style+="white-space:nowrap;"}style+='"';this._elem=h("<div "+style+' class="jqplot-'+this.axis+'-tick">'+this.label+"</div>");for(var v in this._styles){this._elem.css(v,this._styles[v])}if(this.fontFamily){this._elem.css("font-family",this.fontFamily)}if(this.fontSize){this._elem.css("font-size",this.fontSize)}if(this.textColor){this._elem.css("color",this.textColor)}return this._elem};h.jqplot.DefaultTickFormatter=function(v,w){if(typeof w=="number"){if(!v){v="%.1f"}return h.jqplot.sprintf(v,w)}else{return String(w)}};h.jqplot.AxisTickRenderer.prototype.pack=function(){};h.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new h.jqplot.ShadowRenderer()};h.jqplot.CanvasGridRenderer.prototype.init=function(w){this._ctx;h.extend(true,this,w);var v={lineJoin:"miter",lineCap:"round",fill:false,isarc:false,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:false};this.renderer.shadowRenderer.init(v)};h.jqplot.CanvasGridRenderer.prototype.createElement=function(){var y=document.createElement("canvas");var v=this._plotDimensions.width;var x=this._plotDimensions.height;y.width=v;y.height=x;this._elem=h(y);this._elem.addClass("jqplot-grid-canvas");this._elem.css({position:"absolute",left:0,top:0});if(h.browser.msie){window.G_vmlCanvasManager.init_(document)}if(h.browser.msie){y=window.G_vmlCanvasManager.initElement(y)}this._top=this._offsets.top;this._bottom=x-this._offsets.bottom;this._left=this._offsets.left;this._right=v-this._offsets.right;this._width=this._right-this._left;this._height=this._bottom-this._top;return this._elem};h.jqplot.CanvasGridRenderer.prototype.draw=function(){this._ctx=this._elem.get(0).getContext("2d");var L=this._ctx;var E=this._axes;L.save();L.fillStyle=this.background;L.fillRect(this._left,this._top,this._width,this._height);if(this.drawGridlines){L.save();L.lineJoin="miter";L.lineCap="butt";L.lineWidth=this.gridLineWidth;L.strokeStyle=this.gridLineColor;var G,D;var v=["xaxis","yaxis","x2axis","y2axis"];for(var A=4;A>0;A--){var w=v[A-1];var y=E[w];var H=y._ticks;if(y.show){for(var z=H.length;z>0;z--){var K=H[z-1];if(K.show){var F=Math.round(y.u2p(K.value))+0.5;switch(w){case"xaxis":if(K.showGridline){C(F,this._top,F,this._bottom)}if(K.showMark&&K.mark){s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;switch(m){case"outside":G=this._bottom;D=this._bottom+s;break;case"inside":G=this._bottom-s;D=this._bottom;break;case"cross":G=this._bottom-s;D=this._bottom+s;break;default:G=this._bottom;D=this._bottom+s;break}if(this.shadow){this.renderer.shadowRenderer.draw(L,[[F,G],[F,D]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false})}C(F,G,F,D)}break;case"yaxis":if(K.showGridline){C(this._right,F,this._left,F)}if(K.showMark&&K.mark){s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;switch(m){case"outside":G=this._left-s;D=this._left;break;case"inside":G=this._left;D=this._left+s;break;case"cross":G=this._left-s;D=this._left+s;break;default:G=this._left-s;D=this._left;break}if(this.shadow){this.renderer.shadowRenderer.draw(L,[[G,F],[D,F]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}C(G,F,D,F,{strokeStyle:y.borderColor})}break;case"x2axis":if(K.showGridline){C(F,this._bottom,F,this._top)}if(K.showMark&&K.mark){s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;switch(m){case"outside":G=this._top-s;D=this._top;break;case"inside":G=this._top;D=this._top+s;break;case"cross":G=this._top-s;D=this._top+s;break;default:G=this._top-s;D=this._top;break}if(this.shadow){this.renderer.shadowRenderer.draw(L,[[F,G],[F,D]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false})}C(F,G,F,D)}break;case"y2axis":if(K.showGridline){C(this._left,F,this._right,F)}if(K.showMark&&K.mark){s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;switch(m){case"outside":G=this._right;D=this._right+s;break;case"inside":G=this._right-s;D=this._right;break;case"cross":G=this._right-s;D=this._right+s;break;default:G=this._right;D=this._right+s;break}if(this.shadow){this.renderer.shadowRenderer.draw(L,[[G,F],[D,F]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}C(G,F,D,F,{strokeStyle:y.borderColor})}break;default:break}}}}}v=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];for(var A=7;A>0;A--){var y=E[v[A-1]];var H=y._ticks;if(y.show){var J=H[y.numberTicks-1];var B=H[0];var x=y.getLeft();var I=[[x,J.getTop()+J.getHeight()/2],[x,B.getTop()+B.getHeight()/2+1]];if(this.shadow){this.renderer.shadowRenderer.draw(L,I,{lineCap:"butt",fill:false,closePath:false})}C(I[0][0],I[0][1],I[1][0],I[1][1],{lineCap:"butt",strokeStyle:y.borderColor,lineWidth:y.borderWidth});for(var z=H.length;z>0;z--){var K=H[z-1];s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;if(K.showMark&&K.mark){switch(m){case"outside":G=x;D=x+s;break;case"inside":G=x-s;D=x;break;case"cross":G=x-s;D=x+s;break;default:G=x;D=x+s;break}I=[[G,F],[D,F]];if(this.shadow){this.renderer.shadowRenderer.draw(L,I,{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}C(G,F,D,F,{strokeStyle:y.borderColor})}}}}L.restore()}function C(Q,P,N,M,O){L.save();O=O||{};h.extend(true,L,O);L.beginPath();L.moveTo(Q,P);L.lineTo(N,M);L.stroke();L.restore()}if(this.shadow){var I=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]];this.renderer.shadowRenderer.draw(L,I)}C(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:E.x2axis.borderColor,lineWidth:E.x2axis.borderWidth});C(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:E.y2axis.borderColor,lineWidth:E.y2axis.borderWidth});C(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:E.xaxis.borderColor,lineWidth:E.xaxis.borderWidth});C(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:E.yaxis.borderColor,lineWidth:E.yaxis.borderWidth});L.restore()};var r=24*60*60*1000;var j=function(v,w){v=String(v);while(v.length<w){v="0"+v}return v};var e={millisecond:1,second:1000,minute:60*1000,hour:60*60*1000,day:r,week:7*r,month:{add:function(x,v){e.year.add(x,Math[v>0?"floor":"ceil"](v/12));var w=x.getMonth()+(v%12);if(w==12){w=0;x.setYear(x.getFullYear()+1)}else{if(w==-1){w=11;x.setYear(x.getFullYear()-1)}}x.setMonth(w)},diff:function(z,x){var v=z.getFullYear()-x.getFullYear();var w=z.getMonth()-x.getMonth()+(v*12);var y=z.getDate()-x.getDate();return w+(y/30)}},year:{add:function(w,v){w.setYear(w.getFullYear()+Math[v>0?"floor":"ceil"](v))},diff:function(w,v){return e.month.diff(w,v)/12}}};for(var u in e){if(u.substring(u.length-1)!="s"){e[u+"s"]=e[u]}}var t=function(y,x){if(Date.prototype.strftime.formatShortcuts[x]){return y.strftime(Date.prototype.strftime.formatShortcuts[x])}else{var v=(Date.prototype.strftime.formatCodes[x]||"").split(".");var w=y["get"+v[0]]?y["get"+v[0]]():"";if(v[1]){w=j(w,v[1])}return w}};var q={succ:function(v){return this.clone().add(1,v)},add:function(x,w){var v=e[w]||e.day;if(typeof v=="number"){this.setTime(this.getTime()+(v*x))}else{v.add(this,x)}return this},diff:function(w,z,v){w=Date.create(w);if(w===null){return null}var x=e[z]||e.day;if(typeof x=="number"){var y=(this.getTime()-w.getTime())/x}else{var y=x.diff(this,w)}return(v?y:Math[y>0?"floor":"ceil"](y))},strftime:function(w){var y=w||"%Y-%m-%d",v="",x;while(y.length>0){if(x=y.match(Date.prototype.strftime.formatCodes.matcher)){v+=y.slice(0,x.index);v+=(x[1]||"")+t(this,x[2]);y=y.slice(x.index+x[0].length)}else{v+=y;y=""}}return v},getShortYear:function(){return this.getYear()%100},getMonthNumber:function(){return this.getMonth()+1},getMonthName:function(){return Date.MONTHNAMES[this.getMonth()]},getAbbrMonthName:function(){return Date.ABBR_MONTHNAMES[this.getMonth()]},getDayName:function(){return Date.DAYNAMES[this.getDay()]},getAbbrDayName:function(){return Date.ABBR_DAYNAMES[this.getDay()]},getDayOrdinal:function(){return Date.ORDINALNAMES[this.getDate()%10]},getHours12:function(){var v=this.getHours();return v>12?v-12:(v==0?12:v)},getAmPm:function(){return this.getHours()>=12?"PM":"AM"},getUnix:function(){return Math.round(this.getTime()/1000,0)},getGmtOffset:function(){var v=this.getTimezoneOffset()/60;var w=v<0?"+":"-";v=Math.abs(v);return w+j(Math.floor(v),2)+":"+j((v%1)*60,2)},getTimezoneName:function(){var v=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return v[1]||v[2]||"GMT"+this.getGmtOffset()},toYmdInt:function(){return(this.getFullYear()*10000)+(this.getMonthNumber()*100)+this.getDate()},clone:function(){return new Date(this.getTime())}};for(var a in q){Date.prototype[a]=q[a]}var d={create:function(v){if(v instanceof Date){return v}if(typeof v=="number"){return new Date(v)}var A=String(v).replace(/^\s*(.+)\s*$/,"$1"),w=0,x=Date.create.patterns.length,y;var z=A;while(w<x){ms=Date.parse(z);if(!isNaN(ms)){return new Date(ms)}y=Date.create.patterns[w];if(typeof y=="function"){obj=y(z);if(obj instanceof Date){return obj}}else{z=A.replace(y[0],y[1])}w++}return NaN},MONTHNAMES:"January February March April May June July August September October November December".split(" "),ABBR_MONTHNAMES:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAYNAMES:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ABBR_DAYNAMES:"Sun Mon Tue Wed Thu Fri Sat".split(" "),ORDINALNAMES:"th st nd rd th th th th th th".split(" "),ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S",daysInMonth:function(v,w){if(w==2){return new Date(v,1,29).getDate()==29?29:28}return[c,31,c,31,30,31,30,31,31,30,31,30,31][w]}};for(var a in d){Date[a]=d[a]}Date.prototype.strftime.formatCodes={matcher:/()%(#?(%|[a-z]))/i,Y:"FullYear",y:"ShortYear.2",m:"MonthNumber.2","#m":"MonthNumber",B:"MonthName",b:"AbbrMonthName",d:"Date.2","#d":"Date",e:"Date",A:"DayName",a:"AbbrDayName",w:"Day",o:"DayOrdinal",H:"Hours.2","#H":"Hours",I:"Hours12.2","#I":"Hours12",p:"AmPm",M:"Minutes.2","#M":"Minutes",S:"Seconds.2","#S":"Seconds",s:"Unix",N:"Milliseconds.3","#N":"Milliseconds",O:"TimezoneOffset",Z:"TimezoneName",G:"GmtOffset"};Date.prototype.strftime.formatShortcuts={F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",D:"%m/%d/%y","#c":"%a %b %e %H:%M:%S %Y",v:"%e-%b-%Y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"};Date.create.patterns=[[/-/g,"/"],[/st|nd|rd|th/g,""],[/(3[01]|[0-2]\d)\s*\.\s*(1[0-2]|0\d)\s*\.\s*([1-9]\d{3})/,"$2/$1/$3"],[/([1-9]\d{3})\s*-\s*(1[0-2]|0\d)\s*-\s*(3[01]|[0-2]\d)/,"$2/$3/$1"],function(y){var w=y.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i);if(w){if(w[1]){var x=Date.create(w[1]);if(isNaN(x)){return}}else{var x=new Date();x.setMilliseconds(0)}var v=parseFloat(w[2]);if(w[6]){v=w[6].toLowerCase()=="am"?(v==12?0:v):(v==12?12:v+12)}x.setHours(v,parseInt(w[3]||0,10),parseInt(w[4]||0,10),((parseFloat(w[5]||0))||0)*1000);return x}else{return y}},function(y){var w=y.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i);if(w){if(w[1]){var x=Date.create(w[1]);if(isNaN(x)){return}}else{var x=new Date();x.setMilliseconds(0)}var v=parseFloat(w[2]);x.setHours(v,parseInt(w[3],10),parseInt(w[4],10),parseFloat(w[5])*1000);return x}else{return y}},function(A){var x=A.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/);if(x){var z=new Date();var B=parseFloat(String(z.getFullYear()).slice(2,4));var C=parseInt(String(z.getFullYear())/100,10)*100;var E=1;var F=parseFloat(x[1]);var D=parseFloat(x[3]);var w,v,G;if(F>31){v=x[3];if(F<B+E){w=C+F}else{w=C-100+F}}else{v=x[1];if(D<B+E){w=C+D}else{w=C-100+D}}var G=h.inArray(x[2],Date.ABBR_MONTHNAMES);if(G==-1){G=h.inArray(x[2],Date.MONTHNAMES)}z.setFullYear(w,G,v);z.setHours(0,0,0,0);return z}else{return A}}];if(h.jqplot.config.debug){h.date=Date.create}h.jqplot.DivTitleRenderer=function(){};h.jqplot.DivTitleRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.DivTitleRenderer.prototype.draw=function(){var w=this.renderer;if(!this.text){this.show=false;this._elem=h('<div style="height:0px;width:0px;"></div>')}else{if(this.text){var v="position:absolute;top:0px;left:0px;";v+=(this._plotWidth)?"width:"+this._plotWidth+"px;":"";v+=(this.fontFamily)?"font-family:"+this.fontFamily+";":"";v+=(this.fontSize)?"font-size:"+this.fontSize+";":"";v+=(this.textAlign)?"text-align:"+this.textAlign+";":"text-align:center;";v+=(this.textColor)?"color:"+this.textColor+";":"";this._elem=h('<div class="jqplot-title" style="'+v+'">'+this.text+"</div>")}}return this._elem};h.jqplot.DivTitleRenderer.prototype.pack=function(){};h.jqplot.LineRenderer=function(){this.shapeRenderer=new h.jqplot.ShapeRenderer();this.shadowRenderer=new h.jqplot.ShadowRenderer()};h.jqplot.LineRenderer.prototype.init=function(w){h.extend(true,this.renderer,w);var y={lineJoin:"round",lineCap:"round",fill:this.fill,isarc:false,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,closePath:this.fill};this.renderer.shapeRenderer.init(y);if(this.lineWidth>2.5){var x=this.shadowOffset*(1+(Math.atan((this.lineWidth/2.5))/0.785398163-1)*0.6)}else{var x=this.shadowOffset*Math.atan((this.lineWidth/2.5))/0.785398163}var v={lineJoin:"round",lineCap:"round",fill:this.fill,isarc:false,angle:this.shadowAngle,offset:x,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,closePath:this.fill};this.renderer.shadowRenderer.init(v)};h.jqplot.LineRenderer.prototype.setGridData=function(A){var w=this._xaxis.series_u2p;var z=this._yaxis.series_u2p;var x=this._plotData;var y=this._prevPlotData;this.gridData=[];this._prevGridData=[];for(var v=0;v<this.data.length;v++){if(x[v]!=null){this.gridData.push([w.call(this._xaxis,x[v][0]),z.call(this._yaxis,x[v][1])])}if(y[v]!=null){this._prevGridData.push([w.call(this._xaxis,y[v][0]),z.call(this._yaxis,y[v][1])])}}};h.jqplot.LineRenderer.prototype.makeGridData=function(y,A){var x=this._xaxis.series_u2p;var z=this._yaxis.series_u2p;var w=[];var B=[];for(var v=0;v<y.length;v++){if(y[v]!=null){w.push([x.call(this._xaxis,y[v][0]),z.call(this._yaxis,y[v][1])])}}return w};h.jqplot.LineRenderer.prototype.draw=function(G,N,w){var K;var E=(w!=c)?w:{};var y=(E.shadow!=c)?E.shadow:this.shadow;var P=(E.showLine!=c)?E.showLine:this.showLine;var J=(E.fill!=c)?E.fill:this.fill;var v=(E.fillAndStroke!=c)?E.fillAndStroke:this.fillAndStroke;G.save();if(N.length){if(P){if(J){if(this.fillToZero){var z=new h.jqplot.ColorGenerator(this.negativeSeriesColors);var L=z.get(this.index);if(!this.useNegativeColors){L=E.fillStyle}var C=false;var D=E.fillStyle;if(v){var O=N.slice(0)}if(this.index==0||!this._stack){var H=[];var M=this._yaxis.series_u2p(0);var x=this._xaxis.series_u2p(0);if(this.fillAxis=="y"){H.push([N[0][0],M]);for(var K=0;K<N.length-1;K++){H.push(N[K]);if(this._plotData[K][1]*this._plotData[K+1][1]<0){if(this._plotData[K][1]<0){C=true;E.fillStyle=L}else{C=false;E.fillStyle=D}var B=N[K][0]+(N[K+1][0]-N[K][0])*(M-N[K][1])/(N[K+1][1]-N[K][1]);H.push([B,M]);if(y){this.renderer.shadowRenderer.draw(G,H,E)}this.renderer.shapeRenderer.draw(G,H,E);H=[[B,M]]}}if(this._plotData[N.length-1][1]<0){C=true;E.fillStyle=L}else{C=false;E.fillStyle=D}H.push(N[N.length-1]);H.push([N[N.length-1][0],M])}if(y){this.renderer.shadowRenderer.draw(G,H,E)}this.renderer.shapeRenderer.draw(G,H,E)}else{var F=this._prevGridData;for(var K=F.length;K>0;K--){N.push(F[K-1])}if(y){this.renderer.shadowRenderer.draw(G,N,E)}this.renderer.shapeRenderer.draw(G,N,E)}}else{if(v){var O=N.slice(0)}if(this.index==0||!this._stack){var A=G.canvas.height;N.unshift([N[0][0],A]);len=N.length;N.push([N[len-1][0],A])}else{var F=this._prevGridData;for(var K=F.length;K>0;K--){N.push(F[K-1])}}if(y){this.renderer.shadowRenderer.draw(G,N,E)}this.renderer.shapeRenderer.draw(G,N,E)}if(v){var I=h.extend(true,{},E,{fill:false,closePath:false});this.renderer.shapeRenderer.draw(G,O,I);if(this.markerRenderer.show){for(K=0;K<O.length;K++){this.markerRenderer.draw(O[K][0],O[K][1],G,E.markerOptions)}}}}else{if(y){this.renderer.shadowRenderer.draw(G,N,E)}this.renderer.shapeRenderer.draw(G,N,E)}}if(this.markerRenderer.show&&!J){for(K=0;K<N.length;K++){this.markerRenderer.draw(N[K][0],N[K][1],G,E.markerOptions)}}}G.restore()};h.jqplot.LineRenderer.prototype.drawShadow=function(v,x,w){};h.jqplot.LinearAxisRenderer=function(){};h.jqplot.LinearAxisRenderer.prototype.init=function(x){h.extend(true,this,x);var v=this._dataBounds;for(var y=0;y<this._series.length;y++){var z=this._series[y];var A=z._plotData;for(var w=0;w<A.length;w++){if(this.name=="xaxis"||this.name=="x2axis"){if(A[w][0]<v.min||v.min==null){v.min=A[w][0]}if(A[w][0]>v.max||v.max==null){v.max=A[w][0]}}else{if(A[w][1]<v.min||v.min==null){v.min=A[w][1]}if(A[w][1]>v.max||v.max==null){v.max=A[w][1]}}}}};h.jqplot.LinearAxisRenderer.prototype.draw=function(v){if(this.show){this.renderer.createTicks.call(this);var B=0;var w;this._elem=h('<div class="jqplot-axis jqplot-'+this.name+'" style="position:absolute;"></div>');if(this.name=="xaxis"||this.name=="x2axis"){this._elem.width(this._plotDimensions.width)}else{this._elem.height(this._plotDimensions.height)}this.labelOptions.axis=this.name;this._label=new this.labelRenderer(this.labelOptions);if(this._label.show){var A=this._label.draw(v);A.appendTo(this._elem)}if(this.showTicks){var z=this._ticks;for(var y=0;y<z.length;y++){var x=z[y];if(x.showLabel&&(!x.isMinorTick||this.showMinorTicks)){var A=x.draw(v);A.appendTo(this._elem)}}}}return this._elem};h.jqplot.LinearAxisRenderer.prototype.reset=function(){this.min=this._min;this.max=this._max;this.tickInterval=this._tickInterval;this.numberTicks=this._numberTicks};h.jqplot.LinearAxisRenderer.prototype.set=function(){var D=0;var y;var x=0;var C=0;var v=(this._label==null)?false:this._label.show;if(this.show&&this.showTicks){var B=this._ticks;for(var A=0;A<B.length;A++){var z=B[A];if(z.showLabel&&(!z.isMinorTick||this.showMinorTicks)){if(this.name=="xaxis"||this.name=="x2axis"){y=z._elem.outerHeight(true)}else{y=z._elem.outerWidth(true)}if(y>D){D=y}}}if(v){x=this._label._elem.outerWidth(true);C=this._label._elem.outerHeight(true)}if(this.name=="xaxis"){D=D+C;this._elem.css({height:D+"px",left:"0px",bottom:"0px"})}else{if(this.name=="x2axis"){D=D+C;this._elem.css({height:D+"px",left:"0px",top:"0px"})}else{if(this.name=="yaxis"){D=D+x;this._elem.css({width:D+"px",left:"0px",top:"0px"});if(v&&this._label.constructor==h.jqplot.AxisLabelRenderer){this._label._elem.css("width",x+"px")}}else{D=D+x;this._elem.css({width:D+"px",right:"0px",top:"0px"});if(v&&this._label.constructor==h.jqplot.AxisLabelRenderer){this._label._elem.css("width",x+"px")}}}}}};h.jqplot.LinearAxisRenderer.prototype.createTicks=function(){var ab=this._ticks;var X=this.ticks;var ac=this.name;var aa=this._dataBounds;var S,Y;var P,T;var y,x;var v,U;if(X.length){for(U=0;U<X.length;U++){var D=X[U];var G=new this.tickRenderer(this.tickOptions);if(D.constructor==Array){G.value=D[0];G.label=D[1];if(!this.showTicks){G.showLabel=false;G.showMark=false}else{if(!this.showTickMarks){G.showMark=false}}G.setTick(D[0],this.name);this._ticks.push(G)}else{G.value=D;if(!this.showTicks){G.showLabel=false;G.showMark=false}else{if(!this.showTickMarks){G.showMark=false}}G.setTick(D,this.name);this._ticks.push(G)}}this.numberTicks=X.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{if(ac=="xaxis"||ac=="x2axis"){S=this._plotDimensions.width}else{S=this._plotDimensions.height}if(!this.autoscale&&this.min!=null&&this.max!=null&&this.numberTicks!=null){this.tickInterval=null}P=((this.min!=null)?this.min:aa.min);T=((this.max!=null)?this.max:aa.max);if(P==T){var E=0.05;if(P>0){E=Math.max(Math.log(P)/Math.LN10,0.05)}P-=E;T+=E}var K=T-P;var O,R;var W;if(this.autoscale&&this.min==null&&this.max==null){var J,z,L;var F=false;var N=false;var w={min:null,max:null,average:null,stddev:null};for(var U=0;U<this._series.length;U++){var I=this._series[U];var B=(I.fillAxis=="x")?I._xaxis.name:I._yaxis.name;if(this.name==B){var H=I._plotValues[I.fillAxis];var A=H[0];var C=H[0];for(var Q=1;Q<H.length;Q++){if(H[Q]<A){A=H[Q]}else{if(H[Q]>C){C=H[Q]}}}var M=(C-A)/C;if(I.renderer.constructor==h.jqplot.BarRenderer){if(A>=0&&(I.fillToZero||M>0.1)){F=true}else{F=false;if(I.fill&&I.fillToZero&&A<0&&C>0){N=true}else{N=false}}}else{if(I.fill){if(A>=0&&(I.fillToZero||M>0.1)){F=true}else{if(A<0&&C>0&&I.fillToZero){F=false;N=true}else{F=false;N=false}}}else{if(A<0){F=false}}}}}if(F){this.numberTicks=2+Math.ceil((S-(this.tickSpacing-1))/this.tickSpacing);this.min=0;z=T/(this.numberTicks-1);W=Math.pow(10,Math.abs(Math.floor(Math.log(z)/Math.LN10)));if(z/W==parseInt(z/W,10)){z+=W}this.tickInterval=Math.ceil(z/W)*W;this.max=this.tickInterval*(this.numberTicks-1)}else{if(N){this.numberTicks=2+Math.ceil((S-(this.tickSpacing-1))/this.tickSpacing);var V=Math.ceil(Math.abs(P)/K*(this.numberTicks-1));var Z=this.numberTicks-1-V;z=Math.max(Math.abs(P/V),Math.abs(T/Z));W=Math.pow(10,Math.abs(Math.floor(Math.log(z)/Math.LN10)));this.tickInterval=Math.ceil(z/W)*W;this.max=this.tickInterval*Z;this.min=-this.tickInterval*V}else{if(this.numberTicks==null){if(this.tickInterval){this.numberTicks=3+Math.ceil(K/this.tickInterval)}else{this.numberTicks=2+Math.ceil((S-(this.tickSpacing-1))/this.tickSpacing)}}if(this.tickInterval==null){z=K/(this.numberTicks-1);if(z<1){W=Math.pow(10,Math.abs(Math.floor(Math.log(z)/Math.LN10)))}else{W=1}this.tickInterval=Math.ceil(z*W*this.pad)/W}else{W=1/this.tickInterval}J=this.tickInterval*(this.numberTicks-1);L=(J-K)/2;if(this.min==null){this.min=Math.floor(W*(P-L))/W}if(this.max==null){this.max=this.min+J}}}}else{O=(this.min!=null)?this.min:P-K*(this.padMin-1);R=(this.max!=null)?this.max:T+K*(this.padMax-1);this.min=O;this.max=R;K=this.max-this.min;if(this.numberTicks==null){if(this.tickInterval!=null){this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1;this.max=this.min+this.tickInterval*(this.numberTicks-1)}else{if(S>100){this.numberTicks=parseInt(3+(S-100)/75,10)}else{this.numberTicks=2}}}if(this.tickInterval==null){this.tickInterval=K/(this.numberTicks-1)}}for(var U=0;U<this.numberTicks;U++){v=this.min+U*this.tickInterval;var G=new this.tickRenderer(this.tickOptions);if(!this.showTicks){G.showLabel=false;G.showMark=false}else{if(!this.showTickMarks){G.showMark=false}}G.setTick(v,this.name);this._ticks.push(G)}}};h.jqplot.LinearAxisRenderer.prototype.pack=function(F,A){var I=this._ticks;var G=this.max;var C=this.min;var z=A.max;var M=A.min;var D=(this._label==null)?false:this._label.show;for(var v in F){this._elem.css(v,F[v])}this._offsets=A;var y=z-M;var L=G-C;this.p2u=function(w){return(w-M)*L/y+C};this.u2p=function(w){return(w-C)*y/L+M};if(this.name=="xaxis"||this.name=="x2axis"){this.series_u2p=function(w){return(w-C)*y/L};this.series_p2u=function(w){return w*L/y+C}}else{this.series_u2p=function(w){return(w-G)*y/L};this.series_p2u=function(w){return w*L/y+G}}if(this.show){if(this.name=="xaxis"||this.name=="x2axis"){for(i=0;i<I.length;i++){var K=I[i];if(K.show&&K.showLabel){var B;if(K.constructor==h.jqplot.CanvasAxisTickRenderer&&K.angle){var J=(this.name=="xaxis")?1:-1;switch(K.labelPosition){case"auto":if(J*K.angle<0){B=-K.getWidth()+K._textRenderer.height*Math.sin(-K._textRenderer.angle)/2}else{B=-K._textRenderer.height*Math.sin(K._textRenderer.angle)/2}break;case"end":B=-K.getWidth()+K._textRenderer.height*Math.sin(-K._textRenderer.angle)/2;break;case"start":B=-K._textRenderer.height*Math.sin(K._textRenderer.angle)/2;break;case"middle":B=-K.getWidth()/2+K._textRenderer.height*Math.sin(-K._textRenderer.angle)/2;break;default:B=-K.getWidth()/2+K._textRenderer.height*Math.sin(-K._textRenderer.angle)/2;break}}else{B=-K.getWidth()/2}var x=this.u2p(K.value)+B+"px";K._elem.css("left",x);K.pack()}}if(D){var H=this._label._elem.outerWidth(true);this._label._elem.css("left",M+y/2-H/2+"px");if(this.name=="xaxis"){this._label._elem.css("bottom","0px")}else{this._label._elem.css("top","0px")}this._label.pack()}}else{for(i=0;i<I.length;i++){var K=I[i];if(K.show&&K.showLabel){var B;if(K.constructor==h.jqplot.CanvasAxisTickRenderer&&K.angle){var J=(this.name=="yaxis")?1:-1;switch(K.labelPosition){case"auto":case"end":if(J*K.angle<0){B=-K._textRenderer.height*Math.cos(-K._textRenderer.angle)/2}else{B=-K.getHeight()+K._textRenderer.height*Math.cos(K._textRenderer.angle)/2}break;case"start":if(K.angle>0){B=-K._textRenderer.height*Math.cos(-K._textRenderer.angle)/2}else{B=-K.getHeight()+K._textRenderer.height*Math.cos(K._textRenderer.angle)/2}break;case"middle":B=-K.getHeight()/2;break;default:B=-K.getHeight()/2;break}}else{B=-K.getHeight()/2}var x=this.u2p(K.value)+B+"px";K._elem.css("top",x);K.pack()}}if(D){var E=this._label._elem.outerHeight(true);this._label._elem.css("top",z-y/2-E/2+"px");if(this.name=="yaxis"){this._label._elem.css("left","0px")}else{this._label._elem.css("right","0px")}this._label.pack()}}}};h.jqplot.MarkerRenderer=function(v){this.show=true;this.style="filledCircle";this.lineWidth=2;this.size=9;this.color="#666666";this.shadow=true;this.shadowAngle=45;this.shadowOffset=1;this.shadowDepth=3;this.shadowAlpha="0.07";this.shadowRenderer=new h.jqplot.ShadowRenderer();this.shapeRenderer=new h.jqplot.ShapeRenderer();h.extend(true,this,v)};h.jqplot.MarkerRenderer.prototype.init=function(v){h.extend(true,this,v);var x={angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:true};if(this.style.indexOf("filled")!=-1){x.fill=true}if(this.style.indexOf("ircle")!=-1){x.isarc=true;x.closePath=false}this.shadowRenderer.init(x);var w={fill:false,isarc:false,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:true};if(this.style.indexOf("filled")!=-1){w.fill=true}if(this.style.indexOf("ircle")!=-1){w.isarc=true;w.closePath=false}this.shapeRenderer.init(w)};h.jqplot.MarkerRenderer.prototype.drawDiamond=function(z,w,C,B,E){var v=1.2;var F=this.size/2/v;var D=this.size/2*v;var A=[[z-F,w],[z,w+D],[z+F,w],[z,w-D]];if(this.shadow){this.shadowRenderer.draw(C,A)}this.shapeRenderer.draw(C,A,E);C.restore()};h.jqplot.MarkerRenderer.prototype.drawPlus=function(A,z,D,C,G){var w=1;var H=this.size/2*w;var E=this.size/2*w;var F=[[A,z-E],[A,z+E]];var B=[[A+H,z],[A-H,z]];var v=h.extend(true,{},this.options,{closePath:false});if(this.shadow){this.shadowRenderer.draw(D,F,{closePath:false});this.shadowRenderer.draw(D,B,{closePath:false})}this.shapeRenderer.draw(D,F,v);this.shapeRenderer.draw(D,B,v);D.restore()};h.jqplot.MarkerRenderer.prototype.drawX=function(A,z,D,C,G){var w=1;var H=this.size/2*w;var E=this.size/2*w;var v=h.extend(true,{},this.options,{closePath:false});var F=[[A-H,z-E],[A+H,z+E]];var B=[[A-H,z+E],[A+H,z-E]];if(this.shadow){this.shadowRenderer.draw(D,F,{closePath:false});this.shadowRenderer.draw(D,B,{closePath:false})}this.shapeRenderer.draw(D,F,v);this.shapeRenderer.draw(D,B,v);D.restore()};h.jqplot.MarkerRenderer.prototype.drawDash=function(z,w,C,B,E){var v=1;var F=this.size/2*v;var D=this.size/2*v;var A=[[z-F,w],[z+F,w]];if(this.shadow){this.shadowRenderer.draw(C,A)}this.shapeRenderer.draw(C,A,E);C.restore()};h.jqplot.MarkerRenderer.prototype.drawSquare=function(z,w,C,B,E){var v=1;var F=this.size/2/v;var D=this.size/2*v;var A=[[z-F,w-D],[z-F,w+D],[z+F,w+D],[z+F,w-D]];if(this.shadow){this.shadowRenderer.draw(C,A)}this.shapeRenderer.draw(C,A,E);C.restore()};h.jqplot.MarkerRenderer.prototype.drawCircle=function(w,E,A,D,B){var v=this.size/2;var z=2*Math.PI;var C=[w,E,v,0,z,true];if(this.shadow){this.shadowRenderer.draw(A,C)}this.shapeRenderer.draw(A,C,B);A.restore()};h.jqplot.MarkerRenderer.prototype.draw=function(v,A,w,z){z=z||{};switch(this.style){case"diamond":this.drawDiamond(v,A,w,false,z);break;case"filledDiamond":this.drawDiamond(v,A,w,true,z);break;case"circle":this.drawCircle(v,A,w,false,z);break;case"filledCircle":this.drawCircle(v,A,w,true,z);break;case"square":this.drawSquare(v,A,w,false,z);break;case"filledSquare":this.drawSquare(v,A,w,true,z);break;case"x":this.drawX(v,A,w,true,z);break;case"plus":this.drawPlus(v,A,w,true,z);break;case"dash":this.drawDash(v,A,w,true,z);break;default:this.drawDiamond(v,A,w,false,z);break}};h.jqplot.ShadowRenderer=function(v){this.angle=45;this.offset=1;this.alpha=0.07;this.lineWidth=1.5;this.lineJoin="miter";this.lineCap="round";this.closePath=false;this.fill=false;this.depth=3;this.isarc=false;h.extend(true,this,v)};h.jqplot.ShadowRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.ShadowRenderer.prototype.draw=function(E,C,F){E.save();var v=(F!=null)?F:{};var D=(v.fill!=null)?v.fill:this.fill;var B=(v.closePath!=null)?v.closePath:this.closePath;var y=(v.offset!=null)?v.offset:this.offset;var w=(v.alpha!=null)?v.alpha:this.alpha;var A=(v.depth!=null)?v.depth:this.depth;E.lineWidth=(v.lineWidth!=null)?v.lineWidth:this.lineWidth;E.lineJoin=(v.lineJoin!=null)?v.lineJoin:this.lineJoin;E.lineCap=(v.lineCap!=null)?v.lineCap:this.lineCap;E.strokeStyle="rgba(0,0,0,"+w+")";E.fillStyle="rgba(0,0,0,"+w+")";for(var x=0;x<A;x++){E.translate(Math.cos(this.angle*Math.PI/180)*y,Math.sin(this.angle*Math.PI/180)*y);E.beginPath();if(this.isarc){E.arc(C[0],C[1],C[2],C[3],C[4],true)}else{E.moveTo(C[0][0],C[0][1]);for(var z=1;z<C.length;z++){E.lineTo(C[z][0],C[z][1])}}if(B){E.closePath()}if(D){E.fill()}else{E.stroke()}}E.restore()};h.jqplot.ShapeRenderer=function(v){this.lineWidth=1.5;this.lineJoin="miter";this.lineCap="round";this.closePath=false;this.fill=false;this.isarc=false;this.fillRect=false;this.strokeRect=false;this.clearRect=false;this.strokeStyle="#999999";this.fillStyle="#999999";h.extend(true,this,v)};h.jqplot.ShapeRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.ShapeRenderer.prototype.draw=function(D,B,F){D.save();var v=(F!=null)?F:{};var C=(v.fill!=null)?v.fill:this.fill;var z=(v.closePath!=null)?v.closePath:this.closePath;var A=(v.fillRect!=null)?v.fillRect:this.fillRect;var x=(v.strokeRect!=null)?v.strokeRect:this.strokeRect;var w=(v.clearRect!=null)?v.clearRect:this.clearRect;var E=(v.isarc!=null)?v.isarc:this.isarc;D.lineWidth=v.lineWidth||this.lineWidth;D.lineJoin=v.lineJoing||this.lineJoin;D.lineCap=v.lineCap||this.lineCap;D.strokeStyle=(v.strokeStyle||v.color)||this.strokeStyle;D.fillStyle=v.fillStyle||this.fillStyle;D.beginPath();if(E){D.arc(B[0],B[1],B[2],B[3],B[4],true);if(z){D.closePath()}if(C){D.fill()}else{D.stroke()}D.restore();return}else{if(w){D.clearRect(B[0],B[1],B[2],B[3]);D.restore();return}else{if(A||x){if(A){D.fillRect(B[0],B[1],B[2],B[3])}if(x){D.strokeRect(B[0],B[1],B[2],B[3]);D.restore();return}}else{D.moveTo(B[0][0],B[0][1]);for(var y=1;y<B.length;y++){D.lineTo(B[y][0],B[y][1])}if(z){D.closePath()}if(C){D.fill()}else{D.stroke()}}}}D.restore()};h.jqplot.TableLegendRenderer=function(){};h.jqplot.TableLegendRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.TableLegendRenderer.prototype.addrow=function(x,w,A){var v=(A)?this.rowSpacing:"0";var z=h('<tr class="jqplot-table-legend"></tr>').appendTo(this._elem);h('<td class="jqplot-table-legend" style="text-align:center;padding-top:'+v+';"><div><div class="jqplot-table-legend-swatch" style="border-color:'+w+';"></div></div></td>').appendTo(z);var y=h('<td class="jqplot-table-legend" style="padding-top:'+v+';"></td>');y.appendTo(z);if(this.escapeHtml){y.text(x)}else{y.html(x)}};h.jqplot.TableLegendRenderer.prototype.draw=function(){var B=this;if(this.show){var z=this._series;var D="position:absolute;";D+=(this.background)?"background:"+this.background+";":"";D+=(this.border)?"border:"+this.border+";":"";D+=(this.fontSize)?"font-size:"+this.fontSize+";":"";D+=(this.fontFamily)?"font-family:"+this.fontFamily+";":"";D+=(this.textColor)?"color:"+this.textColor+";":"";this._elem=h('<table class="jqplot-table-legend" style="'+D+'"></table>');var v=false;for(var A=0;A<z.length;A++){s=z[A];if(s.show&&s.showLabel){var y=s.label.toString();if(y){var w=s.color;if(s._stack&&!s.fill){w=""}this.renderer.addrow.call(this,y,w,v);v=true}for(var x=0;x<h.jqplot.addLegendRowHooks.length;x++){var C=h.jqplot.addLegendRowHooks[x].call(this,s);if(C){this.renderer.addrow.call(this,C.label,C.color,v);v=true}}}}}return this._elem};h.jqplot.TableLegendRenderer.prototype.pack=function(y){if(this.show){var x={_top:y.top,_left:y.left,_right:y.right,_bottom:this._plotDimensions.height-y.bottom};switch(this.location){case"nw":var w=x._left+this.xoffset;var v=x._top+this.yoffset;this._elem.css("left",w);this._elem.css("top",v);break;case"n":var w=(y.left+(this._plotDimensions.width-y.right))/2-this.getWidth()/2;var v=x._top+this.yoffset;this._elem.css("left",w);this._elem.css("top",v);break;case"ne":var w=y.right+this.xoffset;var v=x._top+this.yoffset;this._elem.css({right:w,top:v});break;case"e":var w=y.right+this.xoffset;var v=(y.top+(this._plotDimensions.height-y.bottom))/2-this.getHeight()/2;this._elem.css({right:w,top:v});break;case"se":var w=y.right+this.xoffset;var v=y.bottom+this.yoffset;this._elem.css({right:w,bottom:v});break;case"s":var w=(y.left+(this._plotDimensions.width-y.right))/2-this.getWidth()/2;var v=y.bottom+this.yoffset;this._elem.css({left:w,bottom:v});break;case"sw":var w=x._left+this.xoffset;var v=y.bottom+this.yoffset;this._elem.css({left:w,bottom:v});break;case"w":var w=x._left+this.xoffset;var v=(y.top+(this._plotDimensions.height-y.bottom))/2-this.getHeight()/2;this._elem.css({left:w,top:v});break;default:var w=x._right-this.xoffset;var v=x._bottom+this.yoffset;this._elem.css({right:w,bottom:v});break}}};h.jqplot.sprintf=function(){function A(G,C,D,F){var E=(G.length>=C)?"":Array(1+C-G.length>>>0).join(D);return F?G+E:E+G}function x(H,G,J,E,F,D){var I=E-H.length;if(I>0){var C=" ";if(D){C=" "}if(J||!F){H=A(H,E,C,J)}else{H=H.slice(0,G.length)+A("",I,"0",true)+H.slice(G.length)}}return H}function B(K,D,I,E,C,H,J,G){var F=K>>>0;I=I&&F&&{"2":"0b","8":"0","16":"0x"}[D]||"";K=I+A(F.toString(D),H||0,"0",false);return x(K,I,E,C,J,G)}function v(G,H,E,C,F,D){if(C!=null){G=G.slice(0,C)}return x(G,"",H,E,F,D)}var w=arguments,y=0,z=w[y++];return z.replace(h.jqplot.sprintf.regex,function(V,I,J,M,X,T,G){if(V=="%%"){return"%"}var N=false,K="",L=false,U=false,H=false;for(var S=0;J&&S<J.length;S++){switch(J.charAt(S)){case" ":K=" ";break;case"+":K="+";break;case"-":N=true;break;case"0":L=true;break;case"#":U=true;break;case"&":H=true;break}}if(!M){M=0}else{if(M=="*"){M=+w[y++]}else{if(M.charAt(0)=="*"){M=+w[M.slice(1,-1)]}else{M=+M}}}if(M<0){M=-M;N=true}if(!isFinite(M)){throw new Error("$.jqplot.sprintf: (minimum-)width must be finite")}if(!T){T="fFeE".indexOf(G)>-1?6:(G=="d")?0:void (0)}else{if(T=="*"){T=+w[y++]}else{if(T.charAt(0)=="*"){T=+w[T.slice(1,-1)]}else{T=+T}}}var P=I?w[I.slice(0,-1)]:w[y++];switch(G){case"s":if(P==null){return""}return v(String(P),N,M,T,L,H);case"c":return v(String.fromCharCode(+P),N,M,T,L,H);case"b":return B(P,2,U,N,M,T,L,H);case"o":return B(P,8,U,N,M,T,L,H);case"x":return B(P,16,U,N,M,T,L,H);case"X":return B(P,16,U,N,M,T,L,H).toUpperCase();case"u":return B(P,10,U,N,M,T,L,H);case"i":case"d":var E=parseInt(+P,10);if(isNaN(E)){return""}var R=E<0?"-":K;P=R+A(String(Math.abs(E)),T,"0",false);return x(P,R,N,M,L,H);case"e":case"E":case"f":case"F":case"g":case"G":var E=+P;if(isNaN(E)){return""}var R=E<0?"-":K;var F=["toExponential","toFixed","toPrecision"]["efg".indexOf(G.toLowerCase())];var W=["toString","toUpperCase"]["eEfFgG".indexOf(G)%2];P=R+Math.abs(E)[F](T);return x(P,R,N,M,L,H)[W]();case"p":case"P":var E=+P;if(isNaN(E)){return""}var R=E<0?"-":K;var O=String(Number(Math.abs(E)).toExponential()).split(/e|E/);var D=(O[0].indexOf(".")!=-1)?O[0].length-1:O[0].length;var Q=(O[1]<0)?-O[1]-1:0;if(Math.abs(E)<1){if(D+Q<=T){P=R+Math.abs(E).toPrecision(D)}else{if(D<=T-1){P=R+Math.abs(E).toExponential(D-1)}else{P=R+Math.abs(E).toExponential(T-1)}}}else{var C=(D<=T)?D:T;P=R+Math.abs(E).toPrecision(C)}var W=["toString","toUpperCase"]["pP".indexOf(G)%2];return x(P,R,N,M,L,H)[W]();case"n":return"";default:return V}})};h.jqplot.sprintf.regex=/%%|%(\d+\$)?([-+#0& ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g})(jQuery);
|
js/jqplot/plugins/jqplot.pieRenderer.min.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Copyright (c) 2009 Chris Leonello
|
3 |
+
* jqPlot is currently available for use in all personal or commercial projects
|
4 |
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
5 |
+
* choose the license that best suits your project and use it accordingly.
|
6 |
+
*
|
7 |
+
* Although not required, the author would appreciate an email letting him
|
8 |
+
* know of any substantial use of jqPlot. You can reach the author at:
|
9 |
+
* chris dot leonello at gmail dot com or see http://www.jqplot.com/info.php .
|
10 |
+
*
|
11 |
+
* If you are feeling kind and generous, consider supporting the project by
|
12 |
+
* making a donation at: http://www.jqplot.com/donate.php .
|
13 |
+
*/
|
14 |
+
(function(b){b.jqplot.PieRenderer=function(){b.jqplot.LineRenderer.call(this)};b.jqplot.PieRenderer.prototype=new b.jqplot.LineRenderer();b.jqplot.PieRenderer.prototype.constructor=b.jqplot.PieRenderer;b.jqplot.PieRenderer.prototype.init=function(d){this.diameter=null;this.padding=20;this.sliceMargin=0;this.fill=true;this.shadowOffset=2;this.shadowAlpha=0.07;this.shadowDepth=5;this.tickRenderer=b.jqplot.PieTickRenderer;b.extend(true,this,d);if(this.diameter!=null){this.diameter=this.diameter-this.sliceMargin}this._diameter=null};b.jqplot.PieRenderer.prototype.setGridData=function(d){};b.jqplot.PieRenderer.prototype.makeGridData=function(g,h){var d=[];var j=[];for(var f=0;f<g.length;f++){d.push(g[f][1]);j.push([g[f][0]]);if(f>0){d[f]+=d[f-1]}}var e=Math.PI*2/d[d.length-1];for(var f=0;f<d.length;f++){j[f][1]=d[f]*e}return j};b.jqplot.PieRenderer.prototype.drawSlice=function(n,l,k,f,h){var d=this._diameter/2;var m=this.fill;var j=this.lineWidth;n.save();n.translate(this.sliceMargin*Math.cos((l+k)/2),this.sliceMargin*Math.sin((l+k)/2));if(h){for(var g=0;g<this.shadowDepth;g++){n.save();n.translate(this.shadowOffset*Math.cos(this.shadowAngle/180*Math.PI),this.shadowOffset*Math.sin(this.shadowAngle/180*Math.PI));e()}}else{e()}function e(){if(k>6.282){k=6.282;if(l>k){l=6.281}}n.beginPath();n.moveTo(0,0);n.fillStyle=f;n.strokeStyle=f;n.lineWidth=j;n.arc(0,0,d,l,k,false);n.closePath();if(m){n.fill()}else{n.stroke()}}if(h){for(var g=0;g<this.shadowDepth;g++){n.restore()}}n.restore()};b.jqplot.PieRenderer.prototype.draw=function(v,B,k){var y;var s=(k!=undefined)?k:{};var g=0;var f=0;var l=1;var e=new this.colorGenerator(this.seriesColors);if(k.legendInfo){var q=k.legendInfo;switch(q.location){case"nw":g=q.width+q.xoffset;break;case"w":g=q.width+q.xoffset;break;case"sw":g=q.width+q.xoffset;break;case"ne":g=q.width+q.xoffset;l=-1;break;case"e":g=q.width+q.xoffset;l=-1;break;case"se":g=q.width+q.xoffset;l=-1;break;case"n":f=q.height+q.yoffset;break;case"s":f=q.height+q.yoffset;l=-1;break;default:break}}var n=(s.shadow!=undefined)?s.shadow:this.shadow;var C=(s.showLine!=undefined)?s.showLine:this.showLine;var x=(s.fill!=undefined)?s.fill:this.fill;var j=v.canvas.width;var p=v.canvas.height;var o=j-g-2*this.padding;var z=p-f-2*this.padding;var A=Math.min(o,z);this._diameter=this.diameter||A-this.sliceMargin;var t=this._diameter/2;v.save();v.translate((j-l*g)/2+l*g,(p-l*f)/2+l*f);if(this.shadow){var u="rgba(0,0,0,"+this.shadowAlpha+")";for(var y=0;y<B.length;y++){var m=(y==0)?0:B[y-1][1];this.renderer.drawSlice.call(this,v,m,B[y][1],u,true)}}for(var y=0;y<B.length;y++){var m=(y==0)?0:B[y-1][1];this.renderer.drawSlice.call(this,v,m,B[y][1],e.next())}v.restore()};b.jqplot.PieAxisRenderer=function(){b.jqplot.LinearAxisRenderer.call(this)};b.jqplot.PieAxisRenderer.prototype=new b.jqplot.LinearAxisRenderer();b.jqplot.PieAxisRenderer.prototype.constructor=b.jqplot.PieAxisRenderer;b.jqplot.PieAxisRenderer.prototype.init=function(d){this.tickRenderer=b.jqplot.PieTickRenderer;b.extend(true,this,d);this._dataBounds={min:0,max:100};this.min=0;this.max=100;this.showTicks=false;this.ticks=[];this.showMark=false;this.show=false};b.jqplot.PieLegendRenderer=function(){b.jqplot.TableLegendRenderer.call(this)};b.jqplot.PieLegendRenderer.prototype=new b.jqplot.TableLegendRenderer();b.jqplot.PieLegendRenderer.prototype.constructor=b.jqplot.PieLegendRenderer;b.jqplot.PieLegendRenderer.prototype.draw=function(){var k=this;if(this.show){var f=this._series;var m="position:absolute;";m+=(this.background)?"background:"+this.background+";":"";m+=(this.border)?"border:"+this.border+";":"";m+=(this.fontSize)?"font-size:"+this.fontSize+";":"";m+=(this.fontFamily)?"font-family:"+this.fontFamily+";":"";m+=(this.textColor)?"color:"+this.textColor+";":"";this._elem=b('<table class="jqplot-table-legend" style="'+m+'"></table>');var d=false;var l=f[0];var h=new l.colorGenerator(l.seriesColors);if(l.show){var j=l.data;for(var g=0;g<j.length;g++){var e=j[g][0].toString();if(e){this.renderer.addrow.call(this,e,h.next(),d);d=true}}}}return this._elem};function a(h,g,e){e=e||{};e.axesDefaults=e.axesDefaults||{};e.legend=e.legend||{};e.seriesDefaults=e.seriesDefaults||{};var d=false;if(e.seriesDefaults.renderer==b.jqplot.PieRenderer){d=true}else{if(e.series){for(var f=0;f<e.series.length;f++){if(e.series[f].renderer==b.jqplot.PieRenderer){d=true}}}}if(d){e.axesDefaults.renderer=b.jqplot.PieAxisRenderer;e.legend.renderer=b.jqplot.PieLegendRenderer;e.legend.preDraw=true}}function c(d){for(var e=0;e<this.series.length;e++){this.series[e].seriesColors=this.seriesColors;this.series[e].colorGenerator=this.colorGenerator}}b.jqplot.preInitHooks.push(a);b.jqplot.postParseOptionsHooks.push(c);b.jqplot.PieTickRenderer=function(){b.jqplot.AxisTickRenderer.call(this)};b.jqplot.PieTickRenderer.prototype=new b.jqplot.AxisTickRenderer();b.jqplot.PieTickRenderer.prototype.constructor=b.jqplot.PieTickRenderer})(jQuery);
|
js/jqplot/plugins/jqplot.trendline.min.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Copyright (c) 2009 Chris Leonello
|
3 |
+
* jqPlot is currently available for use in all personal or commercial projects
|
4 |
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
5 |
+
* choose the license that best suits your project and use it accordingly.
|
6 |
+
*
|
7 |
+
* Although not required, the author would appreciate an email letting him
|
8 |
+
* know of any substantial use of jqPlot. You can reach the author at:
|
9 |
+
* chris dot leonello at gmail dot com or see http://www.jqplot.com/info.php .
|
10 |
+
*
|
11 |
+
* If you are feeling kind and generous, consider supporting the project by
|
12 |
+
* making a donation at: http://www.jqplot.com/donate.php .
|
13 |
+
*/
|
14 |
+
(function(f){f.jqplot.Trendline=function(){this.show=f.jqplot.config.enablePlugins;this.color="#666666";this.renderer=new f.jqplot.LineRenderer();this.rendererOptions={marker:{show:false}};this.label="";this.type="linear";this.shadow=true;this.markerRenderer={show:false};this.lineWidth=1.5;this.shadowAngle=45;this.shadowOffset=1;this.shadowAlpha=0.07;this.shadowDepth=3};f.jqplot.postParseSeriesOptionsHooks.push(e);f.jqplot.postDrawSeriesHooks.push(g);f.jqplot.addLegendRowHooks.push(a);function a(k){var i=k.trendline.label.toString();var j=null;if(this.renderer.constructor!=f.jqplot.PieRenderer&&k.trendline.show&&i){j={label:i,color:k.trendline.color}}return j}function e(j,i){if(this.renderer.constructor!=f.jqplot.PieRenderer){this.trendline=new f.jqplot.Trendline();i=i||{};f.extend(true,this.trendline,{color:this.color},j.trendline,i.trendline);this.trendline.renderer.init.call(this.trendline,null)}}function g(m,i){i=f.extend(true,{},this.trendline,i);if(i.show&&this.renderer.constructor!=f.jqplot.PieRenderer){var k;var l=i.data||this.data;k=c(l,this.trendline.type);var j=i.gridData||this.renderer.makeGridData.call(this,k.data);this.trendline.renderer.draw.call(this.trendline,m,j,{showLine:true,shadow:this.trendline.shadow})}}function b(w,v,n){var u=(n==null)?"linear":n;var s=w.length;var t;var z;var o=0;var m=0;var r=0;var q=0;var l=0;var j=[];var k=[];if(u=="linear"){k=w;j=v}else{if(u=="exp"||u=="exponential"){for(var p=0;p<v.length;p++){if(v[p]<=0){s--}else{k.push(w[p]);j.push(Math.log(v[p]))}}}}for(var p=0;p<s;p++){o=o+k[p];m=m+j[p];q=q+k[p]*j[p];r=r+k[p]*k[p];l=l+j[p]*j[p]}t=(s*q-o*m)/(s*r-o*o);z=(m-t*o)/s;return[t,z]}function h(k,j){var i;i=b(k,j,"linear");return[i[0],i[1]]}function d(o,m){var k;var i=o;var n=m;k=b(i,n,"exp");var l=Math.exp(k[0]);var j=Math.exp(k[1]);return[l,j]}function c(l,j){var p=(j==null)?"linear":j;var n;var o;var r=[];var q=[];var m=[];for(k=0;k<l.length;k++){if(l[k]!=null&&l[k][0]!=null&&l[k][1]!=null){r.push(l[k][0]);q.push(l[k][1])}}if(p=="linear"){n=h(r,q);for(var k=0;k<r.length;k++){o=n[0]*r[k]+n[1];m.push([r[k],o])}}else{if(p=="exp"||p=="exponential"){n=d(r,q);for(var k=0;k<r.length;k++){o=n[1]*Math.pow(n[0],r[k]);m.push([r[k],o])}}}return{data:m,slope:n[0],intercept:n[1]}}})(jQuery);
|
js/jqplot/usage.txt
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Title: jqPlot Usage
|
2 |
+
|
3 |
+
Usage Documentation:
|
4 |
+
|
5 |
+
Introduction:
|
6 |
+
|
7 |
+
jqPlot is a jQuery plugin to generate pure client-side javascript charts in your web pages.
|
8 |
+
|
9 |
+
The jqPlot home page is at <http://www.jqplot.com/>.
|
10 |
+
|
11 |
+
The project page and downloads are at <http://www.bitbucket.org/cleonello/jqplot/>.
|
12 |
+
|
13 |
+
Below are a few examples to demonstrate jqPlot usage. These plots are shown as static images.
|
14 |
+
Many more examples of dynamically rendered plots can be seen on the test and examples pages here: <../../tests/>.
|
15 |
+
|
16 |
+
Include the Files:
|
17 |
+
|
18 |
+
jqPlot requires jQuery (tested with 1.3.2 or better). jQuery 1.3.2 is included in the distribution.
|
19 |
+
To use jqPlot include jquery, the jqPlot jQuery plugin, jqPlot css file and optionally the excanvas
|
20 |
+
script for IE support in your web page:
|
21 |
+
|
22 |
+
> <!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.js"></script><![endif]-->
|
23 |
+
> <script language="javascript" type="text/javascript" src="jquery-1.3.2.min.js"></script>
|
24 |
+
> <script language="javascript" type="text/javascript" src="jquery.jqplot.min.js"></script>
|
25 |
+
> <link rel="stylesheet" type="text/css" href="jquery.jqplot.css" />
|
26 |
+
|
27 |
+
Add a plot container:
|
28 |
+
|
29 |
+
Add a container (target) to your web page where you want your plot to show up.
|
30 |
+
Be sure to give your target a width and a height:
|
31 |
+
|
32 |
+
> <div id="chartdiv" style="height:400px;width:300px; "></div>
|
33 |
+
|
34 |
+
Create a plot:
|
35 |
+
|
36 |
+
Then, create the actual plot by calling the
|
37 |
+
$.jqplot plugin with the id of your target and some data:
|
38 |
+
|
39 |
+
> $.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]);
|
40 |
+
|
41 |
+
Which will produce a
|
42 |
+
chart like:
|
43 |
+
|
44 |
+
(see images/basicline.png)
|
45 |
+
|
46 |
+
Plot Options:
|
47 |
+
|
48 |
+
You can customize the plot by passing options to the $.jqplot function. Options are described in
|
49 |
+
<jqPlot Options> in the jqPlotOptions.txt file. An example of options usage:
|
50 |
+
|
51 |
+
> $.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]],
|
52 |
+
> { title:'Exponential Line',
|
53 |
+
> axes:{yaxis:{min:-10, max:240}},
|
54 |
+
> series:[{color:'#5FAB78'}]
|
55 |
+
> });
|
56 |
+
|
57 |
+
Which will produce
|
58 |
+
a plot like:
|
59 |
+
|
60 |
+
(see images/basicoptions.png)
|
61 |
+
|
62 |
+
Using Plugins:
|
63 |
+
|
64 |
+
You can use jqPlot plugins (that is, plugins to the jqPlot plugin) by including them in your html
|
65 |
+
after you include the jqPlot plugin. Here is how to include the log axis plugin:
|
66 |
+
|
67 |
+
> <link rel="stylesheet" type="text/css" href="jquery.jqplot.css" />
|
68 |
+
> <!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.js"></script><![endif]-->
|
69 |
+
> <script language="javascript" type="text/javascript" src="jquery-1.3.2.min.js"></script>
|
70 |
+
> <script language="javascript" type="text/javascript" src="jquery.jqplot.min.js"></script>
|
71 |
+
> <script language="javascript" type="text/javascript" src="jqplot.logAxisRenderer.js"></script>
|
72 |
+
|
73 |
+
Here is a the same $.jqplot call
|
74 |
+
but with a log y axis:
|
75 |
+
|
76 |
+
> $.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]],
|
77 |
+
> { title:'Exponential Line',
|
78 |
+
> axes:{yaxis:{renderer: $.jqplot.LogAxisRenderer}},
|
79 |
+
> series:[{color:'#5FAB78'}]
|
80 |
+
> });
|
81 |
+
|
82 |
+
Which produces
|
83 |
+
a plot like:
|
84 |
+
|
85 |
+
(see images/basiclogaxis.png)
|
86 |
+
|
87 |
+
You can further customize with options specific
|
88 |
+
to the log axis plugin:
|
89 |
+
|
90 |
+
> $.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]],
|
91 |
+
> { title:'Exponential Line',
|
92 |
+
> axes:{yaxis:{renderer: $.jqplot.LogAxisRenderer, tickDistribution:'power'}},
|
93 |
+
> series:[{color:'#5FAB78'}]
|
94 |
+
> });
|
95 |
+
|
96 |
+
Which makes a
|
97 |
+
plot like:
|
98 |
+
|
99 |
+
(see images/basiclogoptions.png)
|
100 |
+
|
101 |
+
For a full list of options, see <jqPlot Options> in the jqPlotOptions.txt file.
|
102 |
+
|
103 |
+
You can add as many plugins as you wish. Order is generally not important.
|
104 |
+
Some plugins, like the highlighter plugin which highlights data points near the
|
105 |
+
mouse, don't need any extra options or setup to function. Highlighter does have
|
106 |
+
additional options which the user can set.
|
107 |
+
|
108 |
+
Other plugins, the barRenderer for example, provide functionality the must be specified
|
109 |
+
in the chart options object. To render a series as a bar graph with the bar renderer,
|
110 |
+
you would first include the plugin after jqPlot:
|
111 |
+
|
112 |
+
> <script language="javascript" type="text/javascript" src="plugins/jqplot.barRenderer.min.js"></script>
|
113 |
+
|
114 |
+
Then you would create
|
115 |
+
a chart like:
|
116 |
+
|
117 |
+
> $.jqplot('chartdiv', [[34.53, 56.32, 25.1, 18.6]], series:[{renderer:$.jqplot.BarRenderer}]);
|
118 |
+
|
119 |
+
Here the default LineRenderer is replaced by a BarRenderer to generate a bar graph for the first (an only) series.
|
js/jqplot/wp-piwik.jqplot.js
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Files combined for WP-Piwik. Get jqPlot at http://www.jqplot.com/ */
|
2 |
+
/**
|
3 |
+
* Copyright (c) 2009 Chris Leonello
|
4 |
+
* jqPlot is currently available for use in all personal or commercial projects
|
5 |
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
6 |
+
* choose the license that best suits your project and use it accordingly.
|
7 |
+
*
|
8 |
+
* Although not required, the author would appreciate an email letting him
|
9 |
+
* know of any substantial use of jqPlot. You can reach the author at:
|
10 |
+
* chris dot leonello at gmail dot com or see http://www.jqplot.com/info.php .
|
11 |
+
*
|
12 |
+
* If you are feeling kind and generous, consider supporting the project by
|
13 |
+
* making a donation at: http://www.jqplot.com/donate.php .
|
14 |
+
*/
|
15 |
+
(function(h){var c;h.jqplot=function(A,y,w){var x,v;if(y==null){throw"No data specified"}if(y.constructor==Array&&y.length==0||y[0].constructor!=Array){throw"Improper Data Array"}if(w==null){if(y instanceof Array){x=y;v=null}else{if(y.constructor==Object){x=null;v=y}}}else{x=y;v=w}var z=new n();z.init(A,x,v);z.draw();return z};h.jqplot.debug=1;h.jqplot.config={debug:1,enablePlugins:true,defaultHeight:300,defaultWidth:400};h.jqplot.enablePlugins=h.jqplot.config.enablePlugins;h.jqplot.preInitHooks=[];h.jqplot.postInitHooks=[];h.jqplot.preParseOptionsHooks=[];h.jqplot.postParseOptionsHooks=[];h.jqplot.preDrawHooks=[];h.jqplot.postDrawHooks=[];h.jqplot.preDrawSeriesHooks=[];h.jqplot.postDrawSeriesHooks=[];h.jqplot.preDrawLegendHooks=[];h.jqplot.addLegendRowHooks=[];h.jqplot.preSeriesInitHooks=[];h.jqplot.postSeriesInitHooks=[];h.jqplot.preParseSeriesOptionsHooks=[];h.jqplot.postParseSeriesOptionsHooks=[];h.jqplot.eventListenerHooks=[];h.jqplot.preDrawSeriesShadowHooks=[];h.jqplot.postDrawSeriesShadowHooks=[];h.jqplot.ElemContainer=function(){this._elem;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null}};h.jqplot.ElemContainer.prototype.getWidth=function(){if(this._elem){return this._elem.outerWidth(true)}else{return null}};h.jqplot.ElemContainer.prototype.getHeight=function(){if(this._elem){return this._elem.outerHeight(true)}else{return null}};h.jqplot.ElemContainer.prototype.getPosition=function(){if(this._elem){return this._elem.position()}else{return{top:null,left:null,bottom:null,right:null}}};h.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top};h.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left};h.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")};h.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")};function l(v){h.jqplot.ElemContainer.call(this);this.name=v;this._series=[];this.show=false;this.tickRenderer=h.jqplot.AxisTickRenderer;this.tickOptions={};this.labelRenderer=h.jqplot.AxisLabelRenderer;this.labelOptions={};this.label=null;this.showLabel=true;this.min=null;this.max=null;this.autoscale=false;this.pad=1.2;this.padMax=null;this.padMin=null;this.ticks=[];this.numberTicks;this.tickInterval;this.renderer=h.jqplot.LinearAxisRenderer;this.rendererOptions={};this.showTicks=true;this.showTickMarks=true;this.showMinorTicks=true;this.useSeriesColor=false;this.borderWidth=null;this.borderColor=null;this._dataBounds={min:null,max:null};this._offsets={min:null,max:null};this._ticks=[];this._label=null;this.syncTicks=null;this.tickSpacing=75;this._min=null;this._max=null;this._tickInterval=null;this._numberTicks=null;this.__ticks=null}l.prototype=new h.jqplot.ElemContainer();l.prototype.constructor=l;l.prototype.init=function(){this.renderer=new this.renderer();this.tickOptions.axis=this.name;if(this.label==null||this.label==""){this.showLabel=false}else{this.labelOptions.label=this.label}if(this.showLabel==false){this.labelOptions.show=false}if(this.pad==0){this.pad=1}if(this.padMax==0){this.padMax=1}if(this.padMin==0){this.padMin=1}if(this.padMax==null){this.padMax=(this.pad-1)/2+1}if(this.padMin==null){this.padMin=(this.pad-1)/2+1}this.pad=this.padMax+this.padMin-1;if(this.min!=null||this.max!=null){this.autoscale=false}if(this.syncTicks==null&&this.name.indexOf("y")>-1){this.syncTicks=true}else{if(this.syncTicks==null){this.syncTicks=false}}this.renderer.init.call(this,this.rendererOptions)};l.prototype.draw=function(v){return this.renderer.draw.call(this,v)};l.prototype.set=function(){this.renderer.set.call(this)};l.prototype.pack=function(w,v){if(this.show){this.renderer.pack.call(this,w,v)}if(this._min==null){this._min=this.min;this._max=this.max;this._tickInterval=this.tickInterval;this._numberTicks=this.numberTicks;this.__ticks=this._ticks}};l.prototype.reset=function(){this.renderer.reset.call(this)};l.prototype.resetScale=function(){this.min=null;this.max=null;this.numberTicks=null;this.tickInterval=null};function b(v){h.jqplot.ElemContainer.call(this);this.show=false;this.location="ne";this.xoffset=12;this.yoffset=12;this.border;this.background;this.textColor;this.fontFamily;this.fontSize;this.rowSpacing="0.5em";this.renderer=h.jqplot.TableLegendRenderer;this.rendererOptions={};this.preDraw=false;this.escapeHtml=false;this._series=[];h.extend(true,this,v)}b.prototype=new h.jqplot.ElemContainer();b.prototype.constructor=b;b.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};b.prototype.draw=function(w){for(var v=0;v<h.jqplot.preDrawLegendHooks.length;v++){h.jqplot.preDrawLegendHooks[v].call(this,w)}return this.renderer.draw.call(this,w)};b.prototype.pack=function(v){this.renderer.pack.call(this,v)};function k(v){h.jqplot.ElemContainer.call(this);this.text=v;this.show=true;this.fontFamily;this.fontSize;this.textAlign;this.textColor;this.renderer=h.jqplot.DivTitleRenderer;this.rendererOptions={}}k.prototype=new h.jqplot.ElemContainer();k.prototype.constructor=k;k.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};k.prototype.draw=function(v){return this.renderer.draw.call(this,v)};k.prototype.pack=function(){this.renderer.pack.call(this)};function o(){h.jqplot.ElemContainer.call(this);this.show=true;this.xaxis="xaxis";this._xaxis;this.yaxis="yaxis";this._yaxis;this.gridBorderWidth=2;this.renderer=h.jqplot.LineRenderer;this.rendererOptions={};this.data=[];this.gridData=[];this.label="";this.showLabel=true;this.color;this.lineWidth=2.5;this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.25;this.shadowDepth=3;this.shadowAlpha="0.1";this.breakOnNull=false;this.markerRenderer=h.jqplot.MarkerRenderer;this.markerOptions={};this.showLine=true;this.showMarker=true;this.index;this.fill=false;this.fillColor;this.fillAlpha;this.fillAndStroke=false;this.disableStack=false;this._stack=false;this.neighborThreshold=4;this.fillToZero=false;this.fillAxis="y";this.useNegativeColors=true;this._stackData=[];this._plotData=[];this._plotValues={x:[],y:[]};this._intervals={x:{},y:{}};this._prevPlotData=[];this._prevGridData=[];this._stackAxis="y";this._primaryAxis="_xaxis";this.canvas=new h.jqplot.GenericCanvas();this.shadowCanvas=new h.jqplot.GenericCanvas();this.plugins={};this._sumy=0;this._sumx=0}o.prototype=new h.jqplot.ElemContainer();o.prototype.constructor=o;o.prototype.init=function(w,B,y){this.index=w;this.gridBorderWidth=B;var A=this.data;for(var x=0;x<A.length;x++){if(!this.breakOnNull){if(A[x]==null||A[x][0]==null||A[x][1]==null){A.splice(x,1);continue}}else{if(A[x]==null||A[x][0]==null||A[x][1]==null){var z}}}if(!this.fillColor){this.fillColor=this.color}if(this.fillAlpha){var v=h.jqplot.normalize2rgb(this.fillColor);var v=h.jqplot.getColorComponents(v);this.fillColor="rgba("+v[0]+","+v[1]+","+v[2]+","+this.fillAlpha+")"}this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions,y);this.markerRenderer=new this.markerRenderer();if(!this.markerOptions.color){this.markerOptions.color=this.color}if(this.markerOptions.show==null){this.markerOptions.show=this.showMarker}this.markerRenderer.init(this.markerOptions)};o.prototype.draw=function(B,y,A){var w=(y==c)?{}:y;B=(B==c)?this.canvas._ctx:B;for(var v=0;v<h.jqplot.preDrawSeriesHooks.length;v++){h.jqplot.preDrawSeriesHooks[v].call(this,B,w)}if(this.show){this.renderer.setGridData.call(this,A);if(!w.preventJqPlotSeriesDrawTrigger){h(B.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData])}var z=[];if(w.data){z=w.data}else{if(!this._stack){z=this.data}else{z=this._plotData}}var x=w.gridData||this.renderer.makeGridData.call(this,z,A);this.renderer.draw.call(this,B,x,w)}for(var v=0;v<h.jqplot.postDrawSeriesHooks.length;v++){h.jqplot.postDrawSeriesHooks[v].call(this,B,w)}};o.prototype.drawShadow=function(B,y,A){var w=(y==c)?{}:y;B=(B==c)?this.shadowCanvas._ctx:B;for(var v=0;v<h.jqplot.preDrawSeriesShadowHooks.length;v++){h.jqplot.preDrawSeriesShadowHooks[v].call(this,B,w)}if(this.shadow){this.renderer.setGridData.call(this,A);var z=[];if(w.data){z=w.data}else{if(!this._stack){z=this.data}else{z=this._plotData}}var x=w.gridData||this.renderer.makeGridData.call(this,z,A);this.renderer.drawShadow.call(this,B,x,w)}for(var v=0;v<h.jqplot.postDrawSeriesShadowHooks.length;v++){h.jqplot.postDrawSeriesShadowHooks[v].call(this,B,w)}};function g(){h.jqplot.ElemContainer.call(this);this.drawGridlines=true;this.gridLineColor="#cccccc";this.gridLineWidth=1;this.background="#fffdf6";this.borderColor="#999999";this.borderWidth=2;this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.5;this.shadowWidth=3;this.shadowDepth=3;this.shadowAlpha="0.07";this._left;this._top;this._right;this._bottom;this._width;this._height;this._axes=[];this.renderer=h.jqplot.CanvasGridRenderer;this.rendererOptions={};this._offsets={top:null,bottom:null,left:null,right:null}}g.prototype=new h.jqplot.ElemContainer();g.prototype.constructor=g;g.prototype.init=function(){this.renderer=new this.renderer();this.renderer.init.call(this,this.rendererOptions)};g.prototype.createElement=function(v){this._offsets=v;return this.renderer.createElement.call(this)};g.prototype.draw=function(){this.renderer.draw.call(this)};h.jqplot.GenericCanvas=function(){h.jqplot.ElemContainer.call(this);this._ctx};h.jqplot.GenericCanvas.prototype=new h.jqplot.ElemContainer();h.jqplot.GenericCanvas.prototype.constructor=h.jqplot.GenericCanvas;h.jqplot.GenericCanvas.prototype.createElement=function(z,x,w){this._offsets=z;var v="jqplot";if(x!=c){v=x}var y=document.createElement("canvas");if(w!=c){this._plotDimensions=w}y.width=this._plotDimensions.width-this._offsets.left-this._offsets.right;y.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom;this._elem=h(y);this._elem.addClass(v);this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top});if(h.browser.msie){window.G_vmlCanvasManager.init_(document)}if(h.browser.msie){y=window.G_vmlCanvasManager.initElement(y)}return this._elem};h.jqplot.GenericCanvas.prototype.setContext=function(){this._ctx=this._elem.get(0).getContext("2d");return this._ctx};function n(){this.data=[];this.targetId=null;this.target=null;this.defaults={axesDefaults:{},axes:{xaxis:{},yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{}},seriesDefaults:{},gridPadding:{top:10,right:10,bottom:23,left:10},series:[]};this.series=[];this.axes={xaxis:new l("xaxis"),yaxis:new l("yaxis"),x2axis:new l("x2axis"),y2axis:new l("y2axis"),y3axis:new l("y3axis"),y4axis:new l("y4axis"),y5axis:new l("y5axis"),y6axis:new l("y6axis"),y7axis:new l("y7axis"),y8axis:new l("y8axis"),y9axis:new l("y9axis")};this.grid=new g();this.legend=new b();this.baseCanvas=new h.jqplot.GenericCanvas();this.eventCanvas=new h.jqplot.GenericCanvas();this._width=null;this._height=null;this._plotDimensions={height:null,width:null};this._gridPadding={top:10,right:10,bottom:10,left:10};this.syncXTicks=true;this.syncYTicks=true;this.seriesColors=["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3","#bd70c7"];this.negativeSeriesColors=["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"];this.sortData=true;var y=0;this.textColor;this.fontFamily;this.fontSize;this.title=new k();this.options={};this.stackSeries=false;this._stackData=[];this._plotData=[];this.plugins={};this._drawCount=0;this.drawIfHidden=false;this._sumy=0;this._sumx=0;this.colorGenerator=h.jqplot.ColorGenerator;this.init=function(G,F,C){for(var D=0;D<h.jqplot.preInitHooks.length;D++){h.jqplot.preInitHooks[D].call(this,G,F,C)}this.targetId="#"+G;this.target=h("#"+G);if(!this.target.get(0)){throw"No plot target specified"}if(this.target.css("position")=="static"){this.target.css("position","relative")}if(!this.target.hasClass("jqplot-target")){this.target.addClass("jqplot-target")}if(!this.target.height()){var E;if(C&&C.height){E=parseInt(C.height,10)}else{if(this.target.attr("data-height")){E=parseInt(this.target.attr("data-height"),10)}else{E=parseInt(h.jqplot.config.defaultHeight,10)}}this._height=E;this.target.css("height",E+"px")}else{this._height=this.target.height()}if(!this.target.width()){var z;if(C&&C.width){z=parseInt(C.width,10)}else{if(this.target.attr("data-width")){z=parseInt(this.target.attr("data-width"),10)}else{z=parseInt(h.jqplot.config.defaultWidth,10)}}this._width=z;this.target.css("width",z+"px")}else{this._width=this.target.width()}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;if(this._height<=0||this._width<=0||!this._height||!this._width){throw"Canvas dimension not set"}this.data=F;this.parseOptions(C);if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this.title.init();this.legend.init();this._sumy=0;this._sumx=0;for(var D=0;D<this.series.length;D++){this.series[D].shadowCanvas._plotDimensions=this._plotDimensions;this.series[D].canvas._plotDimensions=this._plotDimensions;for(var B=0;B<h.jqplot.preSeriesInitHooks.length;B++){h.jqplot.preSeriesInitHooks[B].call(this.series[D],G,F,this.options.seriesDefaults,this.options.series[D])}this.populatePlotData(this.series[D],D);this.series[D]._plotDimensions=this._plotDimensions;this.series[D].init(D,this.grid.borderWidth,this);for(var B=0;B<h.jqplot.postSeriesInitHooks.length;B++){h.jqplot.postSeriesInitHooks[B].call(this.series[D],G,F,this.options.seriesDefaults,this.options.series[D])}this._sumy+=this.series[D]._sumy;this._sumx+=this.series[D]._sumx}for(var A in this.axes){this.axes[A]._plotDimensions=this._plotDimensions;this.axes[A].init()}if(this.sortData){v(this.series)}this.grid.init();this.grid._axes=this.axes;this.legend._series=this.series;for(var D=0;D<h.jqplot.postInitHooks.length;D++){h.jqplot.postInitHooks[D].call(this,G,F,C)}};this.resetAxesScale=function(C){var B=(C!=c)?C:this.axes;if(B===true){B=this.axes}if(B.constructor===Array){for(var A=0;A<B.length;A++){this.axes[B[A]].resetScale()}}else{if(B.constructor===Object){for(var z in B){this.axes[z].resetScale()}}}};this.reInitialize=function(){if(!this.target.height()){var D;if(options&&options.height){D=parseInt(options.height,10)}else{if(this.target.attr("data-height")){D=parseInt(this.target.attr("data-height"),10)}else{D=parseInt(h.jqplot.config.defaultHeight,10)}}this._height=D;this.target.css("height",D+"px")}else{this._height=this.target.height()}if(!this.target.width()){var z;if(options&&options.width){z=parseInt(options.width,10)}else{if(this.target.attr("data-width")){z=parseInt(this.target.attr("data-width"),10)}else{z=parseInt(h.jqplot.config.defaultWidth,10)}}this._width=z;this.target.css("width",z+"px")}else{this._width=this.target.width()}if(this._height<=0||this._width<=0||!this._height||!this._width){throw"Target dimension not set"}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;for(var E in this.axes){var C=this.axes[E];C._plotWidth=this._width;C._plotHeight=this._height}this.title._plotWidth=this._width;if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this._sumy=0;this._sumx=0;for(var B=0;B<this.series.length;B++){this.populatePlotData(this.series[B],B);this.series[B]._plotDimensions=this._plotDimensions;this.series[B].canvas._plotDimensions=this._plotDimensions;this._sumy+=this.series[B]._sumy;this._sumx+=this.series[B]._sumx}for(var A in this.axes){this.axes[A]._plotDimensions=this._plotDimensions;this.axes[A]._ticks=[];this.axes[A].renderer.init.call(this.axes[A],{})}if(this.sortData){v(this.series)}this.grid._axes=this.axes;this.legend._series=this.series};function v(D){var E,B;for(var C=0;C<D.length;C++){E=D[C].data;var z=true;if(D[C]._stackAxis=="x"){for(var A=0;A<E.length;A++){if(typeof(E[A][1])!="number"){z=false;break}}if(z){E.sort(function(G,F){return G[1]-F[1]})}}else{for(var A=0;A<E.length;A++){if(typeof(E[A][0])!="number"){z=false;break}}if(z){E.sort(function(G,F){return G[0]-F[0]})}}}}this.populatePlotData=function(D,E){this._plotData=[];this._stackData=[];D._stackData=[];D._plotData=[];var H={x:[],y:[]};if(this.stackSeries&&!D.disableStack){D._stack=true;var F=D._stackAxis=="x"?0:1;var G=F?0:1;var I=h.extend(true,[],D.data);var J=h.extend(true,[],D.data);for(var B=0;B<E;B++){var z=this.series[B].data;for(var A=0;A<z.length;A++){I[A][0]+=z[A][0];I[A][1]+=z[A][1];J[A][F]+=z[A][F]}}for(var C=0;C<J.length;C++){H.x.push(J[C][0]);H.y.push(J[C][1])}this._plotData.push(J);this._stackData.push(I);D._stackData=I;D._plotData=J;D._plotValues=H}else{for(var C=0;C<D.data.length;C++){H.x.push(D.data[C][0]);H.y.push(D.data[C][1])}this._stackData.push(D.data);this.series[E]._stackData=D.data;this._plotData.push(D.data);D._plotData=D.data;D._plotValues=H}if(E>0){D._prevPlotData=this.series[E-1]._plotData}D._sumy=0;D._sumx=0;for(C=D.data.length-1;C>-1;C--){D._sumy+=D.data[C][1];D._sumx+=D.data[C][0]}};this.getNextSeriesColor=(function(A){var z=0;var B=A.seriesColors;return function(){if(z<B.length){return B[z++]}else{z=0;return B[z++]}}})(this);this.parseOptions=function(H){for(var E=0;E<h.jqplot.preParseOptionsHooks.length;E++){h.jqplot.preParseOptionsHooks[E].call(this,H)}this.options=h.extend(true,{},this.defaults,H);this.stackSeries=this.options.stackSeries;if(this.options.seriesColors){this.seriesColors=this.options.seriesColors}var z=new this.colorGenerator(this.seriesColors);h.extend(true,this._gridPadding,this.options.gridPadding);this.sortData=(this.options.sortData!=null)?this.options.sortData:this.sortData;for(var A in this.axes){var C=this.axes[A];h.extend(true,C,this.options.axesDefaults,this.options.axes[A]);C._plotWidth=this._width;C._plotHeight=this._height}if(this.data.length==0){this.data=[];for(var E=0;E<this.options.series.length;E++){this.data.push(this.options.series.data)}}var F=function(L,J){var I=[];var K;J=J||"vertical";if(!(L[0] instanceof Array)){for(var K=0;K<L.length;K++){if(J=="vertical"){I.push([K+1,L[K]])}else{I.push([L[K],K+1])}}}else{h.extend(true,I,L)}return I};for(var E=0;E<this.data.length;E++){var G=new o();for(var D=0;D<h.jqplot.preParseSeriesOptionsHooks.length;D++){h.jqplot.preParseSeriesOptionsHooks[D].call(G,this.options.seriesDefaults,this.options.series[E])}h.extend(true,G,{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[E]);var B="vertical";if(G.renderer.constructor==h.jqplot.barRenderer&&G.rendererOptions&&G.rendererOptions.barDirection=="horizontal"){B="horizontal"}G.data=F(this.data[E],B);switch(G.xaxis){case"xaxis":G._xaxis=this.axes.xaxis;break;case"x2axis":G._xaxis=this.axes.x2axis;break;default:break}G._yaxis=this.axes[G.yaxis];G._xaxis._series.push(G);G._yaxis._series.push(G);if(G.show){G._xaxis.show=true;G._yaxis.show=true}if(!G.color&&G.show!=false){G.color=z.next()}if(!G.label){G.label="Series "+(E+1).toString()}this.series.push(G);for(var D=0;D<h.jqplot.postParseSeriesOptionsHooks.length;D++){h.jqplot.postParseSeriesOptionsHooks[D].call(this.series[E],this.options.seriesDefaults,this.options.series[E])}}h.extend(true,this.grid,this.options.grid);for(var A in this.axes){var C=this.axes[A];if(C.borderWidth==null){C.borderWidth=this.grid.borderWidth}if(C.borderColor==null){if(A!="xaxis"&&A!="x2axis"&&C.useSeriesColor===true&&C.show){C.borderColor=C._series[0].color}else{C.borderColor=this.grid.borderColor}}}if(typeof this.options.title=="string"){this.title.text=this.options.title}else{if(typeof this.options.title=="object"){h.extend(true,this.title,this.options.title)}}this.title._plotWidth=this._width;h.extend(true,this.legend,this.options.legend);for(var E=0;E<h.jqplot.postParseOptionsHooks.length;E++){h.jqplot.postParseOptionsHooks[E].call(this,H)}};this.replot=function(A){var B=(A!=c)?A:{};var z=(B.clear!=c)?B.clear:true;var C=(B.resetAxes!=c)?B.resetAxes:false;this.target.trigger("jqplotPreReplot");if(z){this.target.empty()}if(C){this.resetAxesScale(C)}this.reInitialize();this.draw();this.target.trigger("jqplotPostReplot")};this.redraw=function(z){z=(z!=null)?z:true;this.target.trigger("jqplotPreRedraw");if(z){this.target.empty()}for(var B in this.axes){this.axes[B]._ticks=[]}for(var A=0;A<this.series.length;A++){this.populatePlotData(this.series[A],A)}this._sumy=0;this._sumx=0;for(A=0;A<this.series.length;A++){this._sumy+=this.series[A]._sumy;this._sumx+=this.series[A]._sumx}this.draw();this.target.trigger("jqplotPostRedraw")};this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){this.target.trigger("jqplotPreDraw");var F;for(F=0;F<h.jqplot.preDrawHooks.length;F++){h.jqplot.preDrawHooks[F].call(this)}this.target.append(this.baseCanvas.createElement({left:0,right:0,top:0,bottom:0},"jqplot-base-canvas"));var E=this.baseCanvas.setContext();this.target.append(this.title.draw());this.title.pack({top:0,left:0});for(var B in this.axes){this.target.append(this.axes[B].draw(E));this.axes[B].set()}if(this.axes.yaxis.show){this._gridPadding.left=this.axes.yaxis.getWidth()}var C=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];var A=[0,0,0,0];var H=0;var D,z;for(D=8;D>0;D--){z=this.axes[C[D-1]];if(z.show){A[D-1]=H;H+=z.getWidth()}}if(H>this._gridPadding.right){this._gridPadding.right=H}if(this.title.show&&this.axes.x2axis.show){this._gridPadding.top=this.title.getHeight()+this.axes.x2axis.getHeight()}else{if(this.title.show){this._gridPadding.top=this.title.getHeight()}else{if(this.axes.x2axis.show){this._gridPadding.top=this.axes.x2axis.getHeight()}}}if(this.axes.xaxis.show){this._gridPadding.bottom=this.axes.xaxis.getHeight()}this.axes.xaxis.pack({position:"absolute",bottom:0,left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});this.axes.yaxis.pack({position:"absolute",top:0,left:0,height:this._height},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});this.axes.x2axis.pack({position:"absolute",top:this.title.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});for(F=8;F>0;F--){this.axes[C[F-1]].pack({position:"absolute",top:0,right:A[F-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top})}this.target.append(this.grid.createElement(this._gridPadding));this.grid.draw();for(F=0;F<this.series.length;F++){this.target.append(this.series[F].shadowCanvas.createElement(this._gridPadding,"jqplot-series-canvas jqplot-shadow"));this.series[F].shadowCanvas.setContext()}for(F=0;F<this.series.length;F++){this.target.append(this.series[F].canvas.createElement(this._gridPadding,"jqplot-series-canvas"));this.series[F].canvas.setContext()}this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas"));var I=this.eventCanvas.setContext();I.fillStyle="rgba(0,0,0,0)";I.fillRect(0,0,I.canvas.width,I.canvas.height);this.bindCustomEvents();if(this.legend.preDraw){this.target.append(this.legend.draw());this.legend.pack(this._gridPadding);if(this.legend._elem){this.drawSeries({legendInfo:{location:this.legend.location,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}})}else{this.drawSeries()}}else{this.drawSeries();h(this.series[this.series.length-1].canvas._elem).after(this.legend.draw());this.legend.pack(this._gridPadding)}for(var F=0;F<h.jqplot.eventListenerHooks.length;F++){var G=h.jqplot.eventListenerHooks[F];this.eventCanvas._elem.bind(G[0],{plot:this},G[1])}for(var F=0;F<h.jqplot.postDrawHooks.length;F++){h.jqplot.postDrawHooks[F].call(this)}if(this.target.is(":visible")){this._drawCount+=1}this.target.trigger("jqplotPostDraw",[this])}};this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick);this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown);this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp);this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove);this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter);this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave)};function w(H){var G=H.data.plot;var C=G.eventCanvas._elem.offset();var F={x:H.pageX-C.left,y:H.pageY-C.top};var D={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null};var E=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];var z=G.axes;for(var A=11;A>0;A--){var B=E[A-1];if(z[B].show){D[B]=z[B].series_p2u(F[B.charAt(0)])}}return({offsets:C,gridPos:F,dataPos:D})}function x(F,J,I){var G=null;var K,D,B,H,C,A;var E;for(var D=0;D<F.series.length;D++){K=F.series[D];A=K.renderer;if(K.show){E=Math.abs(K.markerRenderer.size/2+K.neighborThreshold);for(var C=0;C<K.gridData.length;C++){p=K.gridData[C];if(A.constructor==h.jqplot.OHLCRenderer){if(A.candleStick){var z=K._yaxis.series_u2p;if(J>=p[0]-A._bodyWidth/2&&J<=p[0]+A._bodyWidth/2&&I>=z(K.data[C][2])&&I<=z(K.data[C][3])){G={seriesIndex:D,pointIndex:C,gridData:p,data:K.data[C]}}}else{if(!A.hlc){var z=K._yaxis.series_u2p;if(J>=p[0]-A._tickLength&&J<=p[0]+A._tickLength&&I>=z(K.data[C][2])&&I<=z(K.data[C][3])){G={seriesIndex:D,pointIndex:C,gridData:p,data:K.data[C]}}}else{var z=K._yaxis.series_u2p;if(J>=p[0]-A._tickLength&&J<=p[0]+A._tickLength&&I>=z(K.data[C][1])&&I<=z(K.data[C][2])){G={seriesIndex:D,pointIndex:C,gridData:p,data:K.data[C]}}}}}else{H=Math.sqrt((J-p[0])*(J-p[0])+(I-p[1])*(I-p[1]));if(H<=E&&(H<=B||B==null)){B=H;G={seriesIndex:D,pointIndex:C,gridData:p,data:K.data[C]}}}}}}return G}this.onClick=function(A){var z=w(A);var C=A.data.plot;var B=x(C,z.gridPos.x,z.gridPos.y);A.data.plot.eventCanvas._elem.trigger("jqplotClick",[z.gridPos,z.dataPos,B,C])};this.onDblClick=function(A){var z=w(A);var C=A.data.plot;var B=x(C,z.gridPos.x,z.gridPos.y);A.data.plot.eventCanvas._elem.trigger("jqplotDblClick",[z.gridPos,z.dataPos,B,C])};this.onMouseDown=function(A){var z=w(A);var C=A.data.plot;var B=x(C,z.gridPos.x,z.gridPos.y);A.data.plot.eventCanvas._elem.trigger("jqplotMouseDown",[z.gridPos,z.dataPos,B,C])};this.onMouseUp=function(A){var z=w(A);A.data.plot.eventCanvas._elem.trigger("jqplotMouseUp",[z.gridPos,z.dataPos,null,A.data.plot])};this.onMouseMove=function(A){var z=w(A);var C=A.data.plot;var B=x(C,z.gridPos.x,z.gridPos.y);A.data.plot.eventCanvas._elem.trigger("jqplotMouseMove",[z.gridPos,z.dataPos,B,C])};this.onMouseEnter=function(A){var z=w(A);var B=A.data.plot;A.data.plot.eventCanvas._elem.trigger("jqplotMouseEnter",[z.gridPos,z.dataPos,null,B])};this.onMouseLeave=function(A){var z=w(A);var B=A.data.plot;A.data.plot.eventCanvas._elem.trigger("jqplotMouseLeave",[z.gridPos,z.dataPos,null,B])};this.drawSeries=function(B,z){var D,C,A;if(z!=c){C=this.series[z];A=C.shadowCanvas._ctx;A.clearRect(0,0,A.canvas.width,A.canvas.height);C.drawShadow(A,B,this);A=C.canvas._ctx;A.clearRect(0,0,A.canvas.width,A.canvas.height);C.draw(A,B,this)}else{for(D=0;D<this.series.length;D++){C=this.series[D];A=C.shadowCanvas._ctx;A.clearRect(0,0,A.canvas.width,A.canvas.height);C.drawShadow(A,B,this);A=C.canvas._ctx;A.clearRect(0,0,A.canvas.width,A.canvas.height);C.draw(A,B,this)}}}}h.jqplot.ColorGenerator=function(w){var v=0;this.next=function(){if(v<w.length){return w[v++]}else{v=0;return w[v++]}};this.previous=function(){if(v>0){return w[v--]}else{v=w.length-1;return w[v]}};this.get=function(x){return w[x]};this.setColors=function(x){w=x};this.reset=function(){v=0}};h.jqplot.hex2rgb=function(x,v){x=x.replace("#","");if(x.length==3){x=x[0]+x[0]+x[1]+x[1]+x[2]+x[2]}var w;w="rgba("+parseInt(x.slice(0,2),16)+", "+parseInt(x.slice(2,4),16)+", "+parseInt(x.slice(4,6),16);if(v){w+=", "+v}w+=")";return w};h.jqplot.rgb2hex=function(z){var x=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/;var v=z.match(x);var y="#";for(i=1;i<4;i++){var w;if(v[i].search(/%/)!=-1){w=parseInt(255*v[i]/100,10).toString(16);if(w.length==1){w="0"+w}}else{w=parseInt(v[i],10).toString(16);if(w.length==1){w="0"+w}}y+=w}return y};h.jqplot.normalize2rgb=function(w,v){if(w.search(/^ *rgba?\(/)!=-1){return w}else{if(w.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/)!=-1){return h.jqplot.hex2rgb(w,v)}else{throw"invalid color spec"}}};h.jqplot.getColorComponents=function(z){var y=h.jqplot.normalize2rgb(z);var x=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/;var v=y.match(x);var w=[];for(i=1;i<4;i++){if(v[i].search(/%/)!=-1){w[i-1]=parseInt(255*v[i]/100,10)}else{w[i-1]=parseInt(v[i],10)}}w[3]=parseFloat(v[4])?parseFloat(v[4]):1;return w};h.jqplot.log=function(){if(window.console&&h.jqplot.debug){if(arguments.length==1){console.log(arguments[0])}else{console.log(arguments)}}};var f=h.jqplot.log;h.jqplot.AxisLabelRenderer=function(v){h.jqplot.ElemContainer.call(this);this.axis;this.show=true;this.label="";this._elem;this.escapeHTML=false;h.extend(true,this,v)};h.jqplot.AxisLabelRenderer.prototype=new h.jqplot.ElemContainer();h.jqplot.AxisLabelRenderer.prototype.constructor=h.jqplot.AxisLabelRenderer;h.jqplot.AxisLabelRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.AxisLabelRenderer.prototype.draw=function(){this._elem=h('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>');if(Number(this.label)){this._elem.css("white-space","nowrap")}if(!this.escapeHTML){this._elem.html(this.label)}else{this._elem.text(this.label)}return this._elem};h.jqplot.AxisLabelRenderer.prototype.pack=function(){};h.jqplot.AxisTickRenderer=function(v){h.jqplot.ElemContainer.call(this);this.mark="outside";this.axis;this.showMark=true;this.showGridline=true;this.isMinorTick=false;this.size=4;this.markSize=6;this.show=true;this.showLabel=true;this.label="";this.value=null;this._styles={};this.formatter=h.jqplot.DefaultTickFormatter;this.formatString="";this.fontFamily;this.fontSize;this.textColor;this._elem;h.extend(true,this,v)};h.jqplot.AxisTickRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.AxisTickRenderer.prototype=new h.jqplot.ElemContainer();h.jqplot.AxisTickRenderer.prototype.constructor=h.jqplot.AxisTickRenderer;h.jqplot.AxisTickRenderer.prototype.setTick=function(v,x,w){this.value=v;this.axis=x;if(w){this.isMinorTick=true}return this};h.jqplot.AxisTickRenderer.prototype.draw=function(){if(!this.label){this.label=this.formatter(this.formatString,this.value)}style='style="position:absolute;';if(Number(this.label)){style+="white-space:nowrap;"}style+='"';this._elem=h("<div "+style+' class="jqplot-'+this.axis+'-tick">'+this.label+"</div>");for(var v in this._styles){this._elem.css(v,this._styles[v])}if(this.fontFamily){this._elem.css("font-family",this.fontFamily)}if(this.fontSize){this._elem.css("font-size",this.fontSize)}if(this.textColor){this._elem.css("color",this.textColor)}return this._elem};h.jqplot.DefaultTickFormatter=function(v,w){if(typeof w=="number"){if(!v){v="%.1f"}return h.jqplot.sprintf(v,w)}else{return String(w)}};h.jqplot.AxisTickRenderer.prototype.pack=function(){};h.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new h.jqplot.ShadowRenderer()};h.jqplot.CanvasGridRenderer.prototype.init=function(w){this._ctx;h.extend(true,this,w);var v={lineJoin:"miter",lineCap:"round",fill:false,isarc:false,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:false};this.renderer.shadowRenderer.init(v)};h.jqplot.CanvasGridRenderer.prototype.createElement=function(){var y=document.createElement("canvas");var v=this._plotDimensions.width;var x=this._plotDimensions.height;y.width=v;y.height=x;this._elem=h(y);this._elem.addClass("jqplot-grid-canvas");this._elem.css({position:"absolute",left:0,top:0});if(h.browser.msie){window.G_vmlCanvasManager.init_(document)}if(h.browser.msie){y=window.G_vmlCanvasManager.initElement(y)}this._top=this._offsets.top;this._bottom=x-this._offsets.bottom;this._left=this._offsets.left;this._right=v-this._offsets.right;this._width=this._right-this._left;this._height=this._bottom-this._top;return this._elem};h.jqplot.CanvasGridRenderer.prototype.draw=function(){this._ctx=this._elem.get(0).getContext("2d");var L=this._ctx;var E=this._axes;L.save();L.fillStyle=this.background;L.fillRect(this._left,this._top,this._width,this._height);if(this.drawGridlines){L.save();L.lineJoin="miter";L.lineCap="butt";L.lineWidth=this.gridLineWidth;L.strokeStyle=this.gridLineColor;var G,D;var v=["xaxis","yaxis","x2axis","y2axis"];for(var A=4;A>0;A--){var w=v[A-1];var y=E[w];var H=y._ticks;if(y.show){for(var z=H.length;z>0;z--){var K=H[z-1];if(K.show){var F=Math.round(y.u2p(K.value))+0.5;switch(w){case"xaxis":if(K.showGridline){C(F,this._top,F,this._bottom)}if(K.showMark&&K.mark){s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;switch(m){case"outside":G=this._bottom;D=this._bottom+s;break;case"inside":G=this._bottom-s;D=this._bottom;break;case"cross":G=this._bottom-s;D=this._bottom+s;break;default:G=this._bottom;D=this._bottom+s;break}if(this.shadow){this.renderer.shadowRenderer.draw(L,[[F,G],[F,D]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false})}C(F,G,F,D)}break;case"yaxis":if(K.showGridline){C(this._right,F,this._left,F)}if(K.showMark&&K.mark){s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;switch(m){case"outside":G=this._left-s;D=this._left;break;case"inside":G=this._left;D=this._left+s;break;case"cross":G=this._left-s;D=this._left+s;break;default:G=this._left-s;D=this._left;break}if(this.shadow){this.renderer.shadowRenderer.draw(L,[[G,F],[D,F]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}C(G,F,D,F,{strokeStyle:y.borderColor})}break;case"x2axis":if(K.showGridline){C(F,this._bottom,F,this._top)}if(K.showMark&&K.mark){s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;switch(m){case"outside":G=this._top-s;D=this._top;break;case"inside":G=this._top;D=this._top+s;break;case"cross":G=this._top-s;D=this._top+s;break;default:G=this._top-s;D=this._top;break}if(this.shadow){this.renderer.shadowRenderer.draw(L,[[F,G],[F,D]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false})}C(F,G,F,D)}break;case"y2axis":if(K.showGridline){C(this._left,F,this._right,F)}if(K.showMark&&K.mark){s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;switch(m){case"outside":G=this._right;D=this._right+s;break;case"inside":G=this._right-s;D=this._right;break;case"cross":G=this._right-s;D=this._right+s;break;default:G=this._right;D=this._right+s;break}if(this.shadow){this.renderer.shadowRenderer.draw(L,[[G,F],[D,F]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}C(G,F,D,F,{strokeStyle:y.borderColor})}break;default:break}}}}}v=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];for(var A=7;A>0;A--){var y=E[v[A-1]];var H=y._ticks;if(y.show){var J=H[y.numberTicks-1];var B=H[0];var x=y.getLeft();var I=[[x,J.getTop()+J.getHeight()/2],[x,B.getTop()+B.getHeight()/2+1]];if(this.shadow){this.renderer.shadowRenderer.draw(L,I,{lineCap:"butt",fill:false,closePath:false})}C(I[0][0],I[0][1],I[1][0],I[1][1],{lineCap:"butt",strokeStyle:y.borderColor,lineWidth:y.borderWidth});for(var z=H.length;z>0;z--){var K=H[z-1];s=K.markSize;m=K.mark;var F=Math.round(y.u2p(K.value))+0.5;if(K.showMark&&K.mark){switch(m){case"outside":G=x;D=x+s;break;case"inside":G=x-s;D=x;break;case"cross":G=x-s;D=x+s;break;default:G=x;D=x+s;break}I=[[G,F],[D,F]];if(this.shadow){this.renderer.shadowRenderer.draw(L,I,{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}C(G,F,D,F,{strokeStyle:y.borderColor})}}}}L.restore()}function C(Q,P,N,M,O){L.save();O=O||{};h.extend(true,L,O);L.beginPath();L.moveTo(Q,P);L.lineTo(N,M);L.stroke();L.restore()}if(this.shadow){var I=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]];this.renderer.shadowRenderer.draw(L,I)}C(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:E.x2axis.borderColor,lineWidth:E.x2axis.borderWidth});C(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:E.y2axis.borderColor,lineWidth:E.y2axis.borderWidth});C(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:E.xaxis.borderColor,lineWidth:E.xaxis.borderWidth});C(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:E.yaxis.borderColor,lineWidth:E.yaxis.borderWidth});L.restore()};var r=24*60*60*1000;var j=function(v,w){v=String(v);while(v.length<w){v="0"+v}return v};var e={millisecond:1,second:1000,minute:60*1000,hour:60*60*1000,day:r,week:7*r,month:{add:function(x,v){e.year.add(x,Math[v>0?"floor":"ceil"](v/12));var w=x.getMonth()+(v%12);if(w==12){w=0;x.setYear(x.getFullYear()+1)}else{if(w==-1){w=11;x.setYear(x.getFullYear()-1)}}x.setMonth(w)},diff:function(z,x){var v=z.getFullYear()-x.getFullYear();var w=z.getMonth()-x.getMonth()+(v*12);var y=z.getDate()-x.getDate();return w+(y/30)}},year:{add:function(w,v){w.setYear(w.getFullYear()+Math[v>0?"floor":"ceil"](v))},diff:function(w,v){return e.month.diff(w,v)/12}}};for(var u in e){if(u.substring(u.length-1)!="s"){e[u+"s"]=e[u]}}var t=function(y,x){if(Date.prototype.strftime.formatShortcuts[x]){return y.strftime(Date.prototype.strftime.formatShortcuts[x])}else{var v=(Date.prototype.strftime.formatCodes[x]||"").split(".");var w=y["get"+v[0]]?y["get"+v[0]]():"";if(v[1]){w=j(w,v[1])}return w}};var q={succ:function(v){return this.clone().add(1,v)},add:function(x,w){var v=e[w]||e.day;if(typeof v=="number"){this.setTime(this.getTime()+(v*x))}else{v.add(this,x)}return this},diff:function(w,z,v){w=Date.create(w);if(w===null){return null}var x=e[z]||e.day;if(typeof x=="number"){var y=(this.getTime()-w.getTime())/x}else{var y=x.diff(this,w)}return(v?y:Math[y>0?"floor":"ceil"](y))},strftime:function(w){var y=w||"%Y-%m-%d",v="",x;while(y.length>0){if(x=y.match(Date.prototype.strftime.formatCodes.matcher)){v+=y.slice(0,x.index);v+=(x[1]||"")+t(this,x[2]);y=y.slice(x.index+x[0].length)}else{v+=y;y=""}}return v},getShortYear:function(){return this.getYear()%100},getMonthNumber:function(){return this.getMonth()+1},getMonthName:function(){return Date.MONTHNAMES[this.getMonth()]},getAbbrMonthName:function(){return Date.ABBR_MONTHNAMES[this.getMonth()]},getDayName:function(){return Date.DAYNAMES[this.getDay()]},getAbbrDayName:function(){return Date.ABBR_DAYNAMES[this.getDay()]},getDayOrdinal:function(){return Date.ORDINALNAMES[this.getDate()%10]},getHours12:function(){var v=this.getHours();return v>12?v-12:(v==0?12:v)},getAmPm:function(){return this.getHours()>=12?"PM":"AM"},getUnix:function(){return Math.round(this.getTime()/1000,0)},getGmtOffset:function(){var v=this.getTimezoneOffset()/60;var w=v<0?"+":"-";v=Math.abs(v);return w+j(Math.floor(v),2)+":"+j((v%1)*60,2)},getTimezoneName:function(){var v=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return v[1]||v[2]||"GMT"+this.getGmtOffset()},toYmdInt:function(){return(this.getFullYear()*10000)+(this.getMonthNumber()*100)+this.getDate()},clone:function(){return new Date(this.getTime())}};for(var a in q){Date.prototype[a]=q[a]}var d={create:function(v){if(v instanceof Date){return v}if(typeof v=="number"){return new Date(v)}var A=String(v).replace(/^\s*(.+)\s*$/,"$1"),w=0,x=Date.create.patterns.length,y;var z=A;while(w<x){ms=Date.parse(z);if(!isNaN(ms)){return new Date(ms)}y=Date.create.patterns[w];if(typeof y=="function"){obj=y(z);if(obj instanceof Date){return obj}}else{z=A.replace(y[0],y[1])}w++}return NaN},MONTHNAMES:"January February March April May June July August September October November December".split(" "),ABBR_MONTHNAMES:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAYNAMES:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ABBR_DAYNAMES:"Sun Mon Tue Wed Thu Fri Sat".split(" "),ORDINALNAMES:"th st nd rd th th th th th th".split(" "),ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S",daysInMonth:function(v,w){if(w==2){return new Date(v,1,29).getDate()==29?29:28}return[c,31,c,31,30,31,30,31,31,30,31,30,31][w]}};for(var a in d){Date[a]=d[a]}Date.prototype.strftime.formatCodes={matcher:/()%(#?(%|[a-z]))/i,Y:"FullYear",y:"ShortYear.2",m:"MonthNumber.2","#m":"MonthNumber",B:"MonthName",b:"AbbrMonthName",d:"Date.2","#d":"Date",e:"Date",A:"DayName",a:"AbbrDayName",w:"Day",o:"DayOrdinal",H:"Hours.2","#H":"Hours",I:"Hours12.2","#I":"Hours12",p:"AmPm",M:"Minutes.2","#M":"Minutes",S:"Seconds.2","#S":"Seconds",s:"Unix",N:"Milliseconds.3","#N":"Milliseconds",O:"TimezoneOffset",Z:"TimezoneName",G:"GmtOffset"};Date.prototype.strftime.formatShortcuts={F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",D:"%m/%d/%y","#c":"%a %b %e %H:%M:%S %Y",v:"%e-%b-%Y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"};Date.create.patterns=[[/-/g,"/"],[/st|nd|rd|th/g,""],[/(3[01]|[0-2]\d)\s*\.\s*(1[0-2]|0\d)\s*\.\s*([1-9]\d{3})/,"$2/$1/$3"],[/([1-9]\d{3})\s*-\s*(1[0-2]|0\d)\s*-\s*(3[01]|[0-2]\d)/,"$2/$3/$1"],function(y){var w=y.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i);if(w){if(w[1]){var x=Date.create(w[1]);if(isNaN(x)){return}}else{var x=new Date();x.setMilliseconds(0)}var v=parseFloat(w[2]);if(w[6]){v=w[6].toLowerCase()=="am"?(v==12?0:v):(v==12?12:v+12)}x.setHours(v,parseInt(w[3]||0,10),parseInt(w[4]||0,10),((parseFloat(w[5]||0))||0)*1000);return x}else{return y}},function(y){var w=y.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i);if(w){if(w[1]){var x=Date.create(w[1]);if(isNaN(x)){return}}else{var x=new Date();x.setMilliseconds(0)}var v=parseFloat(w[2]);x.setHours(v,parseInt(w[3],10),parseInt(w[4],10),parseFloat(w[5])*1000);return x}else{return y}},function(A){var x=A.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/);if(x){var z=new Date();var B=parseFloat(String(z.getFullYear()).slice(2,4));var C=parseInt(String(z.getFullYear())/100,10)*100;var E=1;var F=parseFloat(x[1]);var D=parseFloat(x[3]);var w,v,G;if(F>31){v=x[3];if(F<B+E){w=C+F}else{w=C-100+F}}else{v=x[1];if(D<B+E){w=C+D}else{w=C-100+D}}var G=h.inArray(x[2],Date.ABBR_MONTHNAMES);if(G==-1){G=h.inArray(x[2],Date.MONTHNAMES)}z.setFullYear(w,G,v);z.setHours(0,0,0,0);return z}else{return A}}];if(h.jqplot.config.debug){h.date=Date.create}h.jqplot.DivTitleRenderer=function(){};h.jqplot.DivTitleRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.DivTitleRenderer.prototype.draw=function(){var w=this.renderer;if(!this.text){this.show=false;this._elem=h('<div style="height:0px;width:0px;"></div>')}else{if(this.text){var v="position:absolute;top:0px;left:0px;";v+=(this._plotWidth)?"width:"+this._plotWidth+"px;":"";v+=(this.fontFamily)?"font-family:"+this.fontFamily+";":"";v+=(this.fontSize)?"font-size:"+this.fontSize+";":"";v+=(this.textAlign)?"text-align:"+this.textAlign+";":"text-align:center;";v+=(this.textColor)?"color:"+this.textColor+";":"";this._elem=h('<div class="jqplot-title" style="'+v+'">'+this.text+"</div>")}}return this._elem};h.jqplot.DivTitleRenderer.prototype.pack=function(){};h.jqplot.LineRenderer=function(){this.shapeRenderer=new h.jqplot.ShapeRenderer();this.shadowRenderer=new h.jqplot.ShadowRenderer()};h.jqplot.LineRenderer.prototype.init=function(w){h.extend(true,this.renderer,w);var y={lineJoin:"round",lineCap:"round",fill:this.fill,isarc:false,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,closePath:this.fill};this.renderer.shapeRenderer.init(y);if(this.lineWidth>2.5){var x=this.shadowOffset*(1+(Math.atan((this.lineWidth/2.5))/0.785398163-1)*0.6)}else{var x=this.shadowOffset*Math.atan((this.lineWidth/2.5))/0.785398163}var v={lineJoin:"round",lineCap:"round",fill:this.fill,isarc:false,angle:this.shadowAngle,offset:x,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,closePath:this.fill};this.renderer.shadowRenderer.init(v)};h.jqplot.LineRenderer.prototype.setGridData=function(A){var w=this._xaxis.series_u2p;var z=this._yaxis.series_u2p;var x=this._plotData;var y=this._prevPlotData;this.gridData=[];this._prevGridData=[];for(var v=0;v<this.data.length;v++){if(x[v]!=null){this.gridData.push([w.call(this._xaxis,x[v][0]),z.call(this._yaxis,x[v][1])])}if(y[v]!=null){this._prevGridData.push([w.call(this._xaxis,y[v][0]),z.call(this._yaxis,y[v][1])])}}};h.jqplot.LineRenderer.prototype.makeGridData=function(y,A){var x=this._xaxis.series_u2p;var z=this._yaxis.series_u2p;var w=[];var B=[];for(var v=0;v<y.length;v++){if(y[v]!=null){w.push([x.call(this._xaxis,y[v][0]),z.call(this._yaxis,y[v][1])])}}return w};h.jqplot.LineRenderer.prototype.draw=function(G,N,w){var K;var E=(w!=c)?w:{};var y=(E.shadow!=c)?E.shadow:this.shadow;var P=(E.showLine!=c)?E.showLine:this.showLine;var J=(E.fill!=c)?E.fill:this.fill;var v=(E.fillAndStroke!=c)?E.fillAndStroke:this.fillAndStroke;G.save();if(N.length){if(P){if(J){if(this.fillToZero){var z=new h.jqplot.ColorGenerator(this.negativeSeriesColors);var L=z.get(this.index);if(!this.useNegativeColors){L=E.fillStyle}var C=false;var D=E.fillStyle;if(v){var O=N.slice(0)}if(this.index==0||!this._stack){var H=[];var M=this._yaxis.series_u2p(0);var x=this._xaxis.series_u2p(0);if(this.fillAxis=="y"){H.push([N[0][0],M]);for(var K=0;K<N.length-1;K++){H.push(N[K]);if(this._plotData[K][1]*this._plotData[K+1][1]<0){if(this._plotData[K][1]<0){C=true;E.fillStyle=L}else{C=false;E.fillStyle=D}var B=N[K][0]+(N[K+1][0]-N[K][0])*(M-N[K][1])/(N[K+1][1]-N[K][1]);H.push([B,M]);if(y){this.renderer.shadowRenderer.draw(G,H,E)}this.renderer.shapeRenderer.draw(G,H,E);H=[[B,M]]}}if(this._plotData[N.length-1][1]<0){C=true;E.fillStyle=L}else{C=false;E.fillStyle=D}H.push(N[N.length-1]);H.push([N[N.length-1][0],M])}if(y){this.renderer.shadowRenderer.draw(G,H,E)}this.renderer.shapeRenderer.draw(G,H,E)}else{var F=this._prevGridData;for(var K=F.length;K>0;K--){N.push(F[K-1])}if(y){this.renderer.shadowRenderer.draw(G,N,E)}this.renderer.shapeRenderer.draw(G,N,E)}}else{if(v){var O=N.slice(0)}if(this.index==0||!this._stack){var A=G.canvas.height;N.unshift([N[0][0],A]);len=N.length;N.push([N[len-1][0],A])}else{var F=this._prevGridData;for(var K=F.length;K>0;K--){N.push(F[K-1])}}if(y){this.renderer.shadowRenderer.draw(G,N,E)}this.renderer.shapeRenderer.draw(G,N,E)}if(v){var I=h.extend(true,{},E,{fill:false,closePath:false});this.renderer.shapeRenderer.draw(G,O,I);if(this.markerRenderer.show){for(K=0;K<O.length;K++){this.markerRenderer.draw(O[K][0],O[K][1],G,E.markerOptions)}}}}else{if(y){this.renderer.shadowRenderer.draw(G,N,E)}this.renderer.shapeRenderer.draw(G,N,E)}}if(this.markerRenderer.show&&!J){for(K=0;K<N.length;K++){this.markerRenderer.draw(N[K][0],N[K][1],G,E.markerOptions)}}}G.restore()};h.jqplot.LineRenderer.prototype.drawShadow=function(v,x,w){};h.jqplot.LinearAxisRenderer=function(){};h.jqplot.LinearAxisRenderer.prototype.init=function(x){h.extend(true,this,x);var v=this._dataBounds;for(var y=0;y<this._series.length;y++){var z=this._series[y];var A=z._plotData;for(var w=0;w<A.length;w++){if(this.name=="xaxis"||this.name=="x2axis"){if(A[w][0]<v.min||v.min==null){v.min=A[w][0]}if(A[w][0]>v.max||v.max==null){v.max=A[w][0]}}else{if(A[w][1]<v.min||v.min==null){v.min=A[w][1]}if(A[w][1]>v.max||v.max==null){v.max=A[w][1]}}}}};h.jqplot.LinearAxisRenderer.prototype.draw=function(v){if(this.show){this.renderer.createTicks.call(this);var B=0;var w;this._elem=h('<div class="jqplot-axis jqplot-'+this.name+'" style="position:absolute;"></div>');if(this.name=="xaxis"||this.name=="x2axis"){this._elem.width(this._plotDimensions.width)}else{this._elem.height(this._plotDimensions.height)}this.labelOptions.axis=this.name;this._label=new this.labelRenderer(this.labelOptions);if(this._label.show){var A=this._label.draw(v);A.appendTo(this._elem)}if(this.showTicks){var z=this._ticks;for(var y=0;y<z.length;y++){var x=z[y];if(x.showLabel&&(!x.isMinorTick||this.showMinorTicks)){var A=x.draw(v);A.appendTo(this._elem)}}}}return this._elem};h.jqplot.LinearAxisRenderer.prototype.reset=function(){this.min=this._min;this.max=this._max;this.tickInterval=this._tickInterval;this.numberTicks=this._numberTicks};h.jqplot.LinearAxisRenderer.prototype.set=function(){var D=0;var y;var x=0;var C=0;var v=(this._label==null)?false:this._label.show;if(this.show&&this.showTicks){var B=this._ticks;for(var A=0;A<B.length;A++){var z=B[A];if(z.showLabel&&(!z.isMinorTick||this.showMinorTicks)){if(this.name=="xaxis"||this.name=="x2axis"){y=z._elem.outerHeight(true)}else{y=z._elem.outerWidth(true)}if(y>D){D=y}}}if(v){x=this._label._elem.outerWidth(true);C=this._label._elem.outerHeight(true)}if(this.name=="xaxis"){D=D+C;this._elem.css({height:D+"px",left:"0px",bottom:"0px"})}else{if(this.name=="x2axis"){D=D+C;this._elem.css({height:D+"px",left:"0px",top:"0px"})}else{if(this.name=="yaxis"){D=D+x;this._elem.css({width:D+"px",left:"0px",top:"0px"});if(v&&this._label.constructor==h.jqplot.AxisLabelRenderer){this._label._elem.css("width",x+"px")}}else{D=D+x;this._elem.css({width:D+"px",right:"0px",top:"0px"});if(v&&this._label.constructor==h.jqplot.AxisLabelRenderer){this._label._elem.css("width",x+"px")}}}}}};h.jqplot.LinearAxisRenderer.prototype.createTicks=function(){var ab=this._ticks;var X=this.ticks;var ac=this.name;var aa=this._dataBounds;var S,Y;var P,T;var y,x;var v,U;if(X.length){for(U=0;U<X.length;U++){var D=X[U];var G=new this.tickRenderer(this.tickOptions);if(D.constructor==Array){G.value=D[0];G.label=D[1];if(!this.showTicks){G.showLabel=false;G.showMark=false}else{if(!this.showTickMarks){G.showMark=false}}G.setTick(D[0],this.name);this._ticks.push(G)}else{G.value=D;if(!this.showTicks){G.showLabel=false;G.showMark=false}else{if(!this.showTickMarks){G.showMark=false}}G.setTick(D,this.name);this._ticks.push(G)}}this.numberTicks=X.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{if(ac=="xaxis"||ac=="x2axis"){S=this._plotDimensions.width}else{S=this._plotDimensions.height}if(!this.autoscale&&this.min!=null&&this.max!=null&&this.numberTicks!=null){this.tickInterval=null}P=((this.min!=null)?this.min:aa.min);T=((this.max!=null)?this.max:aa.max);if(P==T){var E=0.05;if(P>0){E=Math.max(Math.log(P)/Math.LN10,0.05)}P-=E;T+=E}var K=T-P;var O,R;var W;if(this.autoscale&&this.min==null&&this.max==null){var J,z,L;var F=false;var N=false;var w={min:null,max:null,average:null,stddev:null};for(var U=0;U<this._series.length;U++){var I=this._series[U];var B=(I.fillAxis=="x")?I._xaxis.name:I._yaxis.name;if(this.name==B){var H=I._plotValues[I.fillAxis];var A=H[0];var C=H[0];for(var Q=1;Q<H.length;Q++){if(H[Q]<A){A=H[Q]}else{if(H[Q]>C){C=H[Q]}}}var M=(C-A)/C;if(I.renderer.constructor==h.jqplot.BarRenderer){if(A>=0&&(I.fillToZero||M>0.1)){F=true}else{F=false;if(I.fill&&I.fillToZero&&A<0&&C>0){N=true}else{N=false}}}else{if(I.fill){if(A>=0&&(I.fillToZero||M>0.1)){F=true}else{if(A<0&&C>0&&I.fillToZero){F=false;N=true}else{F=false;N=false}}}else{if(A<0){F=false}}}}}if(F){this.numberTicks=2+Math.ceil((S-(this.tickSpacing-1))/this.tickSpacing);this.min=0;z=T/(this.numberTicks-1);W=Math.pow(10,Math.abs(Math.floor(Math.log(z)/Math.LN10)));if(z/W==parseInt(z/W,10)){z+=W}this.tickInterval=Math.ceil(z/W)*W;this.max=this.tickInterval*(this.numberTicks-1)}else{if(N){this.numberTicks=2+Math.ceil((S-(this.tickSpacing-1))/this.tickSpacing);var V=Math.ceil(Math.abs(P)/K*(this.numberTicks-1));var Z=this.numberTicks-1-V;z=Math.max(Math.abs(P/V),Math.abs(T/Z));W=Math.pow(10,Math.abs(Math.floor(Math.log(z)/Math.LN10)));this.tickInterval=Math.ceil(z/W)*W;this.max=this.tickInterval*Z;this.min=-this.tickInterval*V}else{if(this.numberTicks==null){if(this.tickInterval){this.numberTicks=3+Math.ceil(K/this.tickInterval)}else{this.numberTicks=2+Math.ceil((S-(this.tickSpacing-1))/this.tickSpacing)}}if(this.tickInterval==null){z=K/(this.numberTicks-1);if(z<1){W=Math.pow(10,Math.abs(Math.floor(Math.log(z)/Math.LN10)))}else{W=1}this.tickInterval=Math.ceil(z*W*this.pad)/W}else{W=1/this.tickInterval}J=this.tickInterval*(this.numberTicks-1);L=(J-K)/2;if(this.min==null){this.min=Math.floor(W*(P-L))/W}if(this.max==null){this.max=this.min+J}}}}else{O=(this.min!=null)?this.min:P-K*(this.padMin-1);R=(this.max!=null)?this.max:T+K*(this.padMax-1);this.min=O;this.max=R;K=this.max-this.min;if(this.numberTicks==null){if(this.tickInterval!=null){this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1;this.max=this.min+this.tickInterval*(this.numberTicks-1)}else{if(S>100){this.numberTicks=parseInt(3+(S-100)/75,10)}else{this.numberTicks=2}}}if(this.tickInterval==null){this.tickInterval=K/(this.numberTicks-1)}}for(var U=0;U<this.numberTicks;U++){v=this.min+U*this.tickInterval;var G=new this.tickRenderer(this.tickOptions);if(!this.showTicks){G.showLabel=false;G.showMark=false}else{if(!this.showTickMarks){G.showMark=false}}G.setTick(v,this.name);this._ticks.push(G)}}};h.jqplot.LinearAxisRenderer.prototype.pack=function(F,A){var I=this._ticks;var G=this.max;var C=this.min;var z=A.max;var M=A.min;var D=(this._label==null)?false:this._label.show;for(var v in F){this._elem.css(v,F[v])}this._offsets=A;var y=z-M;var L=G-C;this.p2u=function(w){return(w-M)*L/y+C};this.u2p=function(w){return(w-C)*y/L+M};if(this.name=="xaxis"||this.name=="x2axis"){this.series_u2p=function(w){return(w-C)*y/L};this.series_p2u=function(w){return w*L/y+C}}else{this.series_u2p=function(w){return(w-G)*y/L};this.series_p2u=function(w){return w*L/y+G}}if(this.show){if(this.name=="xaxis"||this.name=="x2axis"){for(i=0;i<I.length;i++){var K=I[i];if(K.show&&K.showLabel){var B;if(K.constructor==h.jqplot.CanvasAxisTickRenderer&&K.angle){var J=(this.name=="xaxis")?1:-1;switch(K.labelPosition){case"auto":if(J*K.angle<0){B=-K.getWidth()+K._textRenderer.height*Math.sin(-K._textRenderer.angle)/2}else{B=-K._textRenderer.height*Math.sin(K._textRenderer.angle)/2}break;case"end":B=-K.getWidth()+K._textRenderer.height*Math.sin(-K._textRenderer.angle)/2;break;case"start":B=-K._textRenderer.height*Math.sin(K._textRenderer.angle)/2;break;case"middle":B=-K.getWidth()/2+K._textRenderer.height*Math.sin(-K._textRenderer.angle)/2;break;default:B=-K.getWidth()/2+K._textRenderer.height*Math.sin(-K._textRenderer.angle)/2;break}}else{B=-K.getWidth()/2}var x=this.u2p(K.value)+B+"px";K._elem.css("left",x);K.pack()}}if(D){var H=this._label._elem.outerWidth(true);this._label._elem.css("left",M+y/2-H/2+"px");if(this.name=="xaxis"){this._label._elem.css("bottom","0px")}else{this._label._elem.css("top","0px")}this._label.pack()}}else{for(i=0;i<I.length;i++){var K=I[i];if(K.show&&K.showLabel){var B;if(K.constructor==h.jqplot.CanvasAxisTickRenderer&&K.angle){var J=(this.name=="yaxis")?1:-1;switch(K.labelPosition){case"auto":case"end":if(J*K.angle<0){B=-K._textRenderer.height*Math.cos(-K._textRenderer.angle)/2}else{B=-K.getHeight()+K._textRenderer.height*Math.cos(K._textRenderer.angle)/2}break;case"start":if(K.angle>0){B=-K._textRenderer.height*Math.cos(-K._textRenderer.angle)/2}else{B=-K.getHeight()+K._textRenderer.height*Math.cos(K._textRenderer.angle)/2}break;case"middle":B=-K.getHeight()/2;break;default:B=-K.getHeight()/2;break}}else{B=-K.getHeight()/2}var x=this.u2p(K.value)+B+"px";K._elem.css("top",x);K.pack()}}if(D){var E=this._label._elem.outerHeight(true);this._label._elem.css("top",z-y/2-E/2+"px");if(this.name=="yaxis"){this._label._elem.css("left","0px")}else{this._label._elem.css("right","0px")}this._label.pack()}}}};h.jqplot.MarkerRenderer=function(v){this.show=true;this.style="filledCircle";this.lineWidth=2;this.size=9;this.color="#666666";this.shadow=true;this.shadowAngle=45;this.shadowOffset=1;this.shadowDepth=3;this.shadowAlpha="0.07";this.shadowRenderer=new h.jqplot.ShadowRenderer();this.shapeRenderer=new h.jqplot.ShapeRenderer();h.extend(true,this,v)};h.jqplot.MarkerRenderer.prototype.init=function(v){h.extend(true,this,v);var x={angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:true};if(this.style.indexOf("filled")!=-1){x.fill=true}if(this.style.indexOf("ircle")!=-1){x.isarc=true;x.closePath=false}this.shadowRenderer.init(x);var w={fill:false,isarc:false,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:true};if(this.style.indexOf("filled")!=-1){w.fill=true}if(this.style.indexOf("ircle")!=-1){w.isarc=true;w.closePath=false}this.shapeRenderer.init(w)};h.jqplot.MarkerRenderer.prototype.drawDiamond=function(z,w,C,B,E){var v=1.2;var F=this.size/2/v;var D=this.size/2*v;var A=[[z-F,w],[z,w+D],[z+F,w],[z,w-D]];if(this.shadow){this.shadowRenderer.draw(C,A)}this.shapeRenderer.draw(C,A,E);C.restore()};h.jqplot.MarkerRenderer.prototype.drawPlus=function(A,z,D,C,G){var w=1;var H=this.size/2*w;var E=this.size/2*w;var F=[[A,z-E],[A,z+E]];var B=[[A+H,z],[A-H,z]];var v=h.extend(true,{},this.options,{closePath:false});if(this.shadow){this.shadowRenderer.draw(D,F,{closePath:false});this.shadowRenderer.draw(D,B,{closePath:false})}this.shapeRenderer.draw(D,F,v);this.shapeRenderer.draw(D,B,v);D.restore()};h.jqplot.MarkerRenderer.prototype.drawX=function(A,z,D,C,G){var w=1;var H=this.size/2*w;var E=this.size/2*w;var v=h.extend(true,{},this.options,{closePath:false});var F=[[A-H,z-E],[A+H,z+E]];var B=[[A-H,z+E],[A+H,z-E]];if(this.shadow){this.shadowRenderer.draw(D,F,{closePath:false});this.shadowRenderer.draw(D,B,{closePath:false})}this.shapeRenderer.draw(D,F,v);this.shapeRenderer.draw(D,B,v);D.restore()};h.jqplot.MarkerRenderer.prototype.drawDash=function(z,w,C,B,E){var v=1;var F=this.size/2*v;var D=this.size/2*v;var A=[[z-F,w],[z+F,w]];if(this.shadow){this.shadowRenderer.draw(C,A)}this.shapeRenderer.draw(C,A,E);C.restore()};h.jqplot.MarkerRenderer.prototype.drawSquare=function(z,w,C,B,E){var v=1;var F=this.size/2/v;var D=this.size/2*v;var A=[[z-F,w-D],[z-F,w+D],[z+F,w+D],[z+F,w-D]];if(this.shadow){this.shadowRenderer.draw(C,A)}this.shapeRenderer.draw(C,A,E);C.restore()};h.jqplot.MarkerRenderer.prototype.drawCircle=function(w,E,A,D,B){var v=this.size/2;var z=2*Math.PI;var C=[w,E,v,0,z,true];if(this.shadow){this.shadowRenderer.draw(A,C)}this.shapeRenderer.draw(A,C,B);A.restore()};h.jqplot.MarkerRenderer.prototype.draw=function(v,A,w,z){z=z||{};switch(this.style){case"diamond":this.drawDiamond(v,A,w,false,z);break;case"filledDiamond":this.drawDiamond(v,A,w,true,z);break;case"circle":this.drawCircle(v,A,w,false,z);break;case"filledCircle":this.drawCircle(v,A,w,true,z);break;case"square":this.drawSquare(v,A,w,false,z);break;case"filledSquare":this.drawSquare(v,A,w,true,z);break;case"x":this.drawX(v,A,w,true,z);break;case"plus":this.drawPlus(v,A,w,true,z);break;case"dash":this.drawDash(v,A,w,true,z);break;default:this.drawDiamond(v,A,w,false,z);break}};h.jqplot.ShadowRenderer=function(v){this.angle=45;this.offset=1;this.alpha=0.07;this.lineWidth=1.5;this.lineJoin="miter";this.lineCap="round";this.closePath=false;this.fill=false;this.depth=3;this.isarc=false;h.extend(true,this,v)};h.jqplot.ShadowRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.ShadowRenderer.prototype.draw=function(E,C,F){E.save();var v=(F!=null)?F:{};var D=(v.fill!=null)?v.fill:this.fill;var B=(v.closePath!=null)?v.closePath:this.closePath;var y=(v.offset!=null)?v.offset:this.offset;var w=(v.alpha!=null)?v.alpha:this.alpha;var A=(v.depth!=null)?v.depth:this.depth;E.lineWidth=(v.lineWidth!=null)?v.lineWidth:this.lineWidth;E.lineJoin=(v.lineJoin!=null)?v.lineJoin:this.lineJoin;E.lineCap=(v.lineCap!=null)?v.lineCap:this.lineCap;E.strokeStyle="rgba(0,0,0,"+w+")";E.fillStyle="rgba(0,0,0,"+w+")";for(var x=0;x<A;x++){E.translate(Math.cos(this.angle*Math.PI/180)*y,Math.sin(this.angle*Math.PI/180)*y);E.beginPath();if(this.isarc){E.arc(C[0],C[1],C[2],C[3],C[4],true)}else{E.moveTo(C[0][0],C[0][1]);for(var z=1;z<C.length;z++){E.lineTo(C[z][0],C[z][1])}}if(B){E.closePath()}if(D){E.fill()}else{E.stroke()}}E.restore()};h.jqplot.ShapeRenderer=function(v){this.lineWidth=1.5;this.lineJoin="miter";this.lineCap="round";this.closePath=false;this.fill=false;this.isarc=false;this.fillRect=false;this.strokeRect=false;this.clearRect=false;this.strokeStyle="#999999";this.fillStyle="#999999";h.extend(true,this,v)};h.jqplot.ShapeRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.ShapeRenderer.prototype.draw=function(D,B,F){D.save();var v=(F!=null)?F:{};var C=(v.fill!=null)?v.fill:this.fill;var z=(v.closePath!=null)?v.closePath:this.closePath;var A=(v.fillRect!=null)?v.fillRect:this.fillRect;var x=(v.strokeRect!=null)?v.strokeRect:this.strokeRect;var w=(v.clearRect!=null)?v.clearRect:this.clearRect;var E=(v.isarc!=null)?v.isarc:this.isarc;D.lineWidth=v.lineWidth||this.lineWidth;D.lineJoin=v.lineJoing||this.lineJoin;D.lineCap=v.lineCap||this.lineCap;D.strokeStyle=(v.strokeStyle||v.color)||this.strokeStyle;D.fillStyle=v.fillStyle||this.fillStyle;D.beginPath();if(E){D.arc(B[0],B[1],B[2],B[3],B[4],true);if(z){D.closePath()}if(C){D.fill()}else{D.stroke()}D.restore();return}else{if(w){D.clearRect(B[0],B[1],B[2],B[3]);D.restore();return}else{if(A||x){if(A){D.fillRect(B[0],B[1],B[2],B[3])}if(x){D.strokeRect(B[0],B[1],B[2],B[3]);D.restore();return}}else{D.moveTo(B[0][0],B[0][1]);for(var y=1;y<B.length;y++){D.lineTo(B[y][0],B[y][1])}if(z){D.closePath()}if(C){D.fill()}else{D.stroke()}}}}D.restore()};h.jqplot.TableLegendRenderer=function(){};h.jqplot.TableLegendRenderer.prototype.init=function(v){h.extend(true,this,v)};h.jqplot.TableLegendRenderer.prototype.addrow=function(x,w,A){var v=(A)?this.rowSpacing:"0";var z=h('<tr class="jqplot-table-legend"></tr>').appendTo(this._elem);h('<td class="jqplot-table-legend" style="text-align:center;padding-top:'+v+';"><div><div class="jqplot-table-legend-swatch" style="border-color:'+w+';"></div></div></td>').appendTo(z);var y=h('<td class="jqplot-table-legend" style="padding-top:'+v+';"></td>');y.appendTo(z);if(this.escapeHtml){y.text(x)}else{y.html(x)}};h.jqplot.TableLegendRenderer.prototype.draw=function(){var B=this;if(this.show){var z=this._series;var D="position:absolute;";D+=(this.background)?"background:"+this.background+";":"";D+=(this.border)?"border:"+this.border+";":"";D+=(this.fontSize)?"font-size:"+this.fontSize+";":"";D+=(this.fontFamily)?"font-family:"+this.fontFamily+";":"";D+=(this.textColor)?"color:"+this.textColor+";":"";this._elem=h('<table class="jqplot-table-legend" style="'+D+'"></table>');var v=false;for(var A=0;A<z.length;A++){s=z[A];if(s.show&&s.showLabel){var y=s.label.toString();if(y){var w=s.color;if(s._stack&&!s.fill){w=""}this.renderer.addrow.call(this,y,w,v);v=true}for(var x=0;x<h.jqplot.addLegendRowHooks.length;x++){var C=h.jqplot.addLegendRowHooks[x].call(this,s);if(C){this.renderer.addrow.call(this,C.label,C.color,v);v=true}}}}}return this._elem};h.jqplot.TableLegendRenderer.prototype.pack=function(y){if(this.show){var x={_top:y.top,_left:y.left,_right:y.right,_bottom:this._plotDimensions.height-y.bottom};switch(this.location){case"nw":var w=x._left+this.xoffset;var v=x._top+this.yoffset;this._elem.css("left",w);this._elem.css("top",v);break;case"n":var w=(y.left+(this._plotDimensions.width-y.right))/2-this.getWidth()/2;var v=x._top+this.yoffset;this._elem.css("left",w);this._elem.css("top",v);break;case"ne":var w=y.right+this.xoffset;var v=x._top+this.yoffset;this._elem.css({right:w,top:v});break;case"e":var w=y.right+this.xoffset;var v=(y.top+(this._plotDimensions.height-y.bottom))/2-this.getHeight()/2;this._elem.css({right:w,top:v});break;case"se":var w=y.right+this.xoffset;var v=y.bottom+this.yoffset;this._elem.css({right:w,bottom:v});break;case"s":var w=(y.left+(this._plotDimensions.width-y.right))/2-this.getWidth()/2;var v=y.bottom+this.yoffset;this._elem.css({left:w,bottom:v});break;case"sw":var w=x._left+this.xoffset;var v=y.bottom+this.yoffset;this._elem.css({left:w,bottom:v});break;case"w":var w=x._left+this.xoffset;var v=(y.top+(this._plotDimensions.height-y.bottom))/2-this.getHeight()/2;this._elem.css({left:w,top:v});break;default:var w=x._right-this.xoffset;var v=x._bottom+this.yoffset;this._elem.css({right:w,bottom:v});break}}};h.jqplot.sprintf=function(){function A(G,C,D,F){var E=(G.length>=C)?"":Array(1+C-G.length>>>0).join(D);return F?G+E:E+G}function x(H,G,J,E,F,D){var I=E-H.length;if(I>0){var C=" ";if(D){C=" "}if(J||!F){H=A(H,E,C,J)}else{H=H.slice(0,G.length)+A("",I,"0",true)+H.slice(G.length)}}return H}function B(K,D,I,E,C,H,J,G){var F=K>>>0;I=I&&F&&{"2":"0b","8":"0","16":"0x"}[D]||"";K=I+A(F.toString(D),H||0,"0",false);return x(K,I,E,C,J,G)}function v(G,H,E,C,F,D){if(C!=null){G=G.slice(0,C)}return x(G,"",H,E,F,D)}var w=arguments,y=0,z=w[y++];return z.replace(h.jqplot.sprintf.regex,function(V,I,J,M,X,T,G){if(V=="%%"){return"%"}var N=false,K="",L=false,U=false,H=false;for(var S=0;J&&S<J.length;S++){switch(J.charAt(S)){case" ":K=" ";break;case"+":K="+";break;case"-":N=true;break;case"0":L=true;break;case"#":U=true;break;case"&":H=true;break}}if(!M){M=0}else{if(M=="*"){M=+w[y++]}else{if(M.charAt(0)=="*"){M=+w[M.slice(1,-1)]}else{M=+M}}}if(M<0){M=-M;N=true}if(!isFinite(M)){throw new Error("$.jqplot.sprintf: (minimum-)width must be finite")}if(!T){T="fFeE".indexOf(G)>-1?6:(G=="d")?0:void (0)}else{if(T=="*"){T=+w[y++]}else{if(T.charAt(0)=="*"){T=+w[T.slice(1,-1)]}else{T=+T}}}var P=I?w[I.slice(0,-1)]:w[y++];switch(G){case"s":if(P==null){return""}return v(String(P),N,M,T,L,H);case"c":return v(String.fromCharCode(+P),N,M,T,L,H);case"b":return B(P,2,U,N,M,T,L,H);case"o":return B(P,8,U,N,M,T,L,H);case"x":return B(P,16,U,N,M,T,L,H);case"X":return B(P,16,U,N,M,T,L,H).toUpperCase();case"u":return B(P,10,U,N,M,T,L,H);case"i":case"d":var E=parseInt(+P,10);if(isNaN(E)){return""}var R=E<0?"-":K;P=R+A(String(Math.abs(E)),T,"0",false);return x(P,R,N,M,L,H);case"e":case"E":case"f":case"F":case"g":case"G":var E=+P;if(isNaN(E)){return""}var R=E<0?"-":K;var F=["toExponential","toFixed","toPrecision"]["efg".indexOf(G.toLowerCase())];var W=["toString","toUpperCase"]["eEfFgG".indexOf(G)%2];P=R+Math.abs(E)[F](T);return x(P,R,N,M,L,H)[W]();case"p":case"P":var E=+P;if(isNaN(E)){return""}var R=E<0?"-":K;var O=String(Number(Math.abs(E)).toExponential()).split(/e|E/);var D=(O[0].indexOf(".")!=-1)?O[0].length-1:O[0].length;var Q=(O[1]<0)?-O[1]-1:0;if(Math.abs(E)<1){if(D+Q<=T){P=R+Math.abs(E).toPrecision(D)}else{if(D<=T-1){P=R+Math.abs(E).toExponential(D-1)}else{P=R+Math.abs(E).toExponential(T-1)}}}else{var C=(D<=T)?D:T;P=R+Math.abs(E).toPrecision(C)}var W=["toString","toUpperCase"]["pP".indexOf(G)%2];return x(P,R,N,M,L,H)[W]();case"n":return"";default:return V}})};h.jqplot.sprintf.regex=/%%|%(\d+\$)?([-+#0& ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g})(jQuery);/**
|
16 |
+
* Copyright (c) 2009 Chris Leonello
|
17 |
+
* jqPlot is currently available for use in all personal or commercial projects
|
18 |
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
19 |
+
* choose the license that best suits your project and use it accordingly.
|
20 |
+
*
|
21 |
+
* Although not required, the author would appreciate an email letting him
|
22 |
+
* know of any substantial use of jqPlot. You can reach the author at:
|
23 |
+
* chris dot leonello at gmail dot com or see http://www.jqplot.com/info.php .
|
24 |
+
*
|
25 |
+
* If you are feeling kind and generous, consider supporting the project by
|
26 |
+
* making a donation at: http://www.jqplot.com/donate.php .
|
27 |
+
*/
|
28 |
+
(function(f){f.jqplot.Trendline=function(){this.show=f.jqplot.config.enablePlugins;this.color="#666666";this.renderer=new f.jqplot.LineRenderer();this.rendererOptions={marker:{show:false}};this.label="";this.type="linear";this.shadow=true;this.markerRenderer={show:false};this.lineWidth=1.5;this.shadowAngle=45;this.shadowOffset=1;this.shadowAlpha=0.07;this.shadowDepth=3};f.jqplot.postParseSeriesOptionsHooks.push(e);f.jqplot.postDrawSeriesHooks.push(g);f.jqplot.addLegendRowHooks.push(a);function a(k){var i=k.trendline.label.toString();var j=null;if(this.renderer.constructor!=f.jqplot.PieRenderer&&k.trendline.show&&i){j={label:i,color:k.trendline.color}}return j}function e(j,i){if(this.renderer.constructor!=f.jqplot.PieRenderer){this.trendline=new f.jqplot.Trendline();i=i||{};f.extend(true,this.trendline,{color:this.color},j.trendline,i.trendline);this.trendline.renderer.init.call(this.trendline,null)}}function g(m,i){i=f.extend(true,{},this.trendline,i);if(i.show&&this.renderer.constructor!=f.jqplot.PieRenderer){var k;var l=i.data||this.data;k=c(l,this.trendline.type);var j=i.gridData||this.renderer.makeGridData.call(this,k.data);this.trendline.renderer.draw.call(this.trendline,m,j,{showLine:true,shadow:this.trendline.shadow})}}function b(w,v,n){var u=(n==null)?"linear":n;var s=w.length;var t;var z;var o=0;var m=0;var r=0;var q=0;var l=0;var j=[];var k=[];if(u=="linear"){k=w;j=v}else{if(u=="exp"||u=="exponential"){for(var p=0;p<v.length;p++){if(v[p]<=0){s--}else{k.push(w[p]);j.push(Math.log(v[p]))}}}}for(var p=0;p<s;p++){o=o+k[p];m=m+j[p];q=q+k[p]*j[p];r=r+k[p]*k[p];l=l+j[p]*j[p]}t=(s*q-o*m)/(s*r-o*o);z=(m-t*o)/s;return[t,z]}function h(k,j){var i;i=b(k,j,"linear");return[i[0],i[1]]}function d(o,m){var k;var i=o;var n=m;k=b(i,n,"exp");var l=Math.exp(k[0]);var j=Math.exp(k[1]);return[l,j]}function c(l,j){var p=(j==null)?"linear":j;var n;var o;var r=[];var q=[];var m=[];for(k=0;k<l.length;k++){if(l[k]!=null&&l[k][0]!=null&&l[k][1]!=null){r.push(l[k][0]);q.push(l[k][1])}}if(p=="linear"){n=h(r,q);for(var k=0;k<r.length;k++){o=n[0]*r[k]+n[1];m.push([r[k],o])}}else{if(p=="exp"||p=="exponential"){n=d(r,q);for(var k=0;k<r.length;k++){o=n[1]*Math.pow(n[0],r[k]);m.push([r[k],o])}}}return{data:m,slope:n[0],intercept:n[1]}}})(jQuery);/**
|
29 |
+
* Copyright (c) 2009 Chris Leonello
|
30 |
+
* jqPlot is currently available for use in all personal or commercial projects
|
31 |
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
32 |
+
* choose the license that best suits your project and use it accordingly.
|
33 |
+
*
|
34 |
+
* Although not required, the author would appreciate an email letting him
|
35 |
+
* know of any substantial use of jqPlot. You can reach the author at:
|
36 |
+
* chris dot leonello at gmail dot com or see http://www.jqplot.com/info.php .
|
37 |
+
*
|
38 |
+
* If you are feeling kind and generous, consider supporting the project by
|
39 |
+
* making a donation at: http://www.jqplot.com/donate.php .
|
40 |
+
*/
|
41 |
+
(function(b){b.jqplot.PieRenderer=function(){b.jqplot.LineRenderer.call(this)};b.jqplot.PieRenderer.prototype=new b.jqplot.LineRenderer();b.jqplot.PieRenderer.prototype.constructor=b.jqplot.PieRenderer;b.jqplot.PieRenderer.prototype.init=function(d){this.diameter=null;this.padding=20;this.sliceMargin=0;this.fill=true;this.shadowOffset=2;this.shadowAlpha=0.07;this.shadowDepth=5;this.tickRenderer=b.jqplot.PieTickRenderer;b.extend(true,this,d);if(this.diameter!=null){this.diameter=this.diameter-this.sliceMargin}this._diameter=null};b.jqplot.PieRenderer.prototype.setGridData=function(d){};b.jqplot.PieRenderer.prototype.makeGridData=function(g,h){var d=[];var j=[];for(var f=0;f<g.length;f++){d.push(g[f][1]);j.push([g[f][0]]);if(f>0){d[f]+=d[f-1]}}var e=Math.PI*2/d[d.length-1];for(var f=0;f<d.length;f++){j[f][1]=d[f]*e}return j};b.jqplot.PieRenderer.prototype.drawSlice=function(n,l,k,f,h){var d=this._diameter/2;var m=this.fill;var j=this.lineWidth;n.save();n.translate(this.sliceMargin*Math.cos((l+k)/2),this.sliceMargin*Math.sin((l+k)/2));if(h){for(var g=0;g<this.shadowDepth;g++){n.save();n.translate(this.shadowOffset*Math.cos(this.shadowAngle/180*Math.PI),this.shadowOffset*Math.sin(this.shadowAngle/180*Math.PI));e()}}else{e()}function e(){if(k>6.282){k=6.282;if(l>k){l=6.281}}n.beginPath();n.moveTo(0,0);n.fillStyle=f;n.strokeStyle=f;n.lineWidth=j;n.arc(0,0,d,l,k,false);n.closePath();if(m){n.fill()}else{n.stroke()}}if(h){for(var g=0;g<this.shadowDepth;g++){n.restore()}}n.restore()};b.jqplot.PieRenderer.prototype.draw=function(v,B,k){var y;var s=(k!=undefined)?k:{};var g=0;var f=0;var l=1;var e=new this.colorGenerator(this.seriesColors);if(k.legendInfo){var q=k.legendInfo;switch(q.location){case"nw":g=q.width+q.xoffset;break;case"w":g=q.width+q.xoffset;break;case"sw":g=q.width+q.xoffset;break;case"ne":g=q.width+q.xoffset;l=-1;break;case"e":g=q.width+q.xoffset;l=-1;break;case"se":g=q.width+q.xoffset;l=-1;break;case"n":f=q.height+q.yoffset;break;case"s":f=q.height+q.yoffset;l=-1;break;default:break}}var n=(s.shadow!=undefined)?s.shadow:this.shadow;var C=(s.showLine!=undefined)?s.showLine:this.showLine;var x=(s.fill!=undefined)?s.fill:this.fill;var j=v.canvas.width;var p=v.canvas.height;var o=j-g-2*this.padding;var z=p-f-2*this.padding;var A=Math.min(o,z);this._diameter=this.diameter||A-this.sliceMargin;var t=this._diameter/2;v.save();v.translate((j-l*g)/2+l*g,(p-l*f)/2+l*f);if(this.shadow){var u="rgba(0,0,0,"+this.shadowAlpha+")";for(var y=0;y<B.length;y++){var m=(y==0)?0:B[y-1][1];this.renderer.drawSlice.call(this,v,m,B[y][1],u,true)}}for(var y=0;y<B.length;y++){var m=(y==0)?0:B[y-1][1];this.renderer.drawSlice.call(this,v,m,B[y][1],e.next())}v.restore()};b.jqplot.PieAxisRenderer=function(){b.jqplot.LinearAxisRenderer.call(this)};b.jqplot.PieAxisRenderer.prototype=new b.jqplot.LinearAxisRenderer();b.jqplot.PieAxisRenderer.prototype.constructor=b.jqplot.PieAxisRenderer;b.jqplot.PieAxisRenderer.prototype.init=function(d){this.tickRenderer=b.jqplot.PieTickRenderer;b.extend(true,this,d);this._dataBounds={min:0,max:100};this.min=0;this.max=100;this.showTicks=false;this.ticks=[];this.showMark=false;this.show=false};b.jqplot.PieLegendRenderer=function(){b.jqplot.TableLegendRenderer.call(this)};b.jqplot.PieLegendRenderer.prototype=new b.jqplot.TableLegendRenderer();b.jqplot.PieLegendRenderer.prototype.constructor=b.jqplot.PieLegendRenderer;b.jqplot.PieLegendRenderer.prototype.draw=function(){var k=this;if(this.show){var f=this._series;var m="position:absolute;";m+=(this.background)?"background:"+this.background+";":"";m+=(this.border)?"border:"+this.border+";":"";m+=(this.fontSize)?"font-size:"+this.fontSize+";":"";m+=(this.fontFamily)?"font-family:"+this.fontFamily+";":"";m+=(this.textColor)?"color:"+this.textColor+";":"";this._elem=b('<table class="jqplot-table-legend" style="'+m+'"></table>');var d=false;var l=f[0];var h=new l.colorGenerator(l.seriesColors);if(l.show){var j=l.data;for(var g=0;g<j.length;g++){var e=j[g][0].toString();if(e){this.renderer.addrow.call(this,e,h.next(),d);d=true}}}}return this._elem};function a(h,g,e){e=e||{};e.axesDefaults=e.axesDefaults||{};e.legend=e.legend||{};e.seriesDefaults=e.seriesDefaults||{};var d=false;if(e.seriesDefaults.renderer==b.jqplot.PieRenderer){d=true}else{if(e.series){for(var f=0;f<e.series.length;f++){if(e.series[f].renderer==b.jqplot.PieRenderer){d=true}}}}if(d){e.axesDefaults.renderer=b.jqplot.PieAxisRenderer;e.legend.renderer=b.jqplot.PieLegendRenderer;e.legend.preDraw=true}}function c(d){for(var e=0;e<this.series.length;e++){this.series[e].seriesColors=this.seriesColors;this.series[e].colorGenerator=this.colorGenerator}}b.jqplot.preInitHooks.push(a);b.jqplot.postParseOptionsHooks.push(c);b.jqplot.PieTickRenderer=function(){b.jqplot.AxisTickRenderer.call(this)};b.jqplot.PieTickRenderer.prototype=new b.jqplot.AxisTickRenderer();b.jqplot.PieTickRenderer.prototype.constructor=b.jqplot.PieTickRenderer})(jQuery);
|
languages/wp-piwik-de_DE.mo
CHANGED
Binary file
|
languages/wp-piwik-de_DE.po
CHANGED
@@ -1,283 +1,328 @@
|
|
1 |
-
# WP-Piwik 0.
|
2 |
-
# Copyright (C)
|
3 |
# This file is distributed under the same license as the WP-Piwik package.
|
4 |
-
#
|
5 |
#
|
|
|
6 |
msgid ""
|
7 |
msgstr ""
|
8 |
-
"Project-Id-Version: 0.
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-piwik\n"
|
10 |
-
"POT-Creation-Date:
|
11 |
-
"PO-Revision-Date:
|
12 |
-
"Last-Translator:
|
13 |
-
"Language-Team:
|
14 |
"MIME-Version: 1.0\n"
|
15 |
-
"Content-Type: text/plain; charset=
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
|
18 |
-
#: dashboard/browsers.php:
|
19 |
msgid "Browser"
|
20 |
msgstr "Browser"
|
21 |
|
|
|
|
|
22 |
msgid "Others"
|
23 |
msgstr "Andere"
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
msgid "Operating System"
|
29 |
-
msgstr "Betriebssystem"
|
30 |
-
|
31 |
-
msgid "Shortcut"
|
32 |
-
msgstr "Verknüpfung"
|
33 |
-
|
34 |
-
msgid "Advertisement"
|
35 |
-
msgstr "Werbung"
|
36 |
-
|
37 |
-
msgid "Looking for premium themes? Visit "
|
38 |
-
msgstr "Suchst Du Premium-Themes? Besuche "
|
39 |
-
|
40 |
-
msgid "Avg"
|
41 |
-
msgstr "Schnitt"
|
42 |
-
|
43 |
-
msgid "Sum"
|
44 |
-
msgstr "Summe"
|
45 |
-
|
46 |
-
msgid "Unique TOTAL"
|
47 |
-
msgstr "Eindeutige Besucher TOTAL"
|
48 |
-
|
49 |
-
#: dashboard/browsers.php:37 dashboard/keywords.php:13
|
50 |
-
#: dashboard/visitors.php:56 dashboard/websites.php:13
|
51 |
msgid "Unique"
|
52 |
msgstr "Unique"
|
53 |
|
54 |
-
#: dashboard/browsers.php:
|
|
|
55 |
msgid "Percent"
|
56 |
msgstr "Prozent"
|
57 |
|
58 |
-
#: dashboard/keywords.php:
|
59 |
msgid "Keywords"
|
60 |
msgstr "Keywords"
|
61 |
|
62 |
-
#: dashboard/keywords.php:
|
63 |
msgid "Keyword"
|
64 |
msgstr "Keyword"
|
65 |
|
66 |
-
#: dashboard/overview.php:
|
67 |
msgid "Overview"
|
68 |
msgstr "Übersicht"
|
69 |
|
70 |
-
#: dashboard/overview.php:
|
71 |
msgid "Visitors"
|
72 |
msgstr "Besucher"
|
73 |
|
74 |
-
#: dashboard/overview.php:
|
75 |
msgid "Unique visitors"
|
76 |
msgstr "Eindeutige Besucher"
|
77 |
|
78 |
-
#: dashboard/overview.php:
|
79 |
msgid "Page views"
|
80 |
-
msgstr "
|
81 |
|
82 |
-
#: dashboard/overview.php:
|
83 |
msgid "Max. page views in one visit"
|
84 |
-
msgstr "Max.
|
85 |
|
86 |
-
#: dashboard/overview.php:
|
87 |
msgid "Total time spent by visitors"
|
88 |
-
msgstr "
|
89 |
|
90 |
-
#: dashboard/overview.php:
|
91 |
msgid "Bounce count"
|
92 |
-
msgstr "
|
93 |
|
94 |
-
#: dashboard/
|
95 |
-
msgid "
|
96 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
-
#: dashboard/visitors.php:
|
99 |
msgid "Visits"
|
100 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
-
#: dashboard/visitors.php:
|
103 |
msgid "Bounced"
|
104 |
msgstr "Absprünge"
|
105 |
|
106 |
-
#: dashboard/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
msgid "Websites"
|
108 |
msgstr "Webseiten"
|
109 |
|
110 |
-
#: dashboard/websites.php:
|
111 |
msgid "Website"
|
112 |
msgstr "Webseite"
|
113 |
|
114 |
-
#: wp-piwik.php:
|
115 |
msgid "Piwik Statistics"
|
116 |
msgstr "Piwik Statistiken"
|
117 |
|
118 |
-
#. #-#-#-#-# plugin.pot (
|
119 |
-
#. Plugin Name of
|
120 |
-
#: wp-piwik.php:
|
121 |
msgid "WP-Piwik"
|
122 |
msgstr "WP-Piwik"
|
123 |
|
124 |
-
#: wp-piwik.php:
|
125 |
-
msgid "
|
126 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
-
#: wp-piwik.php:
|
129 |
msgid "Settings"
|
130 |
msgstr "Einstellungen"
|
131 |
|
132 |
-
#: wp-piwik.php:
|
133 |
-
msgid "
|
134 |
-
msgstr "
|
135 |
|
136 |
-
#: wp-piwik.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
msgid "Account settings"
|
138 |
-
msgstr "Account-
|
139 |
|
140 |
-
#: wp-piwik.php:
|
141 |
msgid "Piwik URL"
|
142 |
msgstr "Piwik URL"
|
143 |
|
144 |
-
#: wp-piwik.php:
|
145 |
msgid "Auth token"
|
146 |
msgstr "Auth token"
|
147 |
|
148 |
-
#: wp-piwik.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
msgid ""
|
150 |
-
"
|
151 |
-
"
|
152 |
-
"
|
153 |
-
"
|
154 |
-
msgstr "
|
155 |
-
|
156 |
-
|
157 |
-
""1234a5cd6789e0a12345b678cd9012ef"."
|
158 |
-
|
159 |
-
#: wp-piwik.php:205 wp-piwik.php:207
|
160 |
msgid "An error occured"
|
161 |
msgstr "Ein Fehler ist aufgetreten"
|
162 |
|
163 |
-
#: wp-piwik.php:
|
164 |
msgid ""
|
165 |
"Please check URL and auth token. You need at least view access to one site."
|
166 |
-
msgstr ""
|
167 |
-
"Bitte überprüfe die URL und den Token. Du benötigst zumindest View-Zugriff auf eine erfasste Seite."
|
168 |
|
169 |
-
#: wp-piwik
|
170 |
msgid "Choose site"
|
171 |
-
msgstr "Seite
|
172 |
|
173 |
-
#: wp-piwik.php:
|
174 |
-
msgid ""
|
175 |
-
"
|
176 |
-
|
177 |
-
|
178 |
-
"
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
-
#: wp-piwik.php:
|
181 |
-
msgid "
|
182 |
-
msgstr "
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
msgid "Tracking filter"
|
185 |
msgstr "Tracking-Filter"
|
186 |
|
187 |
-
|
188 |
-
"Requires enabled "Add script to wp_footer()"-functionality."
|
189 |
-
msgstr "Wähle Nutzer anhand ihrer Nutzerrolle, die <strong>nicht</strong> erfasst "
|
190 |
-
"werden sollen. Die Funktion "Skript zu wp_footer() hinzufügen" muss "
|
191 |
-
"dazu verwendet werden."
|
192 |
-
|
193 |
msgid "Choose users by user role you do <strong>not</strong> want to track."
|
194 |
-
msgstr "Wähle
|
195 |
-
"werden sollen."
|
196 |
|
197 |
-
|
198 |
-
|
|
|
199 |
|
200 |
-
|
201 |
-
|
|
|
202 |
|
203 |
-
|
204 |
-
|
|
|
205 |
|
206 |
-
#: wp-piwik.php:
|
207 |
-
msgid "
|
208 |
-
msgstr "
|
209 |
|
210 |
-
|
211 |
-
|
|
|
212 |
|
213 |
-
|
214 |
-
|
|
|
215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
msgid "WPMU-Piwik Settings"
|
217 |
msgstr "WPMU-Piwik Einstellungen"
|
218 |
|
219 |
-
|
220 |
-
|
221 |
-
"
|
222 |
-
"
|
223 |
-
"
|
|
|
|
|
|
|
|
|
224 |
msgstr "<strong>Wichtiger Hinweis:</strong> Du solltest einen Token mit Adminstrator-Zugang angeben. WPMU-Piwik erstellt "
|
225 |
"für jedes Blog eine eigene Piwik Site, sobald es zum ersten Mal angezeigt wird. Nutzer können nur ihre eigenen "
|
226 |
"Statistiken einsehen, während Site Admins Zugriff auf alle Statistiken haben. Um Konflikte zu vermeiden, solltest Du "
|
227 |
"eine neue Piwik-Installation ohne andere Sites verwenden. Alle verwendeten Themes sollten wp_footer benutzen, da diese "
|
228 |
"Funktion den Piwik JavaScript Code zu jeder Seite hinzufügt."
|
229 |
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
msgid "WP-Piwik uses the Google Chart API to create graphs. To avoid this, just check this box."
|
234 |
-
msgstr "WP-Piwik benutzt das Google Chart API um Graphen zu erzeugen. Möchtest Du dies verhindern, markiere diese Box."
|
235 |
|
236 |
-
|
237 |
-
|
|
|
238 |
|
239 |
-
#. Plugin URI of
|
240 |
-
msgid "http://www.braekling.de/wp-piwik-wpmu-piwik-wordpress"
|
241 |
-
msgstr "http://www.braekling.de/wp-piwik-wpmu-piwik-wordpress"
|
242 |
|
243 |
-
#. Description of
|
244 |
msgid ""
|
245 |
"Adds Piwik stats to your dashboard menu and Piwik code to your wordpress "
|
246 |
"footer."
|
247 |
msgstr "Fügt Piwik-Statistiken zu Deinem Dashboard-Menü hinzu und "
|
248 |
"kann den Piwik-Tracking-Code in den Blog-Footer einfügen."
|
249 |
|
250 |
-
#. Author of
|
251 |
msgid "André Bräkling"
|
252 |
msgstr "André Bräkling"
|
253 |
|
254 |
-
#. Author URI of
|
255 |
msgid "http://www.braekling.de"
|
256 |
msgstr "http://www.braekling.de"
|
257 |
-
|
258 |
-
msgid "last 30 days"
|
259 |
-
msgstr "letzte 30 Tage"
|
260 |
-
|
261 |
-
msgid "today"
|
262 |
-
msgstr "heute"
|
263 |
-
|
264 |
-
msgid "yesterday"
|
265 |
-
msgstr "gestern"
|
266 |
-
|
267 |
-
msgid "No"
|
268 |
-
msgstr "Nein"
|
269 |
-
|
270 |
-
msgid "Yes"
|
271 |
-
msgstr "Ja"
|
272 |
-
|
273 |
-
msgid "Show overview on WordPress dashboard"
|
274 |
-
msgstr "Übersicht auf WordPress Dashboard anzeigen"
|
275 |
-
|
276 |
-
msgid "Show Piwik link in overview"
|
277 |
-
msgstr "Piwik-Link in Übersicht anzeigen"
|
278 |
-
|
279 |
-
msgid "If you add the Piwik javascript code by wp_footer(), WP-Piwik can automatically add a 404-category to track 404-page-visits."
|
280 |
-
msgstr "Wenn Du den Piwik JavaScript-Code per wp_footer() einfügen lässt, kann WP-Piwik automatisch eine 404-Kategorie für Aufrufe von 404-Seiten einfügen."
|
281 |
-
|
282 |
-
msgid "Track 404 pages in own category"
|
283 |
-
msgstr "404-Seiten in eigener Kategorie erfassen"
|
1 |
+
# Translation of the WordPress plugin WP-Piwik 0.8.0 by André Bräkling.
|
2 |
+
# Copyright (C) 2010 André Bräkling
|
3 |
# This file is distributed under the same license as the WP-Piwik package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
#
|
6 |
+
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
+
"Project-Id-Version: WP-Piwik 0.8.0\n"
|
10 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-piwik\n"
|
11 |
+
"POT-Creation-Date: 2010-07-19 18:06+0000\n"
|
12 |
+
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
13 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"MIME-Version: 1.0\n"
|
16 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
17 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
|
19 |
+
#: dashboard/browsers.php:12 dashboard/browsers.php:33
|
20 |
msgid "Browser"
|
21 |
msgstr "Browser"
|
22 |
|
23 |
+
#: dashboard/browsers.php:22 dashboard/pages.php:43 dashboard/screens.php:22
|
24 |
+
#: dashboard/systems.php:22
|
25 |
msgid "Others"
|
26 |
msgstr "Andere"
|
27 |
|
28 |
+
#: dashboard/browsers.php:34 dashboard/keywords.php:17 dashboard/pages.php:22
|
29 |
+
#: dashboard/screens.php:33 dashboard/systems.php:35 dashboard/visitors.php:53
|
30 |
+
#: dashboard/websites.php:19 wp-piwik.php:305
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
msgid "Unique"
|
32 |
msgstr "Unique"
|
33 |
|
34 |
+
#: dashboard/browsers.php:35 dashboard/plugins.php:33 dashboard/screens.php:34
|
35 |
+
#: dashboard/systems.php:36
|
36 |
msgid "Percent"
|
37 |
msgstr "Prozent"
|
38 |
|
39 |
+
#: dashboard/keywords.php:12
|
40 |
msgid "Keywords"
|
41 |
msgstr "Keywords"
|
42 |
|
43 |
+
#: dashboard/keywords.php:17
|
44 |
msgid "Keyword"
|
45 |
msgstr "Keyword"
|
46 |
|
47 |
+
#: dashboard/overview.php:12
|
48 |
msgid "Overview"
|
49 |
msgstr "Übersicht"
|
50 |
|
51 |
+
#: dashboard/overview.php:42 dashboard/visitors.php:24
|
52 |
msgid "Visitors"
|
53 |
msgstr "Besucher"
|
54 |
|
55 |
+
#: dashboard/overview.php:43
|
56 |
msgid "Unique visitors"
|
57 |
msgstr "Eindeutige Besucher"
|
58 |
|
59 |
+
#: dashboard/overview.php:44
|
60 |
msgid "Page views"
|
61 |
+
msgstr "Page views"
|
62 |
|
63 |
+
#: dashboard/overview.php:45
|
64 |
msgid "Max. page views in one visit"
|
65 |
+
msgstr "Max. Seiten/Besuch"
|
66 |
|
67 |
+
#: dashboard/overview.php:46
|
68 |
msgid "Total time spent by visitors"
|
69 |
+
msgstr "Von Besuchern verbrachte Zeit"
|
70 |
|
71 |
+
#: dashboard/overview.php:47
|
72 |
msgid "Bounce count"
|
73 |
+
msgstr "Absprungrate"
|
74 |
|
75 |
+
#: dashboard/overview.php:49 wp-piwik.php:563
|
76 |
+
msgid "Shortcut"
|
77 |
+
msgstr "Link"
|
78 |
+
|
79 |
+
#: dashboard/pages.php:13
|
80 |
+
msgid "Pages"
|
81 |
+
msgstr "Seiten"
|
82 |
+
|
83 |
+
#: dashboard/pages.php:21
|
84 |
+
msgid "Page"
|
85 |
+
msgstr "Seite"
|
86 |
|
87 |
+
#: dashboard/pages.php:23 dashboard/plugins.php:32 dashboard/visitors.php:52
|
88 |
msgid "Visits"
|
89 |
+
msgstr "Besuche"
|
90 |
+
|
91 |
+
#: dashboard/plugins.php:12 dashboard/plugins.php:31
|
92 |
+
msgid "Plugins"
|
93 |
+
msgstr "Plugins"
|
94 |
+
|
95 |
+
#: dashboard/screens.php:12 dashboard/screens.php:32
|
96 |
+
msgid "Resolution"
|
97 |
+
msgstr "Auflösung"
|
98 |
+
|
99 |
+
#: dashboard/systems.php:12 dashboard/systems.php:34
|
100 |
+
msgid "Operating System"
|
101 |
+
msgstr "Betriebssystem"
|
102 |
+
|
103 |
+
#: dashboard/visitors.php:51
|
104 |
+
msgid "Date"
|
105 |
+
msgstr "Datum"
|
106 |
|
107 |
+
#: dashboard/visitors.php:54
|
108 |
msgid "Bounced"
|
109 |
msgstr "Absprünge"
|
110 |
|
111 |
+
#: dashboard/visitors.php:67
|
112 |
+
msgid "Unique TOTAL"
|
113 |
+
msgstr "Unique GESAMT"
|
114 |
+
|
115 |
+
#: dashboard/visitors.php:67
|
116 |
+
msgid "Sum"
|
117 |
+
msgstr "Summe"
|
118 |
+
|
119 |
+
#: dashboard/visitors.php:67
|
120 |
+
msgid "Avg"
|
121 |
+
msgstr "Durchschnitt"
|
122 |
+
|
123 |
+
#: dashboard/websites.php:12
|
124 |
msgid "Websites"
|
125 |
msgstr "Webseiten"
|
126 |
|
127 |
+
#: dashboard/websites.php:18
|
128 |
msgid "Website"
|
129 |
msgstr "Webseite"
|
130 |
|
131 |
+
#: wp-piwik.php:110 wp-piwik.php:365
|
132 |
msgid "Piwik Statistics"
|
133 |
msgstr "Piwik Statistiken"
|
134 |
|
135 |
+
#. #-#-#-#-# plugin.pot (WP-Piwik 0.8.0) #-#-#-#-#
|
136 |
+
#. Plugin Name of the plugin/theme
|
137 |
+
#: wp-piwik.php:111 wp-piwik.php:122 wp-piwik.php:123 wp-piwik.php:146
|
138 |
msgid "WP-Piwik"
|
139 |
msgstr "WP-Piwik"
|
140 |
|
141 |
+
#: wp-piwik.php:130 wp-piwik.php:131
|
142 |
+
msgid "WPMU-Piwik"
|
143 |
+
msgstr "WPMU-Piwik"
|
144 |
+
|
145 |
+
#: wp-piwik.php:142 wp-piwik.php:557
|
146 |
+
msgid "yesterday"
|
147 |
+
msgstr "gestern"
|
148 |
+
|
149 |
+
#: wp-piwik.php:143 wp-piwik.php:558
|
150 |
+
msgid "today"
|
151 |
+
msgstr "heute"
|
152 |
+
|
153 |
+
#: wp-piwik.php:144 wp-piwik.php:559
|
154 |
+
msgid "last 30 days"
|
155 |
+
msgstr "letzten 30 Tage"
|
156 |
|
157 |
+
#: wp-piwik.php:179
|
158 |
msgid "Settings"
|
159 |
msgstr "Einstellungen"
|
160 |
|
161 |
+
#: wp-piwik.php:381
|
162 |
+
msgid "Change"
|
163 |
+
msgstr "Ändern"
|
164 |
|
165 |
+
#: wp-piwik.php:382
|
166 |
+
msgid "Currently shown stats:"
|
167 |
+
msgstr "Derzeit gezeigte Statistiken:"
|
168 |
+
|
169 |
+
#: wp-piwik.php:383
|
170 |
+
msgid "Current shown stats: <strong>Overall</strong>"
|
171 |
+
msgstr "Derzeit gezeigte Statistiken: <strong>Gesamt</strong>"
|
172 |
+
|
173 |
+
#: wp-piwik.php:448
|
174 |
+
msgid "WP-Piwik Settings"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: wp-piwik.php:455 wp-piwik.php:617
|
178 |
msgid "Account settings"
|
179 |
+
msgstr "Account-Einstellungen"
|
180 |
|
181 |
+
#: wp-piwik.php:457 wp-piwik.php:619
|
182 |
msgid "Piwik URL"
|
183 |
msgstr "Piwik URL"
|
184 |
|
185 |
+
#: wp-piwik.php:461 wp-piwik.php:623
|
186 |
msgid "Auth token"
|
187 |
msgstr "Auth token"
|
188 |
|
189 |
+
#: wp-piwik.php:467 wp-piwik.php:628
|
190 |
+
msgid "To enable Piwik statistics, please enter your Piwik"
|
191 |
+
" base URL (like http://mydomain.com/piwik) and your"
|
192 |
+
" personal authentification token. You can get the token"
|
193 |
+
" on the API page inside your Piwik interface. It looks"
|
194 |
+
" like "1234a5cd6789e0a12345b678cd9012ef"."
|
195 |
+
msgstr "Um Piwik Statistiken abrufen zu können, musst Du die URL zu Deiner Piwik-Installation (z.B. http://mydomain.com/piwik) und deinen persönlichen Authentifizierungs-Schüssel (Token) angeben. Du findest den Token auf der API-Seite in Deinem Piwik-Interface. Er sieht z.B. so aus: "1234a5cd6789e0a12345b678cd9012ef"."
|
196 |
+
|
197 |
+
#: wp-piwik.php:477
|
198 |
msgid ""
|
199 |
+
"<strong>Important note:</strong> If you do not host this blog on your own, "
|
200 |
+
"your site admin is able to get your auth token from the database. So he is "
|
201 |
+
"able to access your statistics. You should never use an auth token with more "
|
202 |
+
"than simple view access!"
|
203 |
+
msgstr "<strong>Wichtiger Hinweis:</strong> Wenn Du dieses Blog nicht selber hostest, kann Dein Site Admin Deinen Auth Token aus der Datenbank auslesen. Dadurch kann er auf Deine Statistiken zugreifen. Du solltest niemals einen Auth Token mit mehr als einfachen View-Rechten verwenden! "
|
204 |
+
|
205 |
+
#: wp-piwik.php:485 wp-piwik.php:489
|
|
|
|
|
|
|
206 |
msgid "An error occured"
|
207 |
msgstr "Ein Fehler ist aufgetreten"
|
208 |
|
209 |
+
#: wp-piwik.php:486
|
210 |
msgid ""
|
211 |
"Please check URL and auth token. You need at least view access to one site."
|
212 |
+
msgstr "Bitte überprüfe die URL und den auth token. Du benötigst zumindest View-Zugriff auf eine Seite."
|
|
|
213 |
|
214 |
+
#: wp-piwik.php:492
|
215 |
msgid "Choose site"
|
216 |
+
msgstr "Seite"
|
217 |
|
218 |
+
#: wp-piwik.php:511 wp-piwik.php:547 wp-piwik.php:584 wp-piwik.php:658
|
219 |
+
msgid "Save settings"
|
220 |
+
msgstr "Einstellungen speichern"
|
221 |
+
|
222 |
+
#: wp-piwik.php:515 wp-piwik.php:643
|
223 |
+
msgid "Tracking settings"
|
224 |
+
msgstr "Tracking-Einstellungen"
|
225 |
+
|
226 |
+
#: wp-piwik.php:521
|
227 |
+
msgid "Add script"
|
228 |
+
msgstr "Tracking"
|
229 |
|
230 |
+
#: wp-piwik.php:525
|
231 |
+
msgid "If your template uses wp_footer(), WP-Piwik can automatically add the Piwik javascript code to your blog."
|
232 |
+
msgstr "Wenn Dein Template wp_footer() verwendet, kann WP-Piwik den JavaScript Code automatisch in Dein Blog einfügen."
|
233 |
|
234 |
+
#: wp-piwik.php:528
|
235 |
+
msgid "Track 404"
|
236 |
+
msgstr "404-Tracking"
|
237 |
+
|
238 |
+
#: wp-piwik.php:532
|
239 |
+
msgid "If you add the Piwik javascript code by wp_footer(), WP-Piwik can automatically add a 404-category to track 404-page-visits."
|
240 |
+
msgstr "Wenn Du den Piwik-Code per wp_footer() in Dein Blog einbindest, kann WP-Piwik automatisch eine eigene Kategorie für 404-Seiten hinzufügen."
|
241 |
+
|
242 |
+
#: wp-piwik.php:536 wp-piwik.php:644
|
243 |
msgid "Tracking filter"
|
244 |
msgstr "Tracking-Filter"
|
245 |
|
246 |
+
#: wp-piwik.php:544 wp-piwik.php:651
|
|
|
|
|
|
|
|
|
|
|
247 |
msgid "Choose users by user role you do <strong>not</strong> want to track."
|
248 |
+
msgstr "Wähle diejenigen Nutzerrollen, die Du <strong>nicht</strong> erfassen willst."
|
|
|
249 |
|
250 |
+
#: wp-piwik.php:551
|
251 |
+
msgid "Statistic view settings"
|
252 |
+
msgstr "Statistik-Einstellungen"
|
253 |
|
254 |
+
#: wp-piwik.php:554
|
255 |
+
msgid "Dashboard"
|
256 |
+
msgstr "Dashboard"
|
257 |
|
258 |
+
#: wp-piwik.php:556
|
259 |
+
msgid "No"
|
260 |
+
msgstr "Nein"
|
261 |
|
262 |
+
#: wp-piwik.php:557 wp-piwik.php:558 wp-piwik.php:559
|
263 |
+
msgid "Yes"
|
264 |
+
msgstr "Ja"
|
265 |
|
266 |
+
#: wp-piwik.php:562
|
267 |
+
msgid "Display a dashboard widget to your WordPress dashboard."
|
268 |
+
msgstr "Fügt Deinem WordPress Dashboard ein Widget hinzu."
|
269 |
|
270 |
+
#: wp-piwik.php:567
|
271 |
+
msgid "Display a shortcut to Piwik itself."
|
272 |
+
msgstr "Zeigt einen Shortcut zu Piwik an."
|
273 |
|
274 |
+
#: wp-piwik.php:568
|
275 |
+
msgid "Display to"
|
276 |
+
msgstr "Anzeigen für"
|
277 |
+
|
278 |
+
#: wp-piwik.php:579
|
279 |
+
msgid ""
|
280 |
+
"Choose minimum role required to see the statistics page. (This setting will "
|
281 |
+
"<strong>not</strong> affect the dashboard widget.)"
|
282 |
+
msgstr "Wähle die Nutzerrolle, die mindestens notwendig ist, um die Statistiken zu sehen. (Diese Einstellung hat <strong>keinen</strong> Einfluss auf das Dashboard-Widget.)"
|
283 |
+
|
284 |
+
#: wp-piwik.php:612
|
285 |
msgid "WPMU-Piwik Settings"
|
286 |
msgstr "WPMU-Piwik Einstellungen"
|
287 |
|
288 |
+
#: wp-piwik.php:636
|
289 |
+
msgid ""
|
290 |
+
"<strong>Important note:</strong> You have to choose a token which provides "
|
291 |
+
"administration access. WPMU-Piwik will create new Piwik sites for each blog "
|
292 |
+
"if it is shown the first time and it is not added yet. All users can access "
|
293 |
+
"their own statistics only, while site admins can access all statistics. To "
|
294 |
+
"avoid conflicts, you should use a clean Piwik installation without other "
|
295 |
+
"sites added. The provided themes should use wp_footer, because it adds the "
|
296 |
+
"Piwik javascript code to each page."
|
297 |
msgstr "<strong>Wichtiger Hinweis:</strong> Du solltest einen Token mit Adminstrator-Zugang angeben. WPMU-Piwik erstellt "
|
298 |
"für jedes Blog eine eigene Piwik Site, sobald es zum ersten Mal angezeigt wird. Nutzer können nur ihre eigenen "
|
299 |
"Statistiken einsehen, während Site Admins Zugriff auf alle Statistiken haben. Um Konflikte zu vermeiden, solltest Du "
|
300 |
"eine neue Piwik-Installation ohne andere Sites verwenden. Alle verwendeten Themes sollten wp_footer benutzen, da diese "
|
301 |
"Funktion den Piwik JavaScript Code zu jeder Seite hinzufügt."
|
302 |
|
303 |
+
#: wp-piwik.php:671
|
304 |
+
msgid "If you like WP-Piwik, you can support its development by a donation:"
|
305 |
+
msgstr "Wenn Dir WP-Piwik gefällt, kannst Du die weitere Entwicklung mit einer Spende fördern:"
|
|
|
|
|
306 |
|
307 |
+
#: wp-piwik.php:687
|
308 |
+
msgid "My Amazon.de wishlist (German)"
|
309 |
+
msgstr "Meine Amazon.de Wunschliste (Deutsch)"
|
310 |
|
311 |
+
#. Plugin URI of the plugin/theme
|
312 |
+
msgid "http://www.braekling.de/wp-piwik-wpmu-piwik-wordpress/"
|
313 |
+
msgstr "http://www.braekling.de/wp-piwik-wpmu-piwik-wordpress/"
|
314 |
|
315 |
+
#. Description of the plugin/theme
|
316 |
msgid ""
|
317 |
"Adds Piwik stats to your dashboard menu and Piwik code to your wordpress "
|
318 |
"footer."
|
319 |
msgstr "Fügt Piwik-Statistiken zu Deinem Dashboard-Menü hinzu und "
|
320 |
"kann den Piwik-Tracking-Code in den Blog-Footer einfügen."
|
321 |
|
322 |
+
#. Author of the plugin/theme
|
323 |
msgid "André Bräkling"
|
324 |
msgstr "André Bräkling"
|
325 |
|
326 |
+
#. Author URI of the plugin/theme
|
327 |
msgid "http://www.braekling.de"
|
328 |
msgstr "http://www.braekling.de"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -1,19 +1,14 @@
|
|
1 |
=== WP-Piwik ===
|
2 |
|
3 |
-
Contributors:
|
4 |
-
|
5 |
-
Requires at least: 2.7
|
6 |
-
|
7 |
Tested up to: 3.0.0
|
8 |
-
|
9 |
-
Stable tag: 0.7.1
|
10 |
-
|
11 |
Donate link: http://www.amazon.de/gp/registry/wishlist/111VUJT4HP1RA?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=12&y=14
|
12 |
Tags: statistics, stats, analytics, piwik, wpmu
|
13 |
|
14 |
This plugin adds a piwik stats site to your WordPress or WordPressMU dashboard.
|
15 |
|
16 |
-
|
17 |
== Description ==
|
18 |
|
19 |
This plugin adds a Piwik stats site to your WordPress dashboard. It's also able to add the Piwik tracking code to your blog using wp_footer.
|
@@ -24,11 +19,10 @@ Look at the [Piwik website](http://piwik.org/) to get further information about
|
|
24 |
|
25 |
*This plugin is not created or provided by the Piwik project team.*
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
Languages: English + Albanian, Belorussian, Dutch, German, French, Swedish
|
30 |
|
31 |
= WPMU =
|
|
|
32 |
Version 0.6.0 includes experimental WPMU support.
|
33 |
|
34 |
**Experimental**
|
@@ -48,6 +42,7 @@ Just add WP-Piwik to your /wp-content/plugins folder. So each user can enable WP
|
|
48 |
|
49 |
= Credits =
|
50 |
|
|
|
51 |
* Albanian [sq] language file by [Besnik Bleta](http://blogu.programeshqip.org/).
|
52 |
* Belorussian [be_BY] language file by [FatCow](http://www.fatcow.com/).
|
53 |
* Dutch [nl_NL] language file by [Rene](http://www.pamukkaleturkey.com/).
|
@@ -69,11 +64,17 @@ Thank you, guys!
|
|
69 |
|
70 |
== Screenshots ==
|
71 |
|
72 |
-
1. WP-Piwik
|
73 |
-
2. WP-Piwik
|
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
|
|
|
|
77 |
= 0.7.1 =
|
78 |
* Track 404-pages in an own category
|
79 |
* Get some page (and article) details
|
1 |
=== WP-Piwik ===
|
2 |
|
3 |
+
Contributors: Braekling
|
4 |
+
Requires at least: 2.9.1
|
|
|
|
|
5 |
Tested up to: 3.0.0
|
6 |
+
Stable tag: 0.8.0
|
|
|
|
|
7 |
Donate link: http://www.amazon.de/gp/registry/wishlist/111VUJT4HP1RA?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=12&y=14
|
8 |
Tags: statistics, stats, analytics, piwik, wpmu
|
9 |
|
10 |
This plugin adds a piwik stats site to your WordPress or WordPressMU dashboard.
|
11 |
|
|
|
12 |
== Description ==
|
13 |
|
14 |
This plugin adds a Piwik stats site to your WordPress dashboard. It's also able to add the Piwik tracking code to your blog using wp_footer.
|
19 |
|
20 |
*This plugin is not created or provided by the Piwik project team.*
|
21 |
|
22 |
+
Languages: English, Albanian, Belorussian, Dutch, French, German, Swedish, Norwegian
|
|
|
|
|
23 |
|
24 |
= WPMU =
|
25 |
+
|
26 |
Version 0.6.0 includes experimental WPMU support.
|
27 |
|
28 |
**Experimental**
|
42 |
|
43 |
= Credits =
|
44 |
|
45 |
+
* Graphs powered by [jqPlot](http://www.jqplot.com/), an open source project by Chris Leonello. Give it a try! (GPL 2.0 and MIT)
|
46 |
* Albanian [sq] language file by [Besnik Bleta](http://blogu.programeshqip.org/).
|
47 |
* Belorussian [be_BY] language file by [FatCow](http://www.fatcow.com/).
|
48 |
* Dutch [nl_NL] language file by [Rene](http://www.pamukkaleturkey.com/).
|
64 |
|
65 |
== Screenshots ==
|
66 |
|
67 |
+
1. WP-Piwik settings.
|
68 |
+
2. WP-Piwik statistics page.
|
69 |
+
3. Closer look to a pie chart.
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 0.8.0 =
|
74 |
+
* Using jqPlot instead of Google Chart API
|
75 |
+
* Some facelifting
|
76 |
+
* Some minor bugfixes
|
77 |
+
|
78 |
= 0.7.1 =
|
79 |
* Track 404-pages in an own category
|
80 |
* Get some page (and article) details
|
screenshot-1.gif
CHANGED
Binary file
|
screenshot-2.gif
CHANGED
Binary file
|
screenshot-3.gif
ADDED
Binary file
|
wp-piwik.php
CHANGED
@@ -6,12 +6,12 @@ Plugin URI: http://www.braekling.de/wp-piwik-wpmu-piwik-wordpress/
|
|
6 |
|
7 |
Description: Adds Piwik stats to your dashboard menu and Piwik code to your wordpress footer.
|
8 |
|
9 |
-
Version: 0.
|
10 |
Author: André Bräkling
|
11 |
Author URI: http://www.braekling.de
|
12 |
|
13 |
******************************************************************************************
|
14 |
-
Copyright (C) 2009 Andre Braekling (email: webmaster@braekling.de)
|
15 |
|
16 |
This program is free software: you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
@@ -29,13 +29,13 @@ Author URI: http://www.braekling.de
|
|
29 |
|
30 |
class wp_piwik {
|
31 |
|
32 |
-
public static $intRevisionId =
|
33 |
public static $intDashboardID = 6;
|
34 |
public static $bolWPMU = false;
|
35 |
public static $bolOverall = false;
|
36 |
|
37 |
function __construct() {
|
38 |
-
if ($GLOBALS['wp-piwik_wpmu']) {
|
39 |
self::$bolWPMU = true;
|
40 |
$intCurrentRevision = get_site_option('wpmu-piwik_revision', 0);
|
41 |
} else $intCurrentRevision = get_option('wp-piwik_revision',0);
|
@@ -68,6 +68,9 @@ class wp_piwik {
|
|
68 |
update_site_option('wpmu-piwik_revision', self::$intRevisionId);
|
69 |
else
|
70 |
update_option('wp-piwik_revision', self::$intRevisionId);
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
function footer() {
|
@@ -92,12 +95,12 @@ class wp_piwik {
|
|
92 |
|
93 |
function build_menu() {
|
94 |
if (!self::$bolWPMU) {
|
95 |
-
$intDisplayTo = get_option('wp-piwik_displayto',
|
96 |
$strToken = get_option('wp-piwik_token');
|
97 |
$strPiwikURL = get_option('wp-piwik_url');
|
98 |
$bolDashboardWidget = get_option('wp-piwik_dbwidget', false);
|
99 |
} else {
|
100 |
-
$intDisplayTo =
|
101 |
$strToken = get_site_option('wpmu-piwik_token');
|
102 |
$strPiwikURL = get_site_option('wpmu-piwik_url');
|
103 |
$bolDashboardWidget = false;
|
@@ -111,26 +114,26 @@ class wp_piwik {
|
|
111 |
array($this, 'show_stats')
|
112 |
);
|
113 |
add_action('admin_print_scripts-'.$intStatsPage, array($this, 'load_scripts'));
|
|
|
114 |
add_action('admin_head-'.$intStatsPage, array($this, 'add_admin_header'));
|
115 |
}
|
116 |
-
//add_filter('manage_posts_columns', array($this, 'display_post_unique_column'));
|
117 |
-
//add_action('manage_posts_custom_column', array($this, 'display_post_unique_content'), $intDisplayTo, 2);
|
118 |
if (!self::$bolWPMU)
|
119 |
-
add_options_page(
|
120 |
__('WP-Piwik', 'wp-piwik'),
|
121 |
__('WP-Piwik', 'wp-piwik'),
|
122 |
-
|
123 |
__FILE__,
|
124 |
array($this, 'show_settings')
|
125 |
);
|
126 |
elseif (is_site_admin())
|
127 |
-
add_options_page(
|
128 |
__('WPMU-Piwik', 'wpmu-piwik'),
|
129 |
__('WPMU-Piwik', 'wpmu-piwik'),
|
130 |
-
|
131 |
__FILE__,
|
132 |
array($this, 'show_mu_settings')
|
133 |
);
|
|
|
134 |
}
|
135 |
|
136 |
function extend_wp_dashboard_setup() {
|
@@ -159,9 +162,10 @@ class wp_piwik {
|
|
159 |
$arySetup = array(
|
160 |
'params' => array(
|
161 |
'period' => 'day',
|
162 |
-
'date' => $aryDate[$intDashboardWidget]
|
|
|
163 |
),
|
164 |
-
'inline' => true
|
165 |
);
|
166 |
$this->create_dashboard_widget('overview', $arySetup);
|
167 |
}
|
@@ -184,10 +188,20 @@ class wp_piwik {
|
|
184 |
$this->get_plugin_url().(self::$bolWPMU?'wp-piwik/':'').'js/wp-piwik.js',
|
185 |
array('jquery', 'admin-comments', 'postbox')
|
186 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
}
|
188 |
|
189 |
-
function add_admin_header() {
|
190 |
-
echo '
|
|
|
191 |
}
|
192 |
|
193 |
function get_plugin_url() {
|
@@ -345,6 +359,7 @@ class wp_piwik {
|
|
345 |
}
|
346 |
}
|
347 |
/***************************************************************************/ ?>
|
|
|
348 |
<div class="wrap">
|
349 |
<div id="icon-post" class="icon32"><br /></div>
|
350 |
<h2><?php _e('Piwik Statistics', 'wp-piwik'); ?></h2>
|
@@ -407,9 +422,14 @@ class wp_piwik {
|
|
407 |
update_option('wp-piwik_url', $_POST['wp-piwik_url'],'');
|
408 |
update_option('wp-piwik_siteid', $_POST['wp-piwik_siteid'],'');
|
409 |
update_option('wp-piwik_addjs', $_POST['wp-piwik_addjs'],'');
|
410 |
-
|
411 |
-
|
412 |
-
|
|
|
|
|
|
|
|
|
|
|
413 |
update_option('wp-piwik_dbwidget', $_POST['wp-piwik_dbwidget'], 0);
|
414 |
update_option('wp-piwik_piwiklink', $_POST['wp-piwik_piwiklink'], 0);
|
415 |
update_option('wp-piwik_404', $_POST['wp-piwik_404'], 0);
|
@@ -426,129 +446,151 @@ class wp_piwik {
|
|
426 |
/***************************************************************************/ ?>
|
427 |
<div class="wrap">
|
428 |
<h2><?php _e('WP-Piwik Settings', 'wp-piwik') ?></h2>
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
<
|
434 |
-
<
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
|
|
|
|
|
|
|
|
|
|
456 |
<?php /************************************************************************/
|
457 |
if (!empty($strToken) && !empty($strURL)) {
|
458 |
$aryData = $this->call_API('SitesManager.getSitesWithAtLeastViewAccess');
|
459 |
if (empty($aryData)) {
|
460 |
-
echo '<
|
461 |
__('Please check URL and auth token. You need at least view access to one site.', 'wp-piwik').
|
462 |
-
'</
|
463 |
} elseif (isset($aryData['result']) && $aryData['result'] == 'error') {
|
464 |
-
echo '<
|
465 |
-
': </strong>'.$aryData['message'].'</
|
466 |
} else {
|
467 |
-
echo '<
|
468 |
-
'
|
469 |
foreach ($aryData as $arySite)
|
470 |
echo '<option value="'.$arySite['idsite'].
|
471 |
'"'.($arySite['idsite']==$intSite?' selected=""':'').
|
472 |
'>'.htmlentities($arySite['name'], ENT_QUOTES, 'utf-8').
|
473 |
'</option>';
|
474 |
-
echo '</select></
|
475 |
if (empty($intSite))
|
476 |
update_option('wp-piwik_siteid', $aryData[0]['idsite']);
|
477 |
$intSite = get_option('wp-piwik_siteid');
|
478 |
$int404 = get_option('wp-piwik_404');
|
479 |
$intAddJS = get_option('wp-piwik_addjs');
|
480 |
-
$intDisableGAPI = get_option('wp-piwik_disable_gapi');
|
481 |
$intDashboardWidget = get_option('wp-piwik_dbwidget');
|
482 |
$intShowLink = get_option('wp-piwik_piwiklink');
|
483 |
$strJavaScript = $this->call_API('SitesManager.getJavascriptTag');
|
484 |
if ($intAddJS)
|
485 |
update_option('wp-piwik_jscode', $strJavaScript);
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
__('If your template uses wp_footer(), WP-Piwik can automatically'.
|
493 |
' add the Piwik javascript code to your blog.', 'wp-piwik').
|
494 |
-
'</
|
495 |
-
echo '<
|
496 |
-
'
|
497 |
-
($int404?' checked="checked"':'').'/></
|
498 |
-
echo '<
|
499 |
__('If you add the Piwik javascript code by wp_footer(), '.
|
500 |
'WP-Piwik can automatically add a 404-category to track 404-page-visits.', 'wp-piwik').
|
501 |
-
'</
|
502 |
-
echo '<tr><td>'.__('Disable Google Chart API', 'wp-piwik').
|
503 |
-
':</td><td><input type="checkbox" value="1" name="wp-piwik_disable_gapi" '.
|
504 |
-
($intDisableGAPI?' checked="checked"':'').'/></td></tr>';
|
505 |
-
echo '<tr><td></td><td><span class="setting-description">'.
|
506 |
-
__('WP-Piwik uses the Google Chart API to create graphs. To avoid this, just check this box.', 'wp-piwik').
|
507 |
-
'</span></td></tr>';
|
508 |
-
echo '<tr><td>'.__('Show overview on WordPress dashboard', 'wp-piwik').':</td><td>'.
|
509 |
-
'<select name="wp-piwik_dbwidget">'.
|
510 |
-
'<option value="0"'.($intDashboardWidget == 0?' selected=""':'').'>'.__('No', 'wp-piwik').'</option>'.
|
511 |
-
'<option value="1"'.($intDashboardWidget == 1?' selected=""':'').'>'.__('Yes','wp-piwik').' ('.__('yesterday', 'wp-piwik').').</option>'.
|
512 |
-
'<option value="2"'.($intDashboardWidget == 2?' selected=""':'').'>'.__('Yes','wp-piwik').' ('.__('today', 'wp-piwik').').</option>'.
|
513 |
-
'<option value="3"'.($intDashboardWidget == 3?' selected=""':'').'>'.__('Yes','wp-piwik').' ('.__('last 30 days','wp-piwik').').</option>'.
|
514 |
-
'</select></td></tr>';
|
515 |
-
echo '<tr><td>'.__('Show Piwik link in overview', 'wp-piwik').':</td><td>'.
|
516 |
-
'<input type="checkbox" value="1" name="wp-piwik_piwiklink" '.
|
517 |
-
($intShowLink?' checked="checked"':"").'/></td></tr>';
|
518 |
global $wp_roles;
|
519 |
-
echo '<
|
|
|
520 |
$aryFilter = get_option('wp-piwik_filter');
|
521 |
foreach($wp_roles->role_names as $strKey => $strName) {
|
522 |
echo '<input type="checkbox" '.(isset($aryFilter[$strKey]) && $aryFilter[$strKey]?'checked="checked" ':'').'value="1" name="wp-piwik_filter['.$strKey.']" /> '.$strName.' ';
|
523 |
}
|
524 |
-
echo '</
|
525 |
-
echo '<
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
531 |
foreach($wp_roles->role_names as $strKey => $strName) {
|
532 |
$role = get_role($strKey);
|
533 |
$intLevel = array_reduce( array_keys( $role->capabilities ), array( 'WP_User', 'level_reduction' ), 0 );
|
534 |
-
echo '<option value="'.$intLevel.'"'.($intDisplayTo ==
|
535 |
}
|
536 |
-
echo '</select>
|
537 |
-
echo '
|
538 |
-
__('
|
539 |
-
'</
|
540 |
}
|
541 |
}
|
542 |
/***************************************************************************/ ?>
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
|
|
548 |
</form>
|
|
|
549 |
</div>
|
550 |
<?php $this->credits(); ?>
|
551 |
-
</div>
|
552 |
<?php /************************************************************************/
|
553 |
}
|
554 |
|
@@ -556,7 +598,6 @@ class wp_piwik {
|
|
556 |
update_site_option('wpmu-piwik_token', $_POST['wp-piwik_token'],'');
|
557 |
update_site_option('wpmu-piwik_url', $_POST['wp-piwik_url'],'');
|
558 |
update_site_option('wpmu-piwik_filter', $_POST['wp-piwik_filter'],'');
|
559 |
-
update_site_option('wpmu-piwik_disable_gapi', $_POST['wp-piwik_disable_gapi'],'');
|
560 |
}
|
561 |
|
562 |
function show_mu_settings() {
|
@@ -569,6 +610,7 @@ class wp_piwik {
|
|
569 |
/***************************************************************************/ ?>
|
570 |
<div class="wrap">
|
571 |
<h2><?php _e('WPMU-Piwik Settings', 'wp-piwik') ?></h2>
|
|
|
572 |
<div class="inside">
|
573 |
<form method="post" action="">
|
574 |
<table class="form-table">
|
@@ -591,20 +633,13 @@ class wp_piwik {
|
|
591 |
, 'wp-piwik'
|
592 |
); ?><br />
|
593 |
<?php _e(
|
594 |
-
'<strong>Important note:</strong> You have to choose a token which provides administration access. WPMU-Piwik will create new Piwik sites for each blog if it is shown the first time and it is not added yet. All users can access their own statistics only, while site admins can access all statistics. To avoid conflicts, you should use a clean Piwik installation without other sites added. The provided themes should use wp_footer, because it adds the Piwik javascript code to each page.'
|
595 |
-
);
|
596 |
?>
|
597 |
</span></td></tr>
|
598 |
<?php /************************************************************************/
|
599 |
if (!empty($strToken) && !empty($strURL)) {
|
600 |
global $wp_roles;
|
601 |
-
|
602 |
-
echo '<tr><td>'.__('Disable Google Chart API', 'wp-piwik').
|
603 |
-
':</td><td><input type="checkbox" value="1" name="wp-piwik_disable_gapi" '.
|
604 |
-
($intDisableGAPI?' checked="checked"':'').'/></td></tr>';
|
605 |
-
echo '<tr><td></td><td><span class="setting-description">'.
|
606 |
-
__('WP-Piwik uses the Google Chart API to create graphs. To avoid this, just check this box.', 'wp-piwik').
|
607 |
-
'</span></td></tr>';
|
608 |
echo '<tr><td>'.__('Tracking filter', 'wp-piwik').':</td><td>';
|
609 |
$aryFilter = get_site_option('wpmu-piwik_filter');
|
610 |
foreach($wp_roles->role_names as $strKey => $strName) {
|
@@ -628,29 +663,37 @@ class wp_piwik {
|
|
628 |
<?php /************************************************************************/
|
629 |
}
|
630 |
|
631 |
-
function
|
632 |
/***************************************************************************/ ?>
|
633 |
-
<
|
634 |
-
<
|
635 |
-
<
|
|
|
636 |
<script type="text/javascript">
|
637 |
var flattr_url = 'http://www.braekling.de/wp-piwik-wpmu-piwik-wordpress';
|
638 |
</script>
|
639 |
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>
|
640 |
</div>
|
641 |
-
<div
|
642 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
643 |
-
<input type="hidden" name="cmd" value="_s-xclick"
|
644 |
-
<input type="hidden" name="hosted_button_id" value="6046779"
|
645 |
-
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donateCC_LG.gif"
|
646 |
-
<img alt="" border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1"
|
647 |
</form>
|
648 |
</div>
|
649 |
-
<div
|
650 |
-
<a href="http://www.amazon.de/gp/registry/wishlist/111VUJT4HP1RA?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=12&y=14"
|
651 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
652 |
<h2 style="clear:left;">Credits</h2>
|
653 |
<div class="inside">
|
|
|
654 |
<p>Thank you very much, <a href="http://blogu.programeshqip.org/">Besnik Bleta</a>, <a href="http://www.fatcow.com/">FatCow</a>, <a href="http://www.pamukkaleturkey.com/">Rene</a>, Fab and <a href="http://ezbizniz.com/">EzBizNiz</a> for your translation work!</p>
|
655 |
<p>Thank you very much, all users who send me mails containing criticism, commendation, feature requests and bug reports! You help me to make WP-Piwik much better.</p>
|
656 |
<p>Thank <strong>you</strong> for using my plugin. It is the best commendation if my piece of code is really used!</p>
|
6 |
|
7 |
Description: Adds Piwik stats to your dashboard menu and Piwik code to your wordpress footer.
|
8 |
|
9 |
+
Version: 0.8.0
|
10 |
Author: André Bräkling
|
11 |
Author URI: http://www.braekling.de
|
12 |
|
13 |
******************************************************************************************
|
14 |
+
Copyright (C) 2009-2010 Andre Braekling (email: webmaster@braekling.de)
|
15 |
|
16 |
This program is free software: you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
29 |
|
30 |
class wp_piwik {
|
31 |
|
32 |
+
public static $intRevisionId = 19;
|
33 |
public static $intDashboardID = 6;
|
34 |
public static $bolWPMU = false;
|
35 |
public static $bolOverall = false;
|
36 |
|
37 |
function __construct() {
|
38 |
+
if (isset($GLOBALS['wp-piwik_wpmu']) && $GLOBALS['wp-piwik_wpmu']) {
|
39 |
self::$bolWPMU = true;
|
40 |
$intCurrentRevision = get_site_option('wpmu-piwik_revision', 0);
|
41 |
} else $intCurrentRevision = get_option('wp-piwik_revision',0);
|
68 |
update_site_option('wpmu-piwik_revision', self::$intRevisionId);
|
69 |
else
|
70 |
update_option('wp-piwik_revision', self::$intRevisionId);
|
71 |
+
delete_option('wp-piwik_disable_gapi');
|
72 |
+
$intDisplayTo = get_option('wp-piwik_displayto', 8);
|
73 |
+
update_option('wp-piwik_displayto', 'level_'.$intDisplayTo);
|
74 |
}
|
75 |
|
76 |
function footer() {
|
95 |
|
96 |
function build_menu() {
|
97 |
if (!self::$bolWPMU) {
|
98 |
+
$intDisplayTo = get_option('wp-piwik_displayto', 'administrator');
|
99 |
$strToken = get_option('wp-piwik_token');
|
100 |
$strPiwikURL = get_option('wp-piwik_url');
|
101 |
$bolDashboardWidget = get_option('wp-piwik_dbwidget', false);
|
102 |
} else {
|
103 |
+
$intDisplayTo = 'administrator';
|
104 |
$strToken = get_site_option('wpmu-piwik_token');
|
105 |
$strPiwikURL = get_site_option('wpmu-piwik_url');
|
106 |
$bolDashboardWidget = false;
|
114 |
array($this, 'show_stats')
|
115 |
);
|
116 |
add_action('admin_print_scripts-'.$intStatsPage, array($this, 'load_scripts'));
|
117 |
+
add_action('admin_print_styles-'.$intStatsPage, array($this, 'add_admin_style'));
|
118 |
add_action('admin_head-'.$intStatsPage, array($this, 'add_admin_header'));
|
119 |
}
|
|
|
|
|
120 |
if (!self::$bolWPMU)
|
121 |
+
$intOptionsPage = add_options_page(
|
122 |
__('WP-Piwik', 'wp-piwik'),
|
123 |
__('WP-Piwik', 'wp-piwik'),
|
124 |
+
'administrator',
|
125 |
__FILE__,
|
126 |
array($this, 'show_settings')
|
127 |
);
|
128 |
elseif (is_site_admin())
|
129 |
+
$intOptionsPage = add_options_page(
|
130 |
__('WPMU-Piwik', 'wpmu-piwik'),
|
131 |
__('WPMU-Piwik', 'wpmu-piwik'),
|
132 |
+
'administrator',
|
133 |
__FILE__,
|
134 |
array($this, 'show_mu_settings')
|
135 |
);
|
136 |
+
add_action('admin_print_styles-'.$intOptionsPage, array($this, 'add_admin_style'));
|
137 |
}
|
138 |
|
139 |
function extend_wp_dashboard_setup() {
|
162 |
$arySetup = array(
|
163 |
'params' => array(
|
164 |
'period' => 'day',
|
165 |
+
'date' => $aryDate[$intDashboardWidget],
|
166 |
+
'limit' => null
|
167 |
),
|
168 |
+
'inline' => true,
|
169 |
);
|
170 |
$this->create_dashboard_widget('overview', $arySetup);
|
171 |
}
|
188 |
$this->get_plugin_url().(self::$bolWPMU?'wp-piwik/':'').'js/wp-piwik.js',
|
189 |
array('jquery', 'admin-comments', 'postbox')
|
190 |
);
|
191 |
+
wp_enqueue_script(
|
192 |
+
'wp-piwik-jqplot',
|
193 |
+
$this->get_plugin_url().(self::$bolWPMU?'wp-piwik/':'').'js/jqplot/wp-piwik.jqplot.js',
|
194 |
+
array('jquery')
|
195 |
+
);
|
196 |
+
}
|
197 |
+
|
198 |
+
function add_admin_style() {
|
199 |
+
wp_enqueue_style('wp-piwik', $this->get_plugin_url().(self::$bolWPMU?'wp-piwik/':'').'css/wp-piwik.css', array('dashboard'));
|
200 |
}
|
201 |
|
202 |
+
function add_admin_header() {
|
203 |
+
echo '<!--[if IE]><script language="javascript" type="text/javascript" src="'.$this->get_plugin_url().(self::$bolWPMU?'wp-piwik/':'').'js/jqplot/excanvas.min.js"></script><![endif]-->';
|
204 |
+
echo '<link rel="stylesheet" href="'.$this->get_plugin_url().(self::$bolWPMU?'wp-piwik/':'').'js/jqplot/jquery.jqplot.min.css" type="text/css"/>';
|
205 |
}
|
206 |
|
207 |
function get_plugin_url() {
|
359 |
}
|
360 |
}
|
361 |
/***************************************************************************/ ?>
|
362 |
+
<script type="text/javascript">var $j = jQuery.noConflict();</script>
|
363 |
<div class="wrap">
|
364 |
<div id="icon-post" class="icon32"><br /></div>
|
365 |
<h2><?php _e('Piwik Statistics', 'wp-piwik'); ?></h2>
|
422 |
update_option('wp-piwik_url', $_POST['wp-piwik_url'],'');
|
423 |
update_option('wp-piwik_siteid', $_POST['wp-piwik_siteid'],'');
|
424 |
update_option('wp-piwik_addjs', $_POST['wp-piwik_addjs'],'');
|
425 |
+
if (isset($_POST['wp-piwik_filter']))
|
426 |
+
update_option('wp-piwik_filter', $_POST['wp-piwik_filter'],'');
|
427 |
+
else
|
428 |
+
update_option('wp-piwik_filter', array(),'');
|
429 |
+
if (isset($_POST['wp-piwik_displayto']))
|
430 |
+
update_option('wp-piwik_displayto', $_POST['wp-piwik_displayto']);
|
431 |
+
else
|
432 |
+
update_option('wp-piwik_displayto', array('administrator'));
|
433 |
update_option('wp-piwik_dbwidget', $_POST['wp-piwik_dbwidget'], 0);
|
434 |
update_option('wp-piwik_piwiklink', $_POST['wp-piwik_piwiklink'], 0);
|
435 |
update_option('wp-piwik_404', $_POST['wp-piwik_404'], 0);
|
446 |
/***************************************************************************/ ?>
|
447 |
<div class="wrap">
|
448 |
<h2><?php _e('WP-Piwik Settings', 'wp-piwik') ?></h2>
|
449 |
+
<?php $this->donate(); ?>
|
450 |
+
<form method="post" action="">
|
451 |
+
<div id="dashboard-widgets-wrap">
|
452 |
+
<div id="dashboard-widgets" class="metabox-holder">
|
453 |
+
<div class="wp-piwik-settings-container" id="postbox-container">
|
454 |
+
<div class="postbox wp-piwik-settings" >
|
455 |
+
<h3 class='hndle'><span><?php _e('Account settings', 'wp-piwik'); ?></span></h3>
|
456 |
+
<div class="inside">
|
457 |
+
<h4><label for="wp-piwik_url"><?php _e('Piwik URL', 'wp-piwik'); ?>:</label></h4>
|
458 |
+
<div class="input-text-wrap">
|
459 |
+
<input type="text" name="wp-piwik_url" id="wp-piwik_url" value="<?php echo $strURL; ?>" />
|
460 |
+
</div>
|
461 |
+
<h4><label for="wp-piwik_token"><?php _e('Auth token', 'wp-piwik'); ?>:</label></h4>
|
462 |
+
<div class="input-text-wrap">
|
463 |
+
<input type="text" name="wp-piwik_token" id="wp-piwik_token" value="<?php echo $strToken; ?>" />
|
464 |
+
</div>
|
465 |
+
<div class="wp-piwik_desc">
|
466 |
+
<?php _e(
|
467 |
+
'To enable Piwik statistics, please enter your Piwik'.
|
468 |
+
' base URL (like http://mydomain.com/piwik) and your'.
|
469 |
+
' personal authentification token. You can get the token'.
|
470 |
+
' on the API page inside your Piwik interface. It looks'.
|
471 |
+
' like "1234a5cd6789e0a12345b678cd9012ef".'
|
472 |
+
, 'wp-piwik'
|
473 |
+
); ?>
|
474 |
+
</div>
|
475 |
+
<div class="wp-piwik_desc">
|
476 |
+
<?php _e(
|
477 |
+
'<strong>Important note:</strong> If you do not host this blog on your own, your site admin is able to get your auth token from the database. So he is able to access your statistics. You should never use an auth token with more than simple view access!',
|
478 |
+
'wp-piwik'
|
479 |
+
); ?>
|
480 |
+
</div>
|
481 |
<?php /************************************************************************/
|
482 |
if (!empty($strToken) && !empty($strURL)) {
|
483 |
$aryData = $this->call_API('SitesManager.getSitesWithAtLeastViewAccess');
|
484 |
if (empty($aryData)) {
|
485 |
+
echo '<div class="wp-piwik_desc"><strong>'.__('An error occured', 'wp-piwik').': </strong>'.
|
486 |
__('Please check URL and auth token. You need at least view access to one site.', 'wp-piwik').
|
487 |
+
'</div>';
|
488 |
} elseif (isset($aryData['result']) && $aryData['result'] == 'error') {
|
489 |
+
echo '<div class="wp-piwik_desc"><strong><strong>'.__('An error occured', 'wp-piwik').
|
490 |
+
': </strong>'.$aryData['message'].'</div>';
|
491 |
} else {
|
492 |
+
echo '<h4><label for="wp-piwik_siteid">'.__('Choose site', 'wp-piwik').':</label></h4>'.
|
493 |
+
'<div class="input-wrap"><select name="wp-piwik_siteid" id="wp-piwik_siteid">';
|
494 |
foreach ($aryData as $arySite)
|
495 |
echo '<option value="'.$arySite['idsite'].
|
496 |
'"'.($arySite['idsite']==$intSite?' selected=""':'').
|
497 |
'>'.htmlentities($arySite['name'], ENT_QUOTES, 'utf-8').
|
498 |
'</option>';
|
499 |
+
echo '</select></div>';
|
500 |
if (empty($intSite))
|
501 |
update_option('wp-piwik_siteid', $aryData[0]['idsite']);
|
502 |
$intSite = get_option('wp-piwik_siteid');
|
503 |
$int404 = get_option('wp-piwik_404');
|
504 |
$intAddJS = get_option('wp-piwik_addjs');
|
|
|
505 |
$intDashboardWidget = get_option('wp-piwik_dbwidget');
|
506 |
$intShowLink = get_option('wp-piwik_piwiklink');
|
507 |
$strJavaScript = $this->call_API('SitesManager.getJavascriptTag');
|
508 |
if ($intAddJS)
|
509 |
update_option('wp-piwik_jscode', $strJavaScript);
|
510 |
+
/***************************************************************************/ ?>
|
511 |
+
<div><input type="submit" name="Submit" value="<?php _e('Save settings', 'wp-piwik') ?>" /></div>
|
512 |
+
</div>
|
513 |
+
</div>
|
514 |
+
<div class="postbox wp-piwik-settings" >
|
515 |
+
<h3 class='hndle'><span><?php _e('Tracking settings', 'wp-piwik'); ?></span></h3>
|
516 |
+
<div class="inside">
|
517 |
+
<?php /************************************************************************/
|
518 |
+
echo '<h4><label for="wp-piwik_jscode">JavaScript:</label></h4>'.
|
519 |
+
'<div class="input-text-wrap"><textarea id="wp-piwik_jscode" name="wp-piwik_jscode" readonly="readonly" rows="17" cols="55">'.
|
520 |
+
htmlentities($strJavaScript).'</textarea></div>';
|
521 |
+
echo '<h4><label for="wp-piwik_addjs">'.__('Add script', 'wp-piwik').':</label></h4>'.
|
522 |
+
'<div class="input-wrap"><input type="checkbox" value="1" id="wp-piwik_addjs" name="wp-piwik_addjs" '.
|
523 |
+
($intAddJS?' checked="checked"':'').'/></div>';
|
524 |
+
echo '<div class="wp-piwik_desc">'.
|
525 |
__('If your template uses wp_footer(), WP-Piwik can automatically'.
|
526 |
' add the Piwik javascript code to your blog.', 'wp-piwik').
|
527 |
+
'</div>';
|
528 |
+
echo '<h4><label for="wp-piwik_404">'.__('Track 404', 'wp-piwik').':</label></h4>'.
|
529 |
+
'<div class="input-wrap"><input type="checkbox" value="1" id="wp-piwik_404" name="wp-piwik_404" '.
|
530 |
+
($int404?' checked="checked"':'').'/></div>';
|
531 |
+
echo '<div class="wp-piwik_desc">'.
|
532 |
__('If you add the Piwik javascript code by wp_footer(), '.
|
533 |
'WP-Piwik can automatically add a 404-category to track 404-page-visits.', 'wp-piwik').
|
534 |
+
'</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
global $wp_roles;
|
536 |
+
echo '<h4><label>'.__('Tracking filter', 'wp-piwik').':</label></h4>';
|
537 |
+
echo '<div class="input-wrap">';
|
538 |
$aryFilter = get_option('wp-piwik_filter');
|
539 |
foreach($wp_roles->role_names as $strKey => $strName) {
|
540 |
echo '<input type="checkbox" '.(isset($aryFilter[$strKey]) && $aryFilter[$strKey]?'checked="checked" ':'').'value="1" name="wp-piwik_filter['.$strKey.']" /> '.$strName.' ';
|
541 |
}
|
542 |
+
echo '</div>';
|
543 |
+
echo '<div class="wp-piwik_desc">'.
|
544 |
+
__('Choose users by user role you do <strong>not</strong> want to track.'.
|
545 |
+
' Requires enabled "Add script to wp_footer()"-functionality.','wp-piwik').'</div>';
|
546 |
+
/***************************************************************************/ ?>
|
547 |
+
<div><input type="submit" name="Submit" value="<?php _e('Save settings', 'wp-piwik') ?>" /></div>
|
548 |
+
</div>
|
549 |
+
</div>
|
550 |
+
<div class="postbox wp-piwik-settings" >
|
551 |
+
<h3 class='hndle'><span><?php _e('Statistic view settings', 'wp-piwik'); ?></span></h3>
|
552 |
+
<div class="inside">
|
553 |
+
<?php
|
554 |
+
echo '<h4><label for="wp-piwik_dbwidget">'.__('Dashboard', 'wp-piwik').':</label></h4>'.
|
555 |
+
'<div class="input-wrap"><select id="wp-piwik_dbwidget" name="wp-piwik_dbwidget">'.
|
556 |
+
'<option value="0"'.($intDashboardWidget == 0?' selected="selected"':'').'>'.__('No', 'wp-piwik').'</option>'.
|
557 |
+
'<option value="1"'.($intDashboardWidget == 1?' selected="selected"':'').'>'.__('Yes','wp-piwik').' ('.__('yesterday', 'wp-piwik').').</option>'.
|
558 |
+
'<option value="2"'.($intDashboardWidget == 2?' selected="selected"':'').'>'.__('Yes','wp-piwik').' ('.__('today', 'wp-piwik').').</option>'.
|
559 |
+
'<option value="3"'.($intDashboardWidget == 3?' selected="selected"':'').'>'.__('Yes','wp-piwik').' ('.__('last 30 days','wp-piwik').').</option>'.
|
560 |
+
'</select></div>';
|
561 |
+
echo '<div class="wp-piwik_desc">'.
|
562 |
+
__('Display a dashboard widget to your WordPress dashboard.', 'wp-piwik').'</div>';
|
563 |
+
echo '<h4><label for="wp-piwik_piwiklink">'.__('Shortcut', 'wp-piwik').':</label></h4>'.
|
564 |
+
'<div class="input-wrap"><input type="checkbox" value="1" name="wp-piwik_piwiklink" id="wp-piwik_piwiklink" '.
|
565 |
+
($intShowLink?' checked="checked"':"").'/></div>';
|
566 |
+
echo '<div class="wp-piwik_desc">'.
|
567 |
+
__('Display a shortcut to Piwik itself.', 'wp-piwik').'</div>';
|
568 |
+
echo '<h4><label>'.__('Display to', 'wp-piwik').':</label></h4>';
|
569 |
+
echo '<div class="input-wrap">';
|
570 |
+
echo '<select name="wp-piwik_displayto">';
|
571 |
+
$intDisplayTo = get_option('wp-piwik_displayto', 'level_8');
|
572 |
foreach($wp_roles->role_names as $strKey => $strName) {
|
573 |
$role = get_role($strKey);
|
574 |
$intLevel = array_reduce( array_keys( $role->capabilities ), array( 'WP_User', 'level_reduction' ), 0 );
|
575 |
+
echo '<option value="level_'.$intLevel.'"'.($intDisplayTo == 'level_'.$intLevel?' selected="selected"':'').'>'.$strName.'</option>';
|
576 |
}
|
577 |
+
echo '</select>';
|
578 |
+
echo '</div><div class="wp-piwik_desc">'.
|
579 |
+
__('Choose minimum role required to see the statistics page. (This setting will <strong>not</strong> affect the dashboard widget.)', 'wp-piwik').
|
580 |
+
'</div>';
|
581 |
}
|
582 |
}
|
583 |
/***************************************************************************/ ?>
|
584 |
+
<div><input type="submit" name="Submit" value="<?php _e('Save settings', 'wp-piwik') ?>" /></div>
|
585 |
+
</div>
|
586 |
+
</div>
|
587 |
+
</div>
|
588 |
+
<input type="hidden" name="action" value="save_settings" />
|
589 |
+
</div></div>
|
590 |
</form>
|
591 |
+
<pre><?php $current_user = wp_get_current_user(); ?></pre>
|
592 |
</div>
|
593 |
<?php $this->credits(); ?>
|
|
|
594 |
<?php /************************************************************************/
|
595 |
}
|
596 |
|
598 |
update_site_option('wpmu-piwik_token', $_POST['wp-piwik_token'],'');
|
599 |
update_site_option('wpmu-piwik_url', $_POST['wp-piwik_url'],'');
|
600 |
update_site_option('wpmu-piwik_filter', $_POST['wp-piwik_filter'],'');
|
|
|
601 |
}
|
602 |
|
603 |
function show_mu_settings() {
|
610 |
/***************************************************************************/ ?>
|
611 |
<div class="wrap">
|
612 |
<h2><?php _e('WPMU-Piwik Settings', 'wp-piwik') ?></h2>
|
613 |
+
<?php $this->donate(); ?>
|
614 |
<div class="inside">
|
615 |
<form method="post" action="">
|
616 |
<table class="form-table">
|
633 |
, 'wp-piwik'
|
634 |
); ?><br />
|
635 |
<?php _e(
|
636 |
+
'<strong>Important note:</strong> You have to choose a token which provides administration access. WPMU-Piwik will create new Piwik sites for each blog if it is shown the first time and it is not added yet. All users can access their own statistics only, while site admins can access all statistics. To avoid conflicts, you should use a clean Piwik installation without other sites added. The provided themes should use wp_footer, because it adds the Piwik javascript code to each page.', 'wp-piwik');
|
|
|
637 |
?>
|
638 |
</span></td></tr>
|
639 |
<?php /************************************************************************/
|
640 |
if (!empty($strToken) && !empty($strURL)) {
|
641 |
global $wp_roles;
|
642 |
+
?><tr><td colspan="2"><h3><?php _e('Tracking settings', 'wp-piwik'); ?></h3></td></tr><?php
|
|
|
|
|
|
|
|
|
|
|
|
|
643 |
echo '<tr><td>'.__('Tracking filter', 'wp-piwik').':</td><td>';
|
644 |
$aryFilter = get_site_option('wpmu-piwik_filter');
|
645 |
foreach($wp_roles->role_names as $strKey => $strName) {
|
663 |
<?php /************************************************************************/
|
664 |
}
|
665 |
|
666 |
+
function donate() {
|
667 |
/***************************************************************************/ ?>
|
668 |
+
<div class="wp-piwik-sidebox">
|
669 |
+
<strong>Donate</strong>
|
670 |
+
<p><?php _e('If you like WP-Piwik, you can support its development by a donation:', 'wp-piwik'); ?></p>
|
671 |
+
<div>
|
672 |
<script type="text/javascript">
|
673 |
var flattr_url = 'http://www.braekling.de/wp-piwik-wpmu-piwik-wordpress';
|
674 |
</script>
|
675 |
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>
|
676 |
</div>
|
677 |
+
<div>Paypal
|
678 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
679 |
+
<input type="hidden" name="cmd" value="_s-xclick" />
|
680 |
+
<input type="hidden" name="hosted_button_id" value="6046779" />
|
681 |
+
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." />
|
682 |
+
<img alt="" border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1" />
|
683 |
</form>
|
684 |
</div>
|
685 |
+
<div>
|
686 |
+
<a href="http://www.amazon.de/gp/registry/wishlist/111VUJT4HP1RA?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=12&y=14"><?php _e('My Amazon.de wishlist (German)', 'wp-piwik'); ?></a>
|
687 |
</div>
|
688 |
+
</div>
|
689 |
+
<?php /************************************************************************/
|
690 |
+
}
|
691 |
+
|
692 |
+
function credits() {
|
693 |
+
/***************************************************************************/ ?>
|
694 |
<h2 style="clear:left;">Credits</h2>
|
695 |
<div class="inside">
|
696 |
+
<p>Graphs powered by <a href="http://www.jqplot.com/">jqPlot</a>, an open source project by Chris Leonello. Give it a try! (License: GPL 2.0 and MIT)</p>
|
697 |
<p>Thank you very much, <a href="http://blogu.programeshqip.org/">Besnik Bleta</a>, <a href="http://www.fatcow.com/">FatCow</a>, <a href="http://www.pamukkaleturkey.com/">Rene</a>, Fab and <a href="http://ezbizniz.com/">EzBizNiz</a> for your translation work!</p>
|
698 |
<p>Thank you very much, all users who send me mails containing criticism, commendation, feature requests and bug reports! You help me to make WP-Piwik much better.</p>
|
699 |
<p>Thank <strong>you</strong> for using my plugin. It is the best commendation if my piece of code is really used!</p>
|