mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Merge branch 'master' into add-data-remove-pipeline
This commit is contained in:
commit
9437a02df8
415 changed files with 71883 additions and 274 deletions
|
@ -1,4 +1,5 @@
|
|||
|
||||
/src/core_plugins/timelion/bower_components
|
||||
/src/core_plugins/timelion/vendor_components
|
||||
test/fixtures/scenarios
|
||||
optimize
|
||||
test/fixtures/scenarios
|
||||
|
|
|
@ -45,6 +45,8 @@ module.exports = function (grunt) {
|
|||
'<%= root %>/test/**/*.js',
|
||||
'<%= src %>/**/*.js',
|
||||
'!<%= src %>/ui/public/angular-bootstrap/**/*.js',
|
||||
'!<%= src %>/core_plugins/timelion/bower_components/**/*.js',
|
||||
'!<%= src %>/core_plugins/timelion/vendor_components/**/*.js',
|
||||
'!<%= src %>/fixtures/**/*.js',
|
||||
'!<%= root %>/test/fixtures/scenarios/**/*.js'
|
||||
],
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
[[setup-repositories]]
|
||||
=== Install Kibana using a Linux Package Manager
|
||||
=== Installing Kibana with apt and yum
|
||||
|
||||
Binary packages for Kibana are available for Unix distributions that support the `apt` and `yum` tools. We also have
|
||||
repositories available for APT and YUM based distributions.
|
||||
Binary packages for Kibana are available for Unix distributions that support the `apt` and `yum` tools.
|
||||
We also have repositories available for APT and YUM based distributions.
|
||||
|
||||
NOTE: Since the packages are created as part of the Kibana build, source packages are not available.
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ The {version} release of Kibana requires Elasticsearch {esversion} or later.
|
|||
* {k4issue}6531[Issue 6531]: Improved warning for URL lengths that approach browser limits.
|
||||
* {k4issue}6602[Issue 6602]: Improves dark theme support.
|
||||
* {k4issue}6791[Issue 6791]: Enables composition of custom user toast notifications in Advanced Settings.
|
||||
* {k4pull}8014[Pull Request 8014]: Changes the UUID config setting from `uuid` to `server.uuid`, and puts UUID storage into data file instead of Elasticsearch.
|
||||
|
||||
[float]
|
||||
[[bugfixes]]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[[setup]]
|
||||
== Installing Kibana
|
||||
You can set up Kibana and start exploring your Elasticsearch indices in minutes.
|
||||
== Setting Up Kibana
|
||||
You can install Kibana and start exploring your Elasticsearch indices in minutes.
|
||||
All you need is:
|
||||
|
||||
* Elasticsearch {esversion}
|
||||
|
@ -9,114 +9,70 @@ All you need is:
|
|||
** URL of the Elasticsearch instance you want to connect to.
|
||||
** Which Elasticsearch indices you want to search.
|
||||
|
||||
NOTE: If your Elasticsearch installation is protected by http://www.elastic.co/overview/shield/[{scyld}], see
|
||||
{shield}/kibana.html#using-kibana4-with-shield[{scyld} with Kibana] for additional setup instructions.
|
||||
|
||||
=== Upgrading Kibana
|
||||
|
||||
Your existing Kibana version is generally compatible with the next minor version release of Elasticsearch.
|
||||
This means you should upgrade your Elasticsearch cluster(s) before or at the same time as Kibana.
|
||||
We cannot guarantee compatibility between major version releases so in those cases both Elasticsearch and Kibana must be upgraded together.
|
||||
|
||||
To upgrade Kibana:
|
||||
|
||||
. Create a https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html[snapshot] of the existing `.kibana` index.
|
||||
. Back up the `kibana.yml` configuration file.
|
||||
. Take note of the Kibana plugins that are installed:
|
||||
* `bin/kibana plugin --list` on 4.x versions of Kibana.
|
||||
* `bin/kibana-plugin list` on 5.x versions of Kibana.
|
||||
. To upgrade from an Archive File:
|
||||
.. Extract the new version of Kibana into a different directory. See steps below.
|
||||
.. Migrate any custom configuration from your old kibana.yml to your new one
|
||||
.. Follow other steps below to complete the new installation.
|
||||
.. Once the new version is fully configured and working with required plugins, remove the previous version of Kibana
|
||||
. To upgrade using a Linux Package Manager:
|
||||
.. Uninstall the existing Kibana package: `apt-get remove kibana` or `yum remove kibana`
|
||||
.. Install the new Kibana package. There have been some installer issues between various version of Kibana so the uninstall and install process is safer than an upgrade.
|
||||
|
||||
|
||||
[float]
|
||||
[[install]]
|
||||
=== Install and Start Kibana from an Archive File
|
||||
=== Install Kibana
|
||||
To install and start Kibana:
|
||||
|
||||
To get Kibana up and running:
|
||||
|
||||
. Download the https://www.elastic.co/downloads/kibana[Kibana {version} binary package] for your platform.
|
||||
. Download the https://www.elastic.co/downloads/kibana[Kibana 4 binary package] for your platform.
|
||||
. Extract the `.zip` or `tar.gz` archive file.
|
||||
. If you're upgrading, migrate any configuration changes from the previous `kibana.yml` to the new version.
|
||||
. Install Kibana plugins (optional).
|
||||
. Run Kibana from the install directory: `bin/kibana` (Linux/MacOSX) or `bin\kibana.bat` (Windows).
|
||||
|
||||
On Unix, you can instead run the package manager suited for your distribution.
|
||||
|
||||
////
|
||||
[float]
|
||||
include::kibana-repositories.asciidoc[]
|
||||
////
|
||||
|
||||
That's it! Kibana is now running on port 5601.
|
||||
|
||||
[float]
|
||||
[[kibana-dynamic-mapping]]
|
||||
==== Kibana and Elasticsearch Dynamic Mapping
|
||||
By default, Elasticsearch enables {ref}dynamic-mapping.html[dynamic mapping] for fields. Kibana needs dynamic mapping
|
||||
to use fields in visualizations correctly, as well as to manage the `.kibana` index where saved searches,
|
||||
visualizations, and dashboards are stored.
|
||||
On Unix, you can also install Kibana using the package manager suited for your distribution. For more
|
||||
information, see <<setup-repositories, Installing Kibana with apt and yum>>.
|
||||
|
||||
If your Elasticsearch use case requires you to disable dynamic mapping, you need to manually provide mappings for
|
||||
fields that Kibana uses to create visualizations. You also need to manually enable dynamic mapping for the `.kibana`
|
||||
index.
|
||||
|
||||
The following procedure assumes that the `.kibana` index does not already exist in Elasticsearch and that the
|
||||
`index.mapper.dynamic` setting in `elasticsearch.yml` is set to `false`:
|
||||
|
||||
. Start Elasticsearch.
|
||||
. Create the `.kibana` index with dynamic mapping enabled just for that index:
|
||||
+
|
||||
[source,shell]
|
||||
PUT .kibana
|
||||
{
|
||||
"index.mapper.dynamic": true
|
||||
}
|
||||
+
|
||||
. Start Kibana and navigate to the web UI and verify that there are no error messages related to dynamic mapping.
|
||||
IMPORTANT: If your Elasticsearch installation is protected by http://www.elastic.co/overview/shield/[Shield]
|
||||
see {shield}/kibana.html#using-kibana4-with-shield[Using Kibana with Shield] for additional setup
|
||||
instructions.
|
||||
|
||||
[float]
|
||||
[[connect]]
|
||||
=== Connect Kibana with Elasticsearch
|
||||
Before you can start using Kibana, you need to tell it which Elasticsearch indices you want to explore. The first time
|
||||
you access Kibana, you are prompted to define an _index pattern_ that matches the name of one or more of your indices.
|
||||
That's it. That's all you need to configure to start using Kibana. You can add index patterns at any time from the
|
||||
<<settings-create-pattern,Settings tab>>.
|
||||
Before you can start using Kibana, you need to tell it which Elasticsearch indices you want to explore.
|
||||
The first time you access Kibana, you are prompted to define an _index pattern_ that matches the name of
|
||||
one or more of your indices. That's it. That's all you need to configure to start using Kibana. You can
|
||||
add index patterns at any time from the <<settings-create-pattern,Settings tab>>.
|
||||
|
||||
TIP: By default, Kibana connects to the Elasticsearch instance running on `localhost`. To connect to a different
|
||||
Elasticsearch instance, modify the Elasticsearch URL in the `kibana.yml` configuration file and restart Kibana. For
|
||||
information about using Kibana with your production nodes, see <<production>>.
|
||||
TIP: By default, Kibana connects to the Elasticsearch instance running on `localhost`. To connect to a
|
||||
different Elasticsearch instance, modify the Elasticsearch URL in the `kibana.yml` configuration file and
|
||||
restart Kibana. Forninformation about using Kibana with your production nodes, see <<production>>.
|
||||
|
||||
To configure the Elasticsearch indices you want to access with Kibana:
|
||||
|
||||
. Point your browser at port 5601 to access the Kibana UI. For example, `localhost:5601` or `http://YOURDOMAIN.com:5601`.
|
||||
. Point your browser at port 5601 to access the Kibana UI. For example, `localhost:5601` or
|
||||
`http://YOURDOMAIN.com:5601`.
|
||||
+
|
||||
image:images/Start-Page.png[Kibana start page]
|
||||
+
|
||||
. Specify an index pattern that matches the name of one or more of your Elasticsearch indices. By default, Kibana
|
||||
guesses that you're working with data being fed into Elasticsearch by Logstash. If that's the case, you can use the
|
||||
default `logstash-*` as your index pattern. The asterisk (*) matches zero or more characters in an index's name. If
|
||||
your Elasticsearch indices follow some other naming convention, enter an appropriate pattern. The "pattern" can also
|
||||
simply be the name of a single index.
|
||||
. Select the index field that contains the timestamp that you want to use to perform time-based comparisons. Kibana
|
||||
reads the index mapping to list all of the fields that contain a timestamp. If your index doesn't have time-based data,
|
||||
disable the *Index contains time-based events* option.
|
||||
. Specify an index pattern that matches the name of one or more of your Elasticsearch indices. By default,
|
||||
Kibana guesses that you're working with data being fed into Elasticsearch by Logstash. If that's the case,
|
||||
you can use the default `logstash-*` as your index pattern. The asterisk (*) matches zero or more
|
||||
characters in an index's name. If your Elasticsearch indices follow some other naming convention, enter
|
||||
an appropriate pattern. The "pattern" can also simply be the name of a single index.
|
||||
. Select the index field that contains the timestamp that you want to use to perform time-based
|
||||
comparisons. Kibana reads the index mapping to list all of the fields that contain a timestamp. If your
|
||||
index doesn't have time-based data, disable the *Index contains time-based events* option.
|
||||
+
|
||||
WARNING: Using event times to create index names is *deprecated* in this release of Kibana. Starting in the 2.1
|
||||
release, Elasticsearch includes sophisticated date parsing APIs that Kibana uses to determine date information,
|
||||
removing the need to specify dates in the index pattern name.
|
||||
WARNING: Using event times to create index names is *deprecated* in this release of Kibana. Support for
|
||||
this functionality will be removed entirely in the next major Kibana release. Elasticsearch 2.1 includes
|
||||
sophisticated date parsing APIs that Kibana uses to determine date information, removing the need to
|
||||
specify dates in the index pattern name.
|
||||
+
|
||||
. Click *Create* to add the index pattern. This first pattern is automatically configured as the default.
|
||||
When you have more than one index pattern, you can designate which one to use as the default from *Settings > Indices*.
|
||||
When you have more than one index pattern, you can designate which one to use as the default from
|
||||
*Settings > Indices*.
|
||||
|
||||
All done! Kibana is now connected to your Elasticsearch data. Kibana displays a read-only list of fields configured for
|
||||
the matching index.
|
||||
All done! Kibana is now connected to your Elasticsearch data. Kibana displays a read-only list of fields
|
||||
configured for the matching index.
|
||||
|
||||
NOTE: Kibana relies on dynamic mapping to use fields in visualizations and manage the
|
||||
`.kibana` index. If you have disabled dynamic mapping, you need to manually provide
|
||||
mappings for the fields that Kibana uses to create visualizations. For more information, see
|
||||
<<kibana-dynamic-mapping, Kibana and Elasticsearch Dynamic Mapping>>.
|
||||
|
||||
[float]
|
||||
[[explore]]
|
||||
|
@ -127,5 +83,60 @@ You're ready to dive in to your data:
|
|||
* Chart and map your data from the <<visualize, Visualize>> page.
|
||||
* Create and view custom dashboards from the <<dashboard, Dashboard>> page.
|
||||
|
||||
For a tutorial that explores these core Kibana concepts, take a look at the <<getting-started, Getting
|
||||
Started>> page.
|
||||
For a step-by-step introduction to these core Kibana concepts, see the <<getting-started,
|
||||
Getting Started>> tutorial.
|
||||
|
||||
[float]
|
||||
[[kibana-dynamic-mapping]]
|
||||
=== Kibana and Elasticsearch Dynamic Mapping
|
||||
By default, Elasticsearch enables {ref}dynamic-mapping.html[dynamic mapping] for fields. Kibana needs
|
||||
dynamic mapping to use fields in visualizations correctly, as well as to manage the `.kibana` index
|
||||
where saved searches, visualizations, and dashboards are stored.
|
||||
|
||||
If your Elasticsearch use case requires you to disable dynamic mapping, you need to manually provide
|
||||
mappings for fields that Kibana uses to create visualizations. You also need to manually enable dynamic
|
||||
mapping for the `.kibana` index.
|
||||
|
||||
The following procedure assumes that the `.kibana` index does not already exist in Elasticsearch and
|
||||
that the `index.mapper.dynamic` setting in `elasticsearch.yml` is set to `false`:
|
||||
|
||||
. Start Elasticsearch.
|
||||
. Create the `.kibana` index with dynamic mapping enabled just for that index:
|
||||
+
|
||||
[source,shell]
|
||||
PUT .kibana
|
||||
{
|
||||
"index.mapper.dynamic": true
|
||||
}
|
||||
+
|
||||
. Start Kibana and navigate to the web UI and verify that there are no error messages related to dynamic
|
||||
mapping.
|
||||
|
||||
include::kibana-repositories.asciidoc[]
|
||||
|
||||
[[upgrading-kibana]]
|
||||
=== Upgrading Kibana
|
||||
|
||||
Your existing Kibana version is generally compatible with the next minor version release of Elasticsearch.
|
||||
This means you should upgrade your Elasticsearch cluster(s) before or at the same time as Kibana.
|
||||
We cannot guarantee compatibility between major version releases so in those cases both Elasticsearch and
|
||||
Kibana must be upgraded together.
|
||||
|
||||
To upgrade Kibana:
|
||||
|
||||
. Create a https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html[snapshot]
|
||||
of the existing `.kibana` index.
|
||||
. Back up the `kibana.yml` configuration file.
|
||||
. Take note of the Kibana plugins that are installed:
|
||||
* `bin/kibana plugin --list` on 4.x versions of Kibana.
|
||||
* `bin/kibana-plugin list` on 5.x versions of Kibana.
|
||||
. To upgrade from an Archive File:
|
||||
.. Extract the new version of Kibana into a different directory. See steps below.
|
||||
.. Migrate any custom configuration from your old kibana.yml to your new one
|
||||
.. Follow other steps below to complete the new installation.
|
||||
.. Once the new version is fully configured and working with required plugins, remove the previous version
|
||||
of Kibana
|
||||
. To upgrade using a Linux Package Manager:
|
||||
.. Uninstall the existing Kibana package: `apt-get remove kibana` or `yum remove kibana`
|
||||
.. Install the new Kibana package. There have been some installer issues between various version of
|
||||
Kibana so the uninstall and install process is safer than an upgrade.
|
16
package.json
16
package.json
|
@ -128,7 +128,7 @@
|
|||
"less": "2.7.0",
|
||||
"less-loader": "2.2.3",
|
||||
"lodash": "3.10.1",
|
||||
"marked": "0.3.5",
|
||||
"marked": "0.3.6",
|
||||
"minimatch": "2.0.10",
|
||||
"mkdirp": "0.5.1",
|
||||
"moment": "2.13.0",
|
||||
|
@ -148,10 +148,15 @@
|
|||
"trunc-text": "1.0.2",
|
||||
"url-loader": "0.5.6",
|
||||
"validate-npm-package-name": "2.2.2",
|
||||
"webpack": "1.12.1",
|
||||
"webpack": "1.12.15",
|
||||
"webpack-directory-name-as-main": "1.0.0",
|
||||
"whatwg-fetch": "0.9.0",
|
||||
"wreck": "6.2.0"
|
||||
"wreck": "6.2.0",
|
||||
"body-parser": "1.12.0",
|
||||
"glob": "5.0.13",
|
||||
"node-fetch": "1.3.2",
|
||||
"pegjs": "0.9.0",
|
||||
"tinygradient": "0.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@elastic/eslint-config-kibana": "0.0.3",
|
||||
|
@ -159,6 +164,7 @@
|
|||
"angular-mocks": "1.4.7",
|
||||
"auto-release-sinon": "1.0.3",
|
||||
"babel-eslint": "4.1.8",
|
||||
"chai": "3.5.0",
|
||||
"chokidar": "1.6.0",
|
||||
"chromedriver": "2.22.1",
|
||||
"elasticdump": "2.1.1",
|
||||
|
@ -195,10 +201,12 @@
|
|||
"makelogs": "3.0.2",
|
||||
"marked-text-renderer": "0.1.0",
|
||||
"mocha": "2.5.3",
|
||||
"murmurhash3js": "3.0.1",
|
||||
"ncp": "2.0.0",
|
||||
"nock": "2.10.0",
|
||||
"nock": "8.0.0",
|
||||
"npm": "3.10.3",
|
||||
"portscanner": "1.0.0",
|
||||
"proxyquire": "1.7.10",
|
||||
"simple-git": "1.37.0",
|
||||
"sinon": "1.17.2",
|
||||
"source-map": "0.5.6",
|
||||
|
|
|
@ -5,7 +5,6 @@ import exposeClient from './expose_client';
|
|||
import migrateConfig from './migrate_config';
|
||||
import createKibanaIndex from './create_kibana_index';
|
||||
import checkEsVersion from './check_es_version';
|
||||
import manageUuid from './manage_uuid';
|
||||
const NoConnections = elasticsearch.errors.NoConnections;
|
||||
import util from 'util';
|
||||
const format = util.format;
|
||||
|
@ -19,7 +18,6 @@ const REQUEST_DELAY = 2500;
|
|||
module.exports = function (plugin, server) {
|
||||
const config = server.config();
|
||||
const client = server.plugins.elasticsearch.client;
|
||||
const uuidManagement = manageUuid(server);
|
||||
|
||||
plugin.status.yellow('Waiting for Elasticsearch');
|
||||
|
||||
|
@ -89,7 +87,6 @@ module.exports = function (plugin, server) {
|
|||
return waitForPong()
|
||||
.then(_.partial(checkEsVersion, server))
|
||||
.then(waitForShards)
|
||||
.then(uuidManagement)
|
||||
.then(setGreenStatus)
|
||||
.then(_.partial(migrateConfig, server))
|
||||
.catch(err => plugin.status.red(err));
|
||||
|
|
|
@ -1,81 +0,0 @@
|
|||
import uuid from 'node-uuid';
|
||||
import { hostname } from 'os';
|
||||
const serverHostname = hostname();
|
||||
|
||||
/* Handle different scenarios:
|
||||
* - config uuid exists, data uuid exists and matches
|
||||
* - nothing to do
|
||||
* - config uuid missing, data uuid exists
|
||||
* - set uuid from data as config uuid
|
||||
* - config uuid exists, data uuid exists but mismatches
|
||||
* - update data uuid with config uuid
|
||||
* - config uuid missing, data uuid missing
|
||||
* - generate new uuid, set in config and insert in data
|
||||
* ("config uuid" = uuid in server.config,
|
||||
* "data uuid" = uuid in .kibana index)
|
||||
*/
|
||||
export default function manageUuid(server) {
|
||||
const TYPE = 'server';
|
||||
const config = server.config();
|
||||
const serverPort = server.info.port;
|
||||
const client = server.plugins.elasticsearch.client;
|
||||
|
||||
return function uuidManagement() {
|
||||
const fieldId = `${serverHostname}-${serverPort}`;
|
||||
const kibanaIndex = config.get('kibana.index');
|
||||
let kibanaUuid = config.get('uuid');
|
||||
|
||||
function logToServer(msg) {
|
||||
server.log(['server', 'uuid', fieldId], msg);
|
||||
}
|
||||
|
||||
return client.get({
|
||||
index: kibanaIndex,
|
||||
ignore: [404],
|
||||
type: TYPE,
|
||||
id: fieldId
|
||||
}).then(result => {
|
||||
if (result.found) {
|
||||
if (kibanaUuid === result._source.uuid) {
|
||||
// config uuid exists, data uuid exists and matches
|
||||
logToServer(`Kibana instance UUID: ${kibanaUuid}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!kibanaUuid) {
|
||||
// config uuid missing, data uuid exists
|
||||
kibanaUuid = result._source.uuid;
|
||||
logToServer(`Resuming persistent Kibana instance UUID: ${kibanaUuid}`);
|
||||
config.set('uuid', kibanaUuid);
|
||||
return;
|
||||
}
|
||||
|
||||
if (kibanaUuid !== result._source.uuid) {
|
||||
// config uuid exists, data uuid exists but mismatches
|
||||
logToServer(`Updating Kibana instance UUID to: ${kibanaUuid} (was: ${result._source.uuid})`);
|
||||
return client.update({
|
||||
index: kibanaIndex,
|
||||
type: TYPE,
|
||||
id: fieldId,
|
||||
body: { doc: { uuid: kibanaUuid } }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// data uuid missing
|
||||
if (!kibanaUuid) {
|
||||
// config uuid missing
|
||||
kibanaUuid = uuid.v4();
|
||||
config.set('uuid', kibanaUuid);
|
||||
}
|
||||
|
||||
logToServer(`Setting new Kibana instance UUID: ${kibanaUuid}`);
|
||||
return client.index({
|
||||
index: kibanaIndex,
|
||||
type: TYPE,
|
||||
id: fieldId,
|
||||
body: { uuid: kibanaUuid }
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
|
@ -1,9 +1,12 @@
|
|||
import manageUuid from './server/lib/manage_uuid';
|
||||
import ingest from './server/routes/api/ingest';
|
||||
import search from './server/routes/api/search';
|
||||
import settings from './server/routes/api/settings';
|
||||
import scripts from './server/routes/api/scripts';
|
||||
import * as systemApi from './server/lib/system_api';
|
||||
|
||||
module.exports = function (kibana) {
|
||||
const kbnBaseUrl = '/app/kibana';
|
||||
return new kibana.Plugin({
|
||||
id: 'kibana',
|
||||
config: function (Joi) {
|
||||
|
@ -44,7 +47,7 @@ module.exports = function (kibana) {
|
|||
id: 'kibana:discover',
|
||||
title: 'Discover',
|
||||
order: -1003,
|
||||
url: '/app/kibana#/discover',
|
||||
url: `${kbnBaseUrl}#/discover`,
|
||||
description: 'interactively explore your data',
|
||||
icon: 'plugins/kibana/assets/discover.svg',
|
||||
},
|
||||
|
@ -52,7 +55,7 @@ module.exports = function (kibana) {
|
|||
id: 'kibana:visualize',
|
||||
title: 'Visualize',
|
||||
order: -1002,
|
||||
url: '/app/kibana#/visualize',
|
||||
url: `${kbnBaseUrl}#/visualize`,
|
||||
description: 'design data visualizations',
|
||||
icon: 'plugins/kibana/assets/visualize.svg',
|
||||
},
|
||||
|
@ -60,7 +63,7 @@ module.exports = function (kibana) {
|
|||
id: 'kibana:dashboard',
|
||||
title: 'Dashboard',
|
||||
order: -1001,
|
||||
url: '/app/kibana#/dashboard',
|
||||
url: `${kbnBaseUrl}#/dashboard`,
|
||||
description: 'compose visualizations for much win',
|
||||
icon: 'plugins/kibana/assets/dashboard.svg',
|
||||
},
|
||||
|
@ -68,7 +71,7 @@ module.exports = function (kibana) {
|
|||
id: 'kibana:management',
|
||||
title: 'Management',
|
||||
order: 1000,
|
||||
url: '/app/kibana#/management',
|
||||
url: `${kbnBaseUrl}#/management`,
|
||||
description: 'define index patterns, change config, and more',
|
||||
icon: 'plugins/kibana/assets/settings.svg',
|
||||
linkToLastSubUrl: false
|
||||
|
@ -76,16 +79,22 @@ module.exports = function (kibana) {
|
|||
],
|
||||
injectDefaultVars(server, options) {
|
||||
return {
|
||||
kbnIndex: options.index
|
||||
kbnIndex: options.index,
|
||||
kbnBaseUrl
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
init: function (server, options) {
|
||||
// uuid
|
||||
manageUuid(server);
|
||||
// routes
|
||||
ingest(server);
|
||||
search(server);
|
||||
settings(server);
|
||||
scripts(server);
|
||||
|
||||
server.expose('systemApi', systemApi);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -13,18 +13,13 @@ import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logsta
|
|||
|
||||
let $parentScope;
|
||||
let $scope;
|
||||
let config;
|
||||
let hits;
|
||||
let indexPattern;
|
||||
let indexPatternList;
|
||||
let shortDotsValue;
|
||||
|
||||
// Sets up the directive, take an element, and a list of properties to attach to the parent scope.
|
||||
const init = function ($elem, props) {
|
||||
ngMock.inject(function ($rootScope, $compile, $timeout, _config_) {
|
||||
shortDotsValue = _config_.get('shortDots:enable');
|
||||
config = _config_;
|
||||
config.set('shortDots:enable', false);
|
||||
ngMock.inject(function ($rootScope, $compile, $timeout) {
|
||||
$parentScope = $rootScope;
|
||||
_.assign($parentScope, props);
|
||||
$compile($elem)($parentScope);
|
||||
|
@ -39,7 +34,6 @@ const init = function ($elem, props) {
|
|||
const destroy = function () {
|
||||
$scope.$destroy();
|
||||
$parentScope.$destroy();
|
||||
config.set('shortDots:enable', shortDotsValue);
|
||||
};
|
||||
|
||||
describe('discover field chooser directives', function () {
|
||||
|
@ -56,7 +50,21 @@ describe('discover field chooser directives', function () {
|
|||
'</disc-field-chooser>'
|
||||
);
|
||||
|
||||
beforeEach(ngMock.module('kibana'));
|
||||
beforeEach(ngMock.module('kibana', ($provide) => {
|
||||
$provide.decorator('config', ($delegate) => {
|
||||
// disable shortDots for these tests
|
||||
$delegate.get = _.wrap($delegate.get, function (origGet, name) {
|
||||
if (name === 'shortDots:enable') {
|
||||
return false;
|
||||
} else {
|
||||
return origGet.call(this, name);
|
||||
}
|
||||
});
|
||||
|
||||
return $delegate;
|
||||
});
|
||||
}));
|
||||
|
||||
beforeEach(ngMock.inject(function (Private) {
|
||||
hits = Private(FixturesHitsProvider);
|
||||
indexPattern = Private(FixturesStubbedLogstashIndexPatternProvider);
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import expect from 'expect.js';
|
||||
import sinon from 'sinon';
|
||||
import Joi from 'joi';
|
||||
import * as kbnTestServer from '../../../../../test/utils/kbn_server.js';
|
||||
import fromRoot from '../../../../utils/from_root';
|
||||
import * as kbnTestServer from '../../../../../../test/utils/kbn_server.js';
|
||||
import fromRoot from '../../../../../utils/from_root';
|
||||
import manageUuid from '../manage_uuid';
|
||||
|
||||
describe('plugins/elasticsearch', function () {
|
||||
describe('core_plugins/kibana/server/lib', function () {
|
||||
describe('manage_uuid', function () {
|
||||
const testUuid = 'c4add484-0cba-4e05-86fe-4baa112d9e53';
|
||||
let kbnServer;
|
||||
|
@ -23,7 +23,6 @@ describe('plugins/elasticsearch', function () {
|
|||
});
|
||||
|
||||
await kbnServer.ready();
|
||||
await kbnServer.server.plugins.elasticsearch.waitUntilReady();
|
||||
});
|
||||
|
||||
// clear uuid stuff from previous test runs
|
||||
|
@ -38,53 +37,48 @@ describe('plugins/elasticsearch', function () {
|
|||
});
|
||||
|
||||
it('ensure config uuid is validated as a guid', async function () {
|
||||
config.set('uuid', testUuid);
|
||||
expect(config.get('uuid')).to.be(testUuid);
|
||||
config.set('server.uuid', testUuid);
|
||||
expect(config.get('server.uuid')).to.be(testUuid);
|
||||
|
||||
expect(() => {
|
||||
config.set('uuid', 'foouid');
|
||||
config.set('server.uuid', 'foouid');
|
||||
}).to.throwException((e) => {
|
||||
expect(e.name).to.be('ValidationError');
|
||||
});
|
||||
});
|
||||
|
||||
it('finds the previously set uuid with config match', async function () {
|
||||
const uuidManagement = manageUuid(kbnServer.server);
|
||||
const msg = `Kibana instance UUID: ${testUuid}`;
|
||||
config.set('uuid', testUuid);
|
||||
config.set('server.uuid', testUuid);
|
||||
|
||||
await uuidManagement();
|
||||
await uuidManagement();
|
||||
await manageUuid(kbnServer.server);
|
||||
await manageUuid(kbnServer.server);
|
||||
|
||||
expect(kbnServer.server.log.lastCall.args[1]).to.be.eql(msg);
|
||||
});
|
||||
|
||||
it('updates the previously set uuid with config value', async function () {
|
||||
const uuidManagement = manageUuid(kbnServer.server);
|
||||
config.set('uuid', testUuid);
|
||||
config.set('server.uuid', testUuid);
|
||||
|
||||
await uuidManagement();
|
||||
await manageUuid(kbnServer.server);
|
||||
|
||||
const newUuid = '5b2de169-2785-441b-ae8c-186a1936b17d';
|
||||
const msg = `Updating Kibana instance UUID to: ${newUuid} (was: ${testUuid})`;
|
||||
|
||||
config.set('uuid', newUuid);
|
||||
await uuidManagement();
|
||||
config.set('server.uuid', newUuid);
|
||||
await manageUuid(kbnServer.server);
|
||||
|
||||
expect(kbnServer.server.log.lastCall.args[1]).to.be(msg);
|
||||
});
|
||||
|
||||
it('resumes the uuid stored in data and sets it to the config', async function () {
|
||||
const uuidManagement = manageUuid(kbnServer.server);
|
||||
const partialMsg = 'Resuming persistent Kibana instance UUID';
|
||||
config.set('uuid'); // set to undefined
|
||||
config.set('server.uuid'); // set to undefined
|
||||
|
||||
await uuidManagement();
|
||||
await manageUuid(kbnServer.server);
|
||||
|
||||
expect(config.get('uuid')).to.be.ok(); // not undefined any more
|
||||
expect(config.get('server.uuid')).to.be.ok(); // not undefined any more
|
||||
expect(kbnServer.server.log.lastCall.args[1]).to.match(new RegExp(`^${partialMsg}`));
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
22
src/core_plugins/kibana/server/lib/__tests__/system_api.js
Normal file
22
src/core_plugins/kibana/server/lib/__tests__/system_api.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
import expect from 'expect.js';
|
||||
import { isSystemApiRequest } from '../system_api';
|
||||
|
||||
describe('system_api', () => {
|
||||
describe('#isSystemApiRequest', () => {
|
||||
it ('returns true for a system API HTTP request', () => {
|
||||
const mockHapiRequest = {
|
||||
headers: {
|
||||
'kbn-system-api': true
|
||||
}
|
||||
};
|
||||
expect(isSystemApiRequest(mockHapiRequest)).to.be(true);
|
||||
});
|
||||
|
||||
it ('returns false for a non-system API HTTP request', () => {
|
||||
const mockHapiRequest = {
|
||||
headers: {}
|
||||
};
|
||||
expect(isSystemApiRequest(mockHapiRequest)).to.be(false);
|
||||
});
|
||||
});
|
||||
});
|
72
src/core_plugins/kibana/server/lib/manage_uuid.js
Normal file
72
src/core_plugins/kibana/server/lib/manage_uuid.js
Normal file
|
@ -0,0 +1,72 @@
|
|||
import uuid from 'node-uuid';
|
||||
import Promise from 'bluebird';
|
||||
import { join as pathJoin } from 'path';
|
||||
import { readFile as readFileCallback, writeFile as writeFileCallback } from 'fs';
|
||||
|
||||
const FILE_ENCODING = 'utf8';
|
||||
|
||||
export default async function manageUuid(server) {
|
||||
const config = server.config();
|
||||
const serverPort = server.info.port;
|
||||
const serverHostname = config.get('server.host');
|
||||
const fileName = `${serverHostname}:${serverPort}`;
|
||||
const uuidFile = pathJoin(config.get('path.data'), fileName);
|
||||
|
||||
async function detectUuid() {
|
||||
const readFile = Promise.promisify(readFileCallback);
|
||||
try {
|
||||
const result = await readFile(uuidFile);
|
||||
return result.toString(FILE_ENCODING);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
async function writeUuid(uuid) {
|
||||
const writeFile = Promise.promisify(writeFileCallback);
|
||||
try {
|
||||
return await writeFile(uuidFile, uuid, { encoding: FILE_ENCODING });
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// detect if uuid exists already from before a restart
|
||||
const logToServer = (msg) => server.log(['server', 'uuid', fileName], msg);
|
||||
const dataFileUuid = await detectUuid();
|
||||
let serverConfigUuid = config.get('server.uuid'); // check if already set in config
|
||||
|
||||
if (dataFileUuid) {
|
||||
// data uuid found
|
||||
if (serverConfigUuid === dataFileUuid) {
|
||||
// config uuid exists, data uuid exists and matches
|
||||
logToServer(`Kibana instance UUID: ${dataFileUuid}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!serverConfigUuid) {
|
||||
// config uuid missing, data uuid exists
|
||||
serverConfigUuid = dataFileUuid;
|
||||
logToServer(`Resuming persistent Kibana instance UUID: ${serverConfigUuid}`);
|
||||
config.set('server.uuid', serverConfigUuid);
|
||||
return;
|
||||
}
|
||||
|
||||
if (serverConfigUuid !== dataFileUuid) {
|
||||
// config uuid exists, data uuid exists but mismatches
|
||||
logToServer(`Updating Kibana instance UUID to: ${serverConfigUuid} (was: ${dataFileUuid})`);
|
||||
return writeUuid(serverConfigUuid);
|
||||
}
|
||||
}
|
||||
|
||||
// data uuid missing
|
||||
|
||||
if (!serverConfigUuid) {
|
||||
// config uuid missing
|
||||
serverConfigUuid = uuid.v4();
|
||||
config.set('server.uuid', serverConfigUuid);
|
||||
}
|
||||
|
||||
logToServer(`Setting new Kibana instance UUID: ${serverConfigUuid}`);
|
||||
return writeUuid(serverConfigUuid);
|
||||
}
|
11
src/core_plugins/kibana/server/lib/system_api.js
Normal file
11
src/core_plugins/kibana/server/lib/system_api.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const SYSTEM_API_HEADER_NAME = 'kbn-system-api';
|
||||
|
||||
/**
|
||||
* Checks on the *server-side*, if an HTTP request is a system API request
|
||||
*
|
||||
* @param request HAPI request object
|
||||
* @return true if request is a system API request; false, otherwise
|
||||
*/
|
||||
export function isSystemApiRequest(request) {
|
||||
return !!request.headers[SYSTEM_API_HEADER_NAME];
|
||||
}
|
14
src/core_plugins/timelion/.editorconfig
Normal file
14
src/core_plugins/timelion/.editorconfig
Normal file
|
@ -0,0 +1,14 @@
|
|||
# editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = false
|
68
src/core_plugins/timelion/.eslintrc
Normal file
68
src/core_plugins/timelion/.eslintrc
Normal file
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
parser: babel-eslint
|
||||
|
||||
env:
|
||||
es6: true
|
||||
amd: true
|
||||
node: true
|
||||
browser: true
|
||||
jasmine: true
|
||||
|
||||
rules:
|
||||
block-scoped-var: 2
|
||||
camelcase: [ 2, { properties: never } ]
|
||||
comma-dangle: 0
|
||||
comma-style: [ 2, last ]
|
||||
consistent-return: 0
|
||||
curly: [ 2, multi-line ]
|
||||
dot-location: [ 2, property ]
|
||||
dot-notation: [ 2, { allowKeywords: true } ]
|
||||
eqeqeq: [ 2, allow-null ]
|
||||
guard-for-in: 2
|
||||
indent: [ 2, 2, { SwitchCase: 1 } ]
|
||||
key-spacing: [ 0, { align: value } ]
|
||||
max-len: [ 2, 140, 2, { ignoreComments: true, ignoreUrls: true } ]
|
||||
new-cap: [ 2, { capIsNewExceptions: [ Private ] } ]
|
||||
no-bitwise: 0
|
||||
no-caller: 2
|
||||
no-cond-assign: 0
|
||||
no-debugger: 2
|
||||
no-empty: 2
|
||||
no-eval: 2
|
||||
no-extend-native: 2
|
||||
no-extra-parens: 0
|
||||
no-irregular-whitespace: 2
|
||||
no-iterator: 2
|
||||
no-loop-func: 2
|
||||
no-multi-spaces: 0
|
||||
no-multi-str: 2
|
||||
no-nested-ternary: 2
|
||||
no-new: 0
|
||||
no-path-concat: 0
|
||||
no-proto: 2
|
||||
no-return-assign: 0
|
||||
no-script-url: 2
|
||||
no-sequences: 2
|
||||
no-shadow: 0
|
||||
no-trailing-spaces: 2
|
||||
no-undef: 2
|
||||
no-underscore-dangle: 0
|
||||
no-unused-expressions: 0
|
||||
no-unused-vars: 0
|
||||
no-use-before-define: [ 2, nofunc ]
|
||||
no-with: 2
|
||||
one-var: [ 2, never ]
|
||||
quotes: [ 2, single ]
|
||||
semi-spacing: [ 2, { before: false, after: true } ]
|
||||
semi: [ 2, always ]
|
||||
space-after-keywords: [ 2, always ]
|
||||
space-before-blocks: [ 2, always ]
|
||||
space-before-function-paren: [ 2, { anonymous: always, named: never } ]
|
||||
space-in-parens: [ 2, never ]
|
||||
space-infix-ops: [ 2, { int32Hint: false } ]
|
||||
space-return-throw-case: [ 2 ]
|
||||
space-unary-ops: [ 2 ]
|
||||
strict: [ 2, never ]
|
||||
valid-typeof: 2
|
||||
wrap-iife: [ 2, outside ]
|
||||
yoda: 0
|
8
src/core_plugins/timelion/bower.json
Executable file
8
src/core_plugins/timelion/bower.json
Executable file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "timelion",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"flot": "~0.8.3",
|
||||
"angular-sortable-view": "~0.0.13"
|
||||
}
|
||||
}
|
37
src/core_plugins/timelion/bower_components/angular-sortable-view/.bower.json
vendored
Normal file
37
src/core_plugins/timelion/bower_components/angular-sortable-view/.bower.json
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"name": "angular-sortable-view",
|
||||
"version": "0.0.13",
|
||||
"homepage": "http://kamilkp.github.io/angular-sortable-view/",
|
||||
"authors": [
|
||||
"Kamil Pękala <kamilkp@gmail.com>"
|
||||
],
|
||||
"description": "Fully declarative (multi)sortable for AngularJS",
|
||||
"main": "./src/angular-sortable-view.js",
|
||||
"keywords": [
|
||||
"angularjs",
|
||||
"sortable",
|
||||
"ui-sortable",
|
||||
"sort",
|
||||
"sorting",
|
||||
"declarative"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests",
|
||||
"lib"
|
||||
],
|
||||
"_release": "0.0.13",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.0.13",
|
||||
"commit": "187250cb1cfbd25096185049bded7bcedeab4dbd"
|
||||
},
|
||||
"_source": "git://github.com/kamilkp/angular-sortable-view.git",
|
||||
"_target": "~0.0.13",
|
||||
"_originalSource": "angular-sortable-view",
|
||||
"_direct": true
|
||||
}
|
86
src/core_plugins/timelion/bower_components/angular-sortable-view/CHANGELOG.md
vendored
Normal file
86
src/core_plugins/timelion/bower_components/angular-sortable-view/CHANGELOG.md
vendored
Normal file
|
@ -0,0 +1,86 @@
|
|||
Version 0.0.13 - 2015/01/13
|
||||
================
|
||||
|
||||
* bug fixes
|
||||
|
||||
Version 0.0.12 - 2014/12/09
|
||||
================
|
||||
|
||||
* bug fixes
|
||||
|
||||
Version 0.0.11 - 2014/11/28
|
||||
================
|
||||
|
||||
* touch support
|
||||
|
||||
Version 0.0.9 - 2014/09/11
|
||||
================
|
||||
|
||||
* fixed a bug where `$digest` hasn't been called after `sv-on-start` handler
|
||||
* added a `sv-on-stop` optional attribute. Function bound there will be called when dragging ended regardless of the fact whether elements have been reordered or not
|
||||
|
||||
Version 0.0.8 - 2014/07/15
|
||||
================
|
||||
|
||||
* fixed a bug where nothing within an element without handle could have been clicked
|
||||
|
||||
|
||||
Version 0.0.7 - 2014/07/02
|
||||
================
|
||||
|
||||
You can now use these optional attributes on the element with `sv-root`:
|
||||
* `sv-on-sort` - The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting. Several parameters can be injected there like: `sv-on-sort="foo($item, $partFrom, $partTo, $indexFrom, $indexTo)"` where:
|
||||
<ul>
|
||||
<li>`$item` is the item in model which has been moved</li>
|
||||
<li>`$partFrom` is the part from which the $item originated</li>
|
||||
<li>`$partTo` is the part to which the $item has been moved</li>
|
||||
<li>`$indexFrom` is the previous index of the $item in $partFrom</li>
|
||||
<li>`$indedTo` is the index of the $item in $partTo</li>
|
||||
</ul>
|
||||
</li>
|
||||
* `sv-on-start` - The expression passed as a value of that attribute will be evaluated when a user starts moving an element. Several parameters can be injected there like: `sv-on-start="bar($item, $part, $index, $helper)"` where:
|
||||
<ul>
|
||||
<li>`$item` is the item in model which started being moved</li>
|
||||
<li>`$part` is the part from which the $item originates</li>
|
||||
<li>`$index` is the index of the $item in $part</li>
|
||||
<li>`$helper` is the jqLite/jQuery object of an element that is being dragged around</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Version 0.0.6 - 2014/07/01
|
||||
================
|
||||
|
||||
* You can now listen for resorting. An `sv-on-sort` attribute can be now placed on an element with `sv-root`. The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting.
|
||||
|
||||
Version 0.0.5 - 2014/06/26
|
||||
================
|
||||
|
||||
* source element for sorting is now detached from DOM instead of giving him `display: none`
|
||||
|
||||
Version 0.0.4 - 2014/06/25
|
||||
================
|
||||
|
||||
* Fixed the issue with helper styles
|
||||
* Dropped the need for the browser to support pointer-events CSS property
|
||||
* Added the project to the bower registy, it is available to download via `bower install angular-sortable-view`
|
||||
|
||||
Version 0.0.3 - 2014/06/11
|
||||
================
|
||||
|
||||
* Added support for custom placeholders
|
||||
* Better containment handling
|
||||
* Bug fixes
|
||||
* BREAKING CHANGE: the module name is now `angular-sortable-view`
|
||||
|
||||
Version 0.0.2 - 2014/06/11
|
||||
================
|
||||
|
||||
* Added support for empty lists
|
||||
* Added support for custom helpers
|
||||
|
||||
Version 0.0.1
|
||||
================
|
||||
|
||||
* Support for setting a containment
|
||||
* Support for multiple sortable lists connected with each other
|
||||
* Support for specifying a handle element
|
43
src/core_plugins/timelion/bower_components/angular-sortable-view/Gruntfile.js
vendored
Normal file
43
src/core_plugins/timelion/bower_components/angular-sortable-view/Gruntfile.js
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
module.exports = function(grunt){
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
// grunt.loadNpmTasks('grunt-karma');
|
||||
|
||||
grunt.initConfig({
|
||||
uglify: {
|
||||
target: {
|
||||
files: {
|
||||
'src/angular-sortable-view.min.js': ['src/angular-sortable-view.js']
|
||||
}
|
||||
},
|
||||
options: {
|
||||
banner: '/*\n\tCopyright Kamil Pękala http://github.com/kamilkp\n' +
|
||||
'\tangular-sortable-view v0.0.13 2015/01/13\n*/\n'
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
all: [
|
||||
'src/angular-sortable-view.js',
|
||||
'Gruntfile.js'
|
||||
]
|
||||
}//,
|
||||
// karma: {
|
||||
// unit: {
|
||||
// configFile: 'karma.conf.js',
|
||||
// singleRun: true,
|
||||
// },
|
||||
// travis: {
|
||||
// configFile: 'karma.conf.js',
|
||||
// singleRun: true,
|
||||
// browsers: [
|
||||
// 'Firefox'
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
});
|
||||
|
||||
grunt.registerTask('min', 'Minify javascript source code', 'uglify');
|
||||
// grunt.registerTask('test', 'Run unit tests', ['jshint', 'min', 'karma:unit']);
|
||||
// grunt.registerTask('default', ['test']);
|
||||
// grunt.registerTask('travis', ['jshint', 'min', 'karma:travis']);
|
||||
};
|
21
src/core_plugins/timelion/bower_components/angular-sortable-view/LICENSE
vendored
Normal file
21
src/core_plugins/timelion/bower_components/angular-sortable-view/LICENSE
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 kamilkp
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
159
src/core_plugins/timelion/bower_components/angular-sortable-view/README.md
vendored
Normal file
159
src/core_plugins/timelion/bower_components/angular-sortable-view/README.md
vendored
Normal file
|
@ -0,0 +1,159 @@
|
|||
angular-sortable-view v0.0.13 [](http://badge.fury.io/bo/angular-sortable-view)
|
||||
=================
|
||||
|
||||
Fully declarative (multi)sortable for AngularJS
|
||||
|
||||
Demo: http://kamilkp.github.io/angular-sortable-view/
|
||||
|
||||
You can find the source code for this demo on branch "gh-pages".
|
||||
|
||||
Also see the changelog [here](https://github.com/kamilkp/angular-sortable-view/blob/master/CHANGELOG.md)
|
||||
|
||||
###DESCRIPTION:
|
||||
|
||||
This is a simple library written as a module for [AngularJS](https://github.com/angular/angular.js) for sorting elements in the UI. It supports both single elements list, and multiple connected lists, where an element can be moved from one to another.
|
||||
|
||||
This library requires ***no dependencies whatsoever*** (except angular.js of course), so ***you no longer need to include jQuery and jQueryUI and angularUI*** which altogether gives the size of around ***340kB minified***. Whereas the [angular-sortable-view](https://github.com/kamilkp/angular-sortable-view) is only ***5kB minified!***.
|
||||
|
||||
###API:
|
||||
|
||||
The API is declarative. There are four directives (hooked on attributes) that need to be nested properly:
|
||||
|
||||
* `sv-root` - this is where all the logic is happening. If multiple lists should be connected with each other so that elements can be moved between them and they have a common ancestor, put this attribute on that element. If not and you still want the multi-sortable behaviour a value for that attribue must be provided. That value will be used as an identifier to connect those roots together.
|
||||
**Optional attributes:**
|
||||
* `sv-on-sort` - The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting. Several parameters can be injected there like: `sv-on-sort="foo($item, $partFrom, $partTo, $indexFrom, $indexTo)"` where:
|
||||
<ul>
|
||||
<li>`$item` is the item in model which has been moved</li>
|
||||
<li>`$partFrom` is the part from which the $item originated</li>
|
||||
<li>`$partTo` is the part to which the $item has been moved</li>
|
||||
<li>`$indexFrom` is the previous index of the $item in $partFrom</li>
|
||||
<li>`$indexTo` is the index of the $item in $partTo</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>`sv-on-start` - The expression passed as a value of that attribute will be evaluated when a user starts moving an element. Several parameters can be injected there like: `sv-on-start="bar($item, $part, $index, $helper)"` where:
|
||||
<ul>
|
||||
<li>`$item` is the item in model which started being moved</li>
|
||||
<li>`$part` is the part from which the $item originates</li>
|
||||
<li>`$index` is the index of the $item in $part</li>
|
||||
<li>`$helper` is the jqLite/jQuery object of an element that is being dragged around</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>`sv-on-stop` - The expression passed as a value of that attribute will be evaluated when a user stops moving an element (drops it). This will be called regardless of the fact whether elements have been reordered or now. Several parameters can be injected there like: `sv-on-end="baz($item, $part, $index)"` where:
|
||||
<ul>
|
||||
<li>`$item` is the item in model which started being moved</li>
|
||||
<li>`$part` is the part from which the $item originates</li>
|
||||
<li>`$index` is the index of the $item in $part</li>
|
||||
</ul>
|
||||
</li>
|
||||
* `sv-part` - this attribute should be placed on an element that is a container for the `ngRepeat`'ed elements. Its value should be the same as the right hand side expression in `ng-repeat` attribute.
|
||||
* `sv-element` - this attribute should be placed on the same element as `ng-repeat` attribute. Its (optional) value should be an expression that evaluates to the options object.
|
||||
* `sv-handle` - this attribute is optional. If needed it can be placed on an element within the sortable element. This element will be the handle for sorting operations.
|
||||
* `sv-helper` - the element with this attribute will serve as a custom helper for sorting operations
|
||||
* `sv-placeholder` - the element with this attribute will serve as a custom placeholder for sorting operations
|
||||
|
||||
###Example of single sortable list
|
||||
|
||||
```html
|
||||
<div sv-root sv-part="modelArray">
|
||||
<div ng-repeat="item in modelArray" sv-element>
|
||||
<div>{{item}}</div>
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
###Example of multiple sortable lists with common ancestor
|
||||
|
||||
```html
|
||||
<div sv-root>
|
||||
<div sv-part="modelArray1">
|
||||
<div ng-repeat="item in modelArray1" sv-element>
|
||||
<div>{{item}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div sv-part="modelArray2">
|
||||
<div ng-repeat="item in modelArray2" sv-element>
|
||||
<div>{{item}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
###Example of multiple sortable lists without common ancestor
|
||||
|
||||
```html
|
||||
<div>
|
||||
<div sv-root="someUniqueId" sv-part="modelArray1">
|
||||
<div ng-repeat="item in modelArray1" sv-element>
|
||||
<div>{{item}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div sv-root="someUniqueId" sv-part="modelArray2">
|
||||
<div ng-repeat="item in modelArray2" sv-element>
|
||||
<div>{{item}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
###Example of using handles
|
||||
|
||||
```html
|
||||
<div sv-root sv-part="modelArray">
|
||||
<div ng-repeat="item in modelArray" sv-element>
|
||||
<div>{{item}}</div>
|
||||
<span sv-handle>`
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
###Example of using custom helpers per part
|
||||
|
||||
```html
|
||||
<div sv-root sv-part="modelArray">
|
||||
<div sv-helper>
|
||||
custom helper
|
||||
</div>
|
||||
<div ng-repeat="item in modelArray" sv-element>
|
||||
{{item}}
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
###Example of using custom helpers per element
|
||||
|
||||
```html
|
||||
<div sv-root sv-part="modelArray">
|
||||
<div ng-repeat="item in modelArray" sv-element>
|
||||
<div sv-helper>
|
||||
custom helper {{item}}
|
||||
</div>
|
||||
{{item}}
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
###Example of using custom placeholders per part
|
||||
|
||||
```html
|
||||
<div sv-root sv-part="modelArray">
|
||||
<div sv-placeholder>
|
||||
custom placeholder
|
||||
</div>
|
||||
<div ng-repeat="item in modelArray" sv-element>
|
||||
{{item}}
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
###Example of using custom placeholders per element
|
||||
|
||||
```html
|
||||
<div sv-root sv-part="modelArray">
|
||||
<div ng-repeat="item in modelArray" sv-element>
|
||||
<div sv-placeholder>
|
||||
custom placeholder {{item}}
|
||||
</div>
|
||||
{{item}}
|
||||
</div>
|
||||
</div>
|
||||
```
|
27
src/core_plugins/timelion/bower_components/angular-sortable-view/bower.json
vendored
Normal file
27
src/core_plugins/timelion/bower_components/angular-sortable-view/bower.json
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"name": "angular-sortable-view",
|
||||
"version": "0.0.13",
|
||||
"homepage": "http://kamilkp.github.io/angular-sortable-view/",
|
||||
"authors": [
|
||||
"Kamil Pękala <kamilkp@gmail.com>"
|
||||
],
|
||||
"description": "Fully declarative (multi)sortable for AngularJS",
|
||||
"main": "./src/angular-sortable-view.js",
|
||||
"keywords": [
|
||||
"angularjs",
|
||||
"sortable",
|
||||
"ui-sortable",
|
||||
"sort",
|
||||
"sorting",
|
||||
"declarative"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests",
|
||||
"lib"
|
||||
]
|
||||
}
|
24
src/core_plugins/timelion/bower_components/angular-sortable-view/package.json
vendored
Normal file
24
src/core_plugins/timelion/bower_components/angular-sortable-view/package.json
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "angular-sortable-view",
|
||||
"version": "0.0.13",
|
||||
"description": "Fully declarative (multi)sortable for AngularJS",
|
||||
"homepage": "http://kamilkp.github.io/angular-sortable-view",
|
||||
"author": {
|
||||
"name": "Kamil Pekala",
|
||||
"email": "kamilkp@gmail.com",
|
||||
"url": "http://github.com/kamilkp"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/kamilkp/angular-sortable-view.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-contrib-jshint": "^0.10.0",
|
||||
"grunt-contrib-uglify": "^0.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "grunt travis"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
625
src/core_plugins/timelion/bower_components/angular-sortable-view/src/angular-sortable-view.js
vendored
Normal file
625
src/core_plugins/timelion/bower_components/angular-sortable-view/src/angular-sortable-view.js
vendored
Normal file
|
@ -0,0 +1,625 @@
|
|||
//
|
||||
// Copyright Kamil Pękala http://github.com/kamilkp
|
||||
// angular-sortable-view v0.0.13 2015/01/13
|
||||
//
|
||||
|
||||
;(function(window, angular){
|
||||
'use strict';
|
||||
/* jshint eqnull:true */
|
||||
/* jshint -W041 */
|
||||
/* jshint -W030 */
|
||||
|
||||
var module = angular.module('angular-sortable-view', []);
|
||||
module.directive('svRoot', [function(){
|
||||
function shouldBeAfter(elem, pointer, isGrid){
|
||||
return isGrid ? elem.x - pointer.x < 0 : elem.y - pointer.y < 0;
|
||||
}
|
||||
function getSortableElements(key){
|
||||
return ROOTS_MAP[key];
|
||||
}
|
||||
function removeSortableElements(key){
|
||||
delete ROOTS_MAP[key];
|
||||
}
|
||||
|
||||
var sortingInProgress;
|
||||
var ROOTS_MAP = Object.create(null);
|
||||
// window.ROOTS_MAP = ROOTS_MAP; // for debug purposes
|
||||
|
||||
return {
|
||||
restrict: 'A',
|
||||
controller: ['$scope', '$attrs', '$interpolate', '$parse', function($scope, $attrs, $interpolate, $parse){
|
||||
var mapKey = $interpolate($attrs.svRoot)($scope) || $scope.$id;
|
||||
if(!ROOTS_MAP[mapKey]) ROOTS_MAP[mapKey] = [];
|
||||
|
||||
var that = this;
|
||||
var candidates; // set of possible destinations
|
||||
var $placeholder;// placeholder element
|
||||
var options; // sortable options
|
||||
var $helper; // helper element - the one thats being dragged around with the mouse pointer
|
||||
var $original; // original element
|
||||
var $target; // last best candidate
|
||||
var isGrid = false;
|
||||
var onSort = $parse($attrs.svOnSort);
|
||||
|
||||
// ----- hack due to https://github.com/angular/angular.js/issues/8044
|
||||
$attrs.svOnStart = $attrs.$$element[0].attributes['sv-on-start'];
|
||||
$attrs.svOnStart = $attrs.svOnStart && $attrs.svOnStart.value;
|
||||
|
||||
$attrs.svOnStop = $attrs.$$element[0].attributes['sv-on-stop'];
|
||||
$attrs.svOnStop = $attrs.svOnStop && $attrs.svOnStop.value;
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
var onStart = $parse($attrs.svOnStart);
|
||||
var onStop = $parse($attrs.svOnStop);
|
||||
|
||||
this.sortingInProgress = function(){
|
||||
return sortingInProgress;
|
||||
};
|
||||
|
||||
if($attrs.svGrid){ // sv-grid determined explicite
|
||||
isGrid = $attrs.svGrid === "true" ? true : $attrs.svGrid === "false" ? false : null;
|
||||
if(isGrid === null)
|
||||
throw 'Invalid value of sv-grid attribute';
|
||||
}
|
||||
else{
|
||||
// check if at least one of the lists have a grid like layout
|
||||
$scope.$watchCollection(function(){
|
||||
return getSortableElements(mapKey);
|
||||
}, function(collection){
|
||||
isGrid = false;
|
||||
var array = collection.filter(function(item){
|
||||
return !item.container;
|
||||
}).map(function(item){
|
||||
return {
|
||||
part: item.getPart().id,
|
||||
y: item.element[0].getBoundingClientRect().top
|
||||
};
|
||||
});
|
||||
var dict = Object.create(null);
|
||||
array.forEach(function(item){
|
||||
if(dict[item.part])
|
||||
dict[item.part].push(item.y);
|
||||
else
|
||||
dict[item.part] = [item.y];
|
||||
});
|
||||
Object.keys(dict).forEach(function(key){
|
||||
dict[key].sort();
|
||||
dict[key].forEach(function(item, index){
|
||||
if(index < dict[key].length - 1){
|
||||
if(item > 0 && item === dict[key][index + 1]){
|
||||
isGrid = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
this.$moveUpdate = function(opts, mouse, svElement, svOriginal, svPlaceholder, originatingPart, originatingIndex){
|
||||
var svRect = svElement[0].getBoundingClientRect();
|
||||
if(opts.tolerance === 'element')
|
||||
mouse = {
|
||||
x: ~~(svRect.left + svRect.width/2),
|
||||
y: ~~(svRect.top + svRect.height/2)
|
||||
};
|
||||
|
||||
sortingInProgress = true;
|
||||
candidates = [];
|
||||
if(!$placeholder){
|
||||
if(svPlaceholder){ // custom placeholder
|
||||
$placeholder = svPlaceholder.clone();
|
||||
$placeholder.removeClass('ng-hide');
|
||||
}
|
||||
else{ // default placeholder
|
||||
$placeholder = svOriginal.clone();
|
||||
$placeholder.addClass('sv-visibility-hidden');
|
||||
$placeholder.addClass('sv-placeholder');
|
||||
$placeholder.css({
|
||||
'height': svRect.height + 'px',
|
||||
'width': svRect.width + 'px'
|
||||
});
|
||||
}
|
||||
|
||||
svOriginal.after($placeholder);
|
||||
svOriginal.addClass('ng-hide');
|
||||
|
||||
// cache options, helper and original element reference
|
||||
$original = svOriginal;
|
||||
options = opts;
|
||||
$helper = svElement;
|
||||
|
||||
onStart($scope, {
|
||||
$helper: $helper,
|
||||
$part: originatingPart.model(originatingPart.scope),
|
||||
$index: originatingIndex,
|
||||
$item: originatingPart.model(originatingPart.scope)[originatingIndex]
|
||||
});
|
||||
$scope.$root && $scope.$root.$$phase || $scope.$apply();
|
||||
}
|
||||
|
||||
// ----- move the element
|
||||
$helper[0].reposition({
|
||||
x: mouse.x + document.body.scrollLeft - mouse.offset.x*svRect.width,
|
||||
y: mouse.y + document.body.scrollTop - mouse.offset.y*svRect.height
|
||||
});
|
||||
|
||||
// ----- manage candidates
|
||||
getSortableElements(mapKey).forEach(function(se, index){
|
||||
if(opts.containment != null){
|
||||
// TODO: optimize this since it could be calculated only once when the moving begins
|
||||
if(
|
||||
!elementMatchesSelector(se.element, opts.containment) &&
|
||||
!elementMatchesSelector(se.element, opts.containment + ' *')
|
||||
) return; // element is not within allowed containment
|
||||
}
|
||||
var rect = se.element[0].getBoundingClientRect();
|
||||
var center = {
|
||||
x: ~~(rect.left + rect.width/2),
|
||||
y: ~~(rect.top + rect.height/2)
|
||||
};
|
||||
if(!se.container && // not the container element
|
||||
(se.element[0].scrollHeight || se.element[0].scrollWidth)){ // element is visible
|
||||
candidates.push({
|
||||
element: se.element,
|
||||
q: (center.x - mouse.x)*(center.x - mouse.x) + (center.y - mouse.y)*(center.y - mouse.y),
|
||||
view: se.getPart(),
|
||||
targetIndex: se.getIndex(),
|
||||
after: shouldBeAfter(center, mouse, isGrid)
|
||||
});
|
||||
}
|
||||
if(se.container && !se.element[0].querySelector('[sv-element]:not(.sv-placeholder):not(.sv-source)')){ // empty container
|
||||
candidates.push({
|
||||
element: se.element,
|
||||
q: (center.x - mouse.x)*(center.x - mouse.x) + (center.y - mouse.y)*(center.y - mouse.y),
|
||||
view: se.getPart(),
|
||||
targetIndex: 0,
|
||||
container: true
|
||||
});
|
||||
}
|
||||
});
|
||||
var pRect = $placeholder[0].getBoundingClientRect();
|
||||
var pCenter = {
|
||||
x: ~~(pRect.left + pRect.width/2),
|
||||
y: ~~(pRect.top + pRect.height/2)
|
||||
};
|
||||
candidates.push({
|
||||
q: (pCenter.x - mouse.x)*(pCenter.x - mouse.x) + (pCenter.y - mouse.y)*(pCenter.y - mouse.y),
|
||||
element: $placeholder,
|
||||
placeholder: true
|
||||
});
|
||||
candidates.sort(function(a, b){
|
||||
return a.q - b.q;
|
||||
});
|
||||
|
||||
candidates.forEach(function(cand, index){
|
||||
if(index === 0 && !cand.placeholder && !cand.container){
|
||||
$target = cand;
|
||||
cand.element.addClass('sv-candidate');
|
||||
if(cand.after)
|
||||
cand.element.after($placeholder);
|
||||
else
|
||||
insertElementBefore(cand.element, $placeholder);
|
||||
}
|
||||
else if(index === 0 && cand.container){
|
||||
$target = cand;
|
||||
cand.element.append($placeholder);
|
||||
}
|
||||
else
|
||||
cand.element.removeClass('sv-candidate');
|
||||
});
|
||||
};
|
||||
|
||||
this.$drop = function(originatingPart, index, options){
|
||||
if(!$placeholder) return;
|
||||
|
||||
if(options.revert){
|
||||
var placeholderRect = $placeholder[0].getBoundingClientRect();
|
||||
var helperRect = $helper[0].getBoundingClientRect();
|
||||
var distance = Math.sqrt(
|
||||
Math.pow(helperRect.top - placeholderRect.top, 2) +
|
||||
Math.pow(helperRect.left - placeholderRect.left, 2)
|
||||
);
|
||||
|
||||
var duration = +options.revert*distance/200; // constant speed: duration depends on distance
|
||||
duration = Math.min(duration, +options.revert); // however it's not longer that options.revert
|
||||
|
||||
['-webkit-', '-moz-', '-ms-', '-o-', ''].forEach(function(prefix){
|
||||
if(typeof $helper[0].style[prefix + 'transition'] !== "undefined")
|
||||
$helper[0].style[prefix + 'transition'] = 'all ' + duration + 'ms ease';
|
||||
});
|
||||
setTimeout(afterRevert, duration);
|
||||
$helper.css({
|
||||
'top': placeholderRect.top + document.body.scrollTop + 'px',
|
||||
'left': placeholderRect.left + document.body.scrollLeft + 'px'
|
||||
});
|
||||
}
|
||||
else
|
||||
afterRevert();
|
||||
|
||||
function afterRevert(){
|
||||
sortingInProgress = false;
|
||||
$placeholder.remove();
|
||||
$helper.remove();
|
||||
$original.removeClass('ng-hide');
|
||||
|
||||
candidates = void 0;
|
||||
$placeholder = void 0;
|
||||
options = void 0;
|
||||
$helper = void 0;
|
||||
$original = void 0;
|
||||
|
||||
// sv-on-stop callback
|
||||
onStop($scope, {
|
||||
$part: originatingPart.model(originatingPart.scope),
|
||||
$index: index,
|
||||
$item: originatingPart.model(originatingPart.scope)[index]
|
||||
});
|
||||
|
||||
if($target){
|
||||
$target.element.removeClass('sv-candidate');
|
||||
var spliced = originatingPart.model(originatingPart.scope).splice(index, 1);
|
||||
var targetIndex = $target.targetIndex;
|
||||
if($target.view === originatingPart && $target.targetIndex > index)
|
||||
targetIndex--;
|
||||
if($target.after)
|
||||
targetIndex++;
|
||||
$target.view.model($target.view.scope).splice(targetIndex, 0, spliced[0]);
|
||||
|
||||
// sv-on-sort callback
|
||||
if($target.view !== originatingPart || index !== targetIndex)
|
||||
onSort($scope, {
|
||||
$partTo: $target.view.model($target.view.scope),
|
||||
$partFrom: originatingPart.model(originatingPart.scope),
|
||||
$item: spliced[0],
|
||||
$indexTo: targetIndex,
|
||||
$indexFrom: index
|
||||
});
|
||||
|
||||
}
|
||||
$target = void 0;
|
||||
|
||||
$scope.$root && $scope.$root.$$phase || $scope.$apply();
|
||||
}
|
||||
};
|
||||
|
||||
this.addToSortableElements = function(se){
|
||||
getSortableElements(mapKey).push(se);
|
||||
};
|
||||
this.removeFromSortableElements = function(se){
|
||||
var elems = getSortableElements(mapKey);
|
||||
var index = elems.indexOf(se);
|
||||
if(index > -1){
|
||||
elems.splice(index, 1);
|
||||
if(elems.length === 0)
|
||||
removeSortableElements(mapKey);
|
||||
}
|
||||
};
|
||||
}]
|
||||
};
|
||||
}]);
|
||||
|
||||
module.directive('svPart', ['$parse', function($parse){
|
||||
return {
|
||||
restrict: 'A',
|
||||
require: '^svRoot',
|
||||
controller: ['$scope', function($scope){
|
||||
$scope.$ctrl = this;
|
||||
this.getPart = function(){
|
||||
return $scope.part;
|
||||
};
|
||||
this.$drop = function(index, options){
|
||||
$scope.$sortableRoot.$drop($scope.part, index, options);
|
||||
};
|
||||
}],
|
||||
scope: true,
|
||||
link: function($scope, $element, $attrs, $sortable){
|
||||
if(!$attrs.svPart) throw new Error('no model provided');
|
||||
var model = $parse($attrs.svPart);
|
||||
if(!model.assign) throw new Error('model not assignable');
|
||||
|
||||
$scope.part = {
|
||||
id: $scope.$id,
|
||||
element: $element,
|
||||
model: model,
|
||||
scope: $scope
|
||||
};
|
||||
$scope.$sortableRoot = $sortable;
|
||||
|
||||
var sortablePart = {
|
||||
element: $element,
|
||||
getPart: $scope.$ctrl.getPart,
|
||||
container: true
|
||||
};
|
||||
$sortable.addToSortableElements(sortablePart);
|
||||
$scope.$on('$destroy', function(){
|
||||
$sortable.removeFromSortableElements(sortablePart);
|
||||
});
|
||||
}
|
||||
};
|
||||
}]);
|
||||
|
||||
module.directive('svElement', ['$parse', function($parse){
|
||||
return {
|
||||
restrict: 'A',
|
||||
require: ['^svPart', '^svRoot'],
|
||||
controller: ['$scope', function($scope){
|
||||
$scope.$ctrl = this;
|
||||
}],
|
||||
link: function($scope, $element, $attrs, $controllers){
|
||||
var sortableElement = {
|
||||
element: $element,
|
||||
getPart: $controllers[0].getPart,
|
||||
getIndex: function(){
|
||||
return $scope.$index;
|
||||
}
|
||||
};
|
||||
$controllers[1].addToSortableElements(sortableElement);
|
||||
$scope.$on('$destroy', function(){
|
||||
$controllers[1].removeFromSortableElements(sortableElement);
|
||||
});
|
||||
|
||||
var handle = $element;
|
||||
handle.on('mousedown touchstart', onMousedown);
|
||||
$scope.$watch('$ctrl.handle', function(customHandle){
|
||||
if(customHandle){
|
||||
handle.off('mousedown touchstart', onMousedown);
|
||||
handle = customHandle;
|
||||
handle.on('mousedown touchstart', onMousedown);
|
||||
}
|
||||
});
|
||||
|
||||
var helper;
|
||||
$scope.$watch('$ctrl.helper', function(customHelper){
|
||||
if(customHelper){
|
||||
helper = customHelper;
|
||||
}
|
||||
});
|
||||
|
||||
var placeholder;
|
||||
$scope.$watch('$ctrl.placeholder', function(customPlaceholder){
|
||||
if(customPlaceholder){
|
||||
placeholder = customPlaceholder;
|
||||
}
|
||||
});
|
||||
|
||||
var body = angular.element(document.body);
|
||||
var html = angular.element(document.documentElement);
|
||||
|
||||
var moveExecuted;
|
||||
|
||||
function onMousedown(e){
|
||||
touchFix(e);
|
||||
|
||||
if($controllers[1].sortingInProgress()) return;
|
||||
if(e.button != 0 && e.type === 'mousedown') return;
|
||||
|
||||
moveExecuted = false;
|
||||
var opts = $parse($attrs.svElement)($scope);
|
||||
opts = angular.extend({}, {
|
||||
tolerance: 'pointer',
|
||||
revert: 200,
|
||||
containment: 'html'
|
||||
}, opts);
|
||||
if(opts.containment){
|
||||
var containmentRect = closestElement.call($element, opts.containment)[0].getBoundingClientRect();
|
||||
}
|
||||
|
||||
var target = $element;
|
||||
var clientRect = $element[0].getBoundingClientRect();
|
||||
var clone;
|
||||
|
||||
if(!helper) helper = $controllers[0].helper;
|
||||
if(!placeholder) placeholder = $controllers[0].placeholder;
|
||||
if(helper){
|
||||
clone = helper.clone();
|
||||
clone.removeClass('ng-hide');
|
||||
clone.css({
|
||||
'left': clientRect.left + document.body.scrollLeft + 'px',
|
||||
'top': clientRect.top + document.body.scrollTop + 'px'
|
||||
});
|
||||
target.addClass('sv-visibility-hidden');
|
||||
}
|
||||
else{
|
||||
clone = target.clone();
|
||||
clone.addClass('sv-helper').css({
|
||||
'left': clientRect.left + document.body.scrollLeft + 'px',
|
||||
'top': clientRect.top + document.body.scrollTop + 'px',
|
||||
'width': clientRect.width + 'px'
|
||||
});
|
||||
}
|
||||
|
||||
clone[0].reposition = function(coords){
|
||||
var targetLeft = coords.x;
|
||||
var targetTop = coords.y;
|
||||
var helperRect = clone[0].getBoundingClientRect();
|
||||
|
||||
var body = document.body;
|
||||
|
||||
if(containmentRect){
|
||||
if(targetTop < containmentRect.top + body.scrollTop) // top boundary
|
||||
targetTop = containmentRect.top + body.scrollTop;
|
||||
if(targetTop + helperRect.height > containmentRect.top + body.scrollTop + containmentRect.height) // bottom boundary
|
||||
targetTop = containmentRect.top + body.scrollTop + containmentRect.height - helperRect.height;
|
||||
if(targetLeft < containmentRect.left + body.scrollLeft) // left boundary
|
||||
targetLeft = containmentRect.left + body.scrollLeft;
|
||||
if(targetLeft + helperRect.width > containmentRect.left + body.scrollLeft + containmentRect.width) // right boundary
|
||||
targetLeft = containmentRect.left + body.scrollLeft + containmentRect.width - helperRect.width;
|
||||
}
|
||||
this.style.left = targetLeft - body.scrollLeft + 'px';
|
||||
this.style.top = targetTop - body.scrollTop + 'px';
|
||||
};
|
||||
|
||||
var pointerOffset = {
|
||||
x: (e.clientX - clientRect.left)/clientRect.width,
|
||||
y: (e.clientY - clientRect.top)/clientRect.height
|
||||
};
|
||||
html.addClass('sv-sorting-in-progress');
|
||||
html.on('mousemove touchmove', onMousemove).on('mouseup touchend touchcancel', function mouseup(e){
|
||||
html.off('mousemove touchmove', onMousemove);
|
||||
html.off('mouseup touchend', mouseup);
|
||||
html.removeClass('sv-sorting-in-progress');
|
||||
if(moveExecuted)
|
||||
$controllers[0].$drop($scope.$index, opts);
|
||||
else
|
||||
$element.removeClass('sv-visibility-hidden');
|
||||
});
|
||||
|
||||
// onMousemove(e);
|
||||
function onMousemove(e){
|
||||
touchFix(e);
|
||||
if(!moveExecuted){
|
||||
$element.parent().prepend(clone);
|
||||
moveExecuted = true;
|
||||
}
|
||||
$controllers[1].$moveUpdate(opts, {
|
||||
x: e.clientX,
|
||||
y: e.clientY,
|
||||
offset: pointerOffset
|
||||
}, clone, $element, placeholder, $controllers[0].getPart(), $scope.$index);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}]);
|
||||
|
||||
module.directive('svHandle', function(){
|
||||
return {
|
||||
require: '?^svElement',
|
||||
link: function($scope, $element, $attrs, $ctrl){
|
||||
if($ctrl)
|
||||
$ctrl.handle = $element.add($ctrl.handle); // support multiple handles
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
module.directive('svHelper', function(){
|
||||
return {
|
||||
require: ['?^svPart', '?^svElement'],
|
||||
link: function($scope, $element, $attrs, $ctrl){
|
||||
$element.addClass('sv-helper').addClass('ng-hide');
|
||||
if($ctrl[1])
|
||||
$ctrl[1].helper = $element;
|
||||
else if($ctrl[0])
|
||||
$ctrl[0].helper = $element;
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
module.directive('svPlaceholder', function(){
|
||||
return {
|
||||
require: ['?^svPart', '?^svElement'],
|
||||
link: function($scope, $element, $attrs, $ctrl){
|
||||
$element.addClass('sv-placeholder').addClass('ng-hide');
|
||||
if($ctrl[1])
|
||||
$ctrl[1].placeholder = $element;
|
||||
else if($ctrl[0])
|
||||
$ctrl[0].placeholder = $element;
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
angular.element(document.head).append([
|
||||
'<style>' +
|
||||
'.sv-helper{' +
|
||||
'position: fixed !important;' +
|
||||
'z-index: 99999;' +
|
||||
'margin: 0 !important;' +
|
||||
'}' +
|
||||
'.sv-candidate{' +
|
||||
'}' +
|
||||
'.sv-placeholder{' +
|
||||
// 'opacity: 0;' +
|
||||
'}' +
|
||||
'.sv-sorting-in-progress{' +
|
||||
'-webkit-user-select: none;' +
|
||||
'-moz-user-select: none;' +
|
||||
'-ms-user-select: none;' +
|
||||
'user-select: none;' +
|
||||
'}' +
|
||||
'.sv-visibility-hidden{' +
|
||||
'visibility: hidden !important;' +
|
||||
'opacity: 0 !important;' +
|
||||
'}' +
|
||||
'</style>'
|
||||
].join(''));
|
||||
|
||||
function touchFix(e){
|
||||
if(!('clientX' in e) && !('clientY' in e)) {
|
||||
var touches = e.touches || e.originalEvent.touches;
|
||||
if(touches && touches.length) {
|
||||
e.clientX = touches[0].clientX;
|
||||
e.clientY = touches[0].clientY;
|
||||
}
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
function getPreviousSibling(element){
|
||||
element = element[0];
|
||||
if(element.previousElementSibling)
|
||||
return angular.element(element.previousElementSibling);
|
||||
else{
|
||||
var sib = element.previousSibling;
|
||||
while(sib != null && sib.nodeType != 1)
|
||||
sib = sib.previousSibling;
|
||||
return angular.element(sib);
|
||||
}
|
||||
}
|
||||
|
||||
function insertElementBefore(element, newElement){
|
||||
var prevSibl = getPreviousSibling(element);
|
||||
if(prevSibl.length > 0){
|
||||
prevSibl.after(newElement);
|
||||
}
|
||||
else{
|
||||
element.parent().prepend(newElement);
|
||||
}
|
||||
}
|
||||
|
||||
var dde = document.documentElement,
|
||||
matchingFunction = dde.matches ? 'matches' :
|
||||
dde.matchesSelector ? 'matchesSelector' :
|
||||
dde.webkitMatches ? 'webkitMatches' :
|
||||
dde.webkitMatchesSelector ? 'webkitMatchesSelector' :
|
||||
dde.msMatches ? 'msMatches' :
|
||||
dde.msMatchesSelector ? 'msMatchesSelector' :
|
||||
dde.mozMatches ? 'mozMatches' :
|
||||
dde.mozMatchesSelector ? 'mozMatchesSelector' : null;
|
||||
if(matchingFunction == null)
|
||||
throw 'This browser doesn\'t support the HTMLElement.matches method';
|
||||
|
||||
function elementMatchesSelector(element, selector){
|
||||
if(element instanceof angular.element) element = element[0];
|
||||
if(matchingFunction !== null)
|
||||
return element[matchingFunction](selector);
|
||||
}
|
||||
|
||||
var closestElement = angular.element.prototype.closest || function (selector){
|
||||
var el = this[0].parentNode;
|
||||
while(el !== document.documentElement && !el[matchingFunction](selector))
|
||||
el = el.parentNode;
|
||||
|
||||
if(el[matchingFunction](selector))
|
||||
return angular.element(el);
|
||||
else
|
||||
return angular.element();
|
||||
};
|
||||
|
||||
/*
|
||||
Simple implementation of jQuery's .add method
|
||||
*/
|
||||
if(typeof angular.element.prototype.add !== 'function'){
|
||||
angular.element.prototype.add = function(elem){
|
||||
var i, res = angular.element();
|
||||
elem = angular.element(elem);
|
||||
for(i=0;i<this.length;i++){
|
||||
res.push(this[i]);
|
||||
}
|
||||
for(i=0;i<elem.length;i++){
|
||||
res.push(elem[i]);
|
||||
}
|
||||
return res;
|
||||
};
|
||||
}
|
||||
|
||||
})(window, window.angular);
|
File diff suppressed because one or more lines are too long
18
src/core_plugins/timelion/bower_components/flot/.bower.json
vendored
Normal file
18
src/core_plugins/timelion/bower_components/flot/.bower.json
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "Flot",
|
||||
"version": "0.8.3",
|
||||
"main": "jquery.flot.js",
|
||||
"dependencies": {
|
||||
"jquery": ">= 1.2.6"
|
||||
},
|
||||
"homepage": "https://github.com/flot/flot",
|
||||
"_release": "0.8.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.8.3",
|
||||
"commit": "453b017cc5acfd75e252b93e8635f57f4196d45d"
|
||||
},
|
||||
"_source": "git://github.com/flot/flot.git",
|
||||
"_target": "~0.8.3",
|
||||
"_originalSource": "flot"
|
||||
}
|
3
src/core_plugins/timelion/bower_components/flot/.gitignore
vendored
Normal file
3
src/core_plugins/timelion/bower_components/flot/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.min.js
|
||||
!excanvas.min.js
|
||||
node_modules/
|
3
src/core_plugins/timelion/bower_components/flot/.travis.yml
vendored
Normal file
3
src/core_plugins/timelion/bower_components/flot/.travis.yml
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- 0.8
|
1498
src/core_plugins/timelion/bower_components/flot/API.md
vendored
Normal file
1498
src/core_plugins/timelion/bower_components/flot/API.md
vendored
Normal file
File diff suppressed because it is too large
Load diff
98
src/core_plugins/timelion/bower_components/flot/CONTRIBUTING.md
vendored
Normal file
98
src/core_plugins/timelion/bower_components/flot/CONTRIBUTING.md
vendored
Normal file
|
@ -0,0 +1,98 @@
|
|||
## Contributing to Flot ##
|
||||
|
||||
We welcome all contributions, but following these guidelines results in less
|
||||
work for us, and a faster and better response.
|
||||
|
||||
### Issues ###
|
||||
|
||||
Issues are not a way to ask general questions about Flot. If you see unexpected
|
||||
behavior but are not 100% certain that it is a bug, please try posting to the
|
||||
[forum](http://groups.google.com/group/flot-graphs) first, and confirm that
|
||||
what you see is really a Flot problem before creating a new issue for it. When
|
||||
reporting a bug, please include a working demonstration of the problem, if
|
||||
possible, or at least a clear description of the options you're using and the
|
||||
environment (browser and version, jQuery version, other libraries) that you're
|
||||
running under.
|
||||
|
||||
If you have suggestions for new features, or changes to existing ones, we'd
|
||||
love to hear them! Please submit each suggestion as a separate new issue.
|
||||
|
||||
If you would like to work on an existing issue, please make sure it is not
|
||||
already assigned to someone else. If an issue is assigned to someone, that
|
||||
person has already started working on it. So, pick unassigned issues to prevent
|
||||
duplicated effort.
|
||||
|
||||
### Pull Requests ###
|
||||
|
||||
To make merging as easy as possible, please keep these rules in mind:
|
||||
|
||||
1. Submit new features or architectural changes to the *<version>-work*
|
||||
branch for the next major release. Submit bug fixes to the master branch.
|
||||
|
||||
2. Divide larger changes into a series of small, logical commits with
|
||||
descriptive messages.
|
||||
|
||||
3. Rebase, if necessary, before submitting your pull request, to reduce the
|
||||
work we need to do to merge it.
|
||||
|
||||
4. Format your code according to the style guidelines below.
|
||||
|
||||
### Flot Style Guidelines ###
|
||||
|
||||
Flot follows the [jQuery Core Style Guidelines](http://docs.jquery.com/JQuery_Core_Style_Guidelines),
|
||||
with the following updates and exceptions:
|
||||
|
||||
#### Spacing ####
|
||||
|
||||
Use four-space indents, no tabs. Do not add horizontal space around parameter
|
||||
lists, loop definitions, or array/object indices. For example:
|
||||
|
||||
```js
|
||||
for ( var i = 0; i < data.length; i++ ) { // This block is wrong!
|
||||
if ( data[ i ] > 1 ) {
|
||||
data[ i ] = 2;
|
||||
}
|
||||
}
|
||||
|
||||
for (var i = 0; i < data.length; i++) { // This block is correct!
|
||||
if (data[i] > 1) {
|
||||
data[i] = 2;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### Comments ####
|
||||
|
||||
Use [jsDoc](http://usejsdoc.org) comments for all file and function headers.
|
||||
Use // for all inline and block comments, regardless of length.
|
||||
|
||||
All // comment blocks should have an empty line above *and* below them. For
|
||||
example:
|
||||
|
||||
```js
|
||||
var a = 5;
|
||||
|
||||
// We're going to loop here
|
||||
// TODO: Make this loop faster, better, stronger!
|
||||
|
||||
for (var x = 0; x < 10; x++) {}
|
||||
```
|
||||
|
||||
#### Wrapping ####
|
||||
|
||||
Block comments should be wrapped at 80 characters.
|
||||
|
||||
Code should attempt to wrap at 80 characters, but may run longer if wrapping
|
||||
would hurt readability more than having to scroll horizontally. This is a
|
||||
judgement call made on a situational basis.
|
||||
|
||||
Statements containing complex logic should not be wrapped arbitrarily if they
|
||||
do not exceed 80 characters. For example:
|
||||
|
||||
```js
|
||||
if (a == 1 && // This block is wrong!
|
||||
b == 2 &&
|
||||
c == 3) {}
|
||||
|
||||
if (a == 1 && b == 2 && c == 3) {} // This block is correct!
|
||||
```
|
75
src/core_plugins/timelion/bower_components/flot/FAQ.md
vendored
Normal file
75
src/core_plugins/timelion/bower_components/flot/FAQ.md
vendored
Normal file
|
@ -0,0 +1,75 @@
|
|||
## Frequently asked questions ##
|
||||
|
||||
#### How much data can Flot cope with? ####
|
||||
|
||||
Flot will happily draw everything you send to it so the answer
|
||||
depends on the browser. The excanvas emulation used for IE (built with
|
||||
VML) makes IE by far the slowest browser so be sure to test with that
|
||||
if IE users are in your target group (for large plots in IE, you can
|
||||
also check out Flashcanvas which may be faster).
|
||||
|
||||
1000 points is not a problem, but as soon as you start having more
|
||||
points than the pixel width, you should probably start thinking about
|
||||
downsampling/aggregation as this is near the resolution limit of the
|
||||
chart anyway. If you downsample server-side, you also save bandwidth.
|
||||
|
||||
|
||||
#### Flot isn't working when I'm using JSON data as source! ####
|
||||
|
||||
Actually, Flot loves JSON data, you just got the format wrong.
|
||||
Double check that you're not inputting strings instead of numbers,
|
||||
like [["0", "-2.13"], ["5", "4.3"]]. This is most common mistake, and
|
||||
the error might not show up immediately because Javascript can do some
|
||||
conversion automatically.
|
||||
|
||||
|
||||
#### Can I export the graph? ####
|
||||
|
||||
You can grab the image rendered by the canvas element used by Flot
|
||||
as a PNG or JPEG (remember to set a background). Note that it won't
|
||||
include anything not drawn in the canvas (such as the legend). And it
|
||||
doesn't work with excanvas which uses VML, but you could try
|
||||
Flashcanvas.
|
||||
|
||||
|
||||
#### The bars are all tiny in time mode? ####
|
||||
|
||||
It's not really possible to determine the bar width automatically.
|
||||
So you have to set the width with the barWidth option which is NOT in
|
||||
pixels, but in the units of the x axis (or the y axis for horizontal
|
||||
bars). For time mode that's milliseconds so the default value of 1
|
||||
makes the bars 1 millisecond wide.
|
||||
|
||||
|
||||
#### Can I use Flot with libraries like Mootools or Prototype? ####
|
||||
|
||||
Yes, Flot supports it out of the box and it's easy! Just use jQuery
|
||||
instead of $, e.g. call jQuery.plot instead of $.plot and use
|
||||
jQuery(something) instead of $(something). As a convenience, you can
|
||||
put in a DOM element for the graph placeholder where the examples and
|
||||
the API documentation are using jQuery objects.
|
||||
|
||||
Depending on how you include jQuery, you may have to add one line of
|
||||
code to prevent jQuery from overwriting functions from the other
|
||||
libraries, see the documentation in jQuery ("Using jQuery with other
|
||||
libraries") for details.
|
||||
|
||||
|
||||
#### Flot doesn't work with [insert name of Javascript UI framework]! ####
|
||||
|
||||
Flot is using standard HTML to make charts. If this is not working,
|
||||
it's probably because the framework you're using is doing something
|
||||
weird with the DOM or with the CSS that is interfering with Flot.
|
||||
|
||||
A common problem is that there's display:none on a container until the
|
||||
user does something. Many tab widgets work this way, and there's
|
||||
nothing wrong with it - you just can't call Flot inside a display:none
|
||||
container as explained in the README so you need to hold off the Flot
|
||||
call until the container is actually displayed (or use
|
||||
visibility:hidden instead of display:none or move the container
|
||||
off-screen).
|
||||
|
||||
If you find there's a specific thing we can do to Flot to help, feel
|
||||
free to submit a bug report. Otherwise, you're welcome to ask for help
|
||||
on the forum/mailing list, but please don't submit a bug report to
|
||||
Flot.
|
22
src/core_plugins/timelion/bower_components/flot/LICENSE.txt
vendored
Normal file
22
src/core_plugins/timelion/bower_components/flot/LICENSE.txt
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
Copyright (c) 2007-2014 IOLA and Ole Laursen
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
12
src/core_plugins/timelion/bower_components/flot/Makefile
vendored
Normal file
12
src/core_plugins/timelion/bower_components/flot/Makefile
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Makefile for generating minified files
|
||||
|
||||
.PHONY: all
|
||||
|
||||
# we cheat and process all .js files instead of an exhaustive list
|
||||
all: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js)))
|
||||
|
||||
%.min.js: %.js
|
||||
yui-compressor $< -o $@
|
||||
|
||||
test:
|
||||
./node_modules/.bin/jshint *jquery.flot.js
|
1026
src/core_plugins/timelion/bower_components/flot/NEWS.md
vendored
Normal file
1026
src/core_plugins/timelion/bower_components/flot/NEWS.md
vendored
Normal file
File diff suppressed because it is too large
Load diff
143
src/core_plugins/timelion/bower_components/flot/PLUGINS.md
vendored
Normal file
143
src/core_plugins/timelion/bower_components/flot/PLUGINS.md
vendored
Normal file
|
@ -0,0 +1,143 @@
|
|||
## Writing plugins ##
|
||||
|
||||
All you need to do to make a new plugin is creating an init function
|
||||
and a set of options (if needed), stuffing it into an object and
|
||||
putting it in the $.plot.plugins array. For example:
|
||||
|
||||
```js
|
||||
function myCoolPluginInit(plot) {
|
||||
plot.coolstring = "Hello!";
|
||||
};
|
||||
|
||||
$.plot.plugins.push({ init: myCoolPluginInit, options: { ... } });
|
||||
|
||||
// if $.plot is called, it will return a plot object with the
|
||||
// attribute "coolstring"
|
||||
```
|
||||
|
||||
Now, given that the plugin might run in many different places, it's
|
||||
a good idea to avoid leaking names. The usual trick here is wrap the
|
||||
above lines in an anonymous function which is called immediately, like
|
||||
this: (function () { inner code ... })(). To make it even more robust
|
||||
in case $ is not bound to jQuery but some other Javascript library, we
|
||||
can write it as
|
||||
|
||||
```js
|
||||
(function ($) {
|
||||
// plugin definition
|
||||
// ...
|
||||
})(jQuery);
|
||||
```
|
||||
|
||||
There's a complete example below, but you should also check out the
|
||||
plugins bundled with Flot.
|
||||
|
||||
|
||||
## Complete example ##
|
||||
|
||||
Here is a simple debug plugin which alerts each of the series in the
|
||||
plot. It has a single option that control whether it is enabled and
|
||||
how much info to output:
|
||||
|
||||
```js
|
||||
(function ($) {
|
||||
function init(plot) {
|
||||
var debugLevel = 1;
|
||||
|
||||
function checkDebugEnabled(plot, options) {
|
||||
if (options.debug) {
|
||||
debugLevel = options.debug;
|
||||
plot.hooks.processDatapoints.push(alertSeries);
|
||||
}
|
||||
}
|
||||
|
||||
function alertSeries(plot, series, datapoints) {
|
||||
var msg = "series " + series.label;
|
||||
if (debugLevel > 1) {
|
||||
msg += " with " + series.data.length + " points";
|
||||
alert(msg);
|
||||
}
|
||||
}
|
||||
|
||||
plot.hooks.processOptions.push(checkDebugEnabled);
|
||||
}
|
||||
|
||||
var options = { debug: 0 };
|
||||
|
||||
$.plot.plugins.push({
|
||||
init: init,
|
||||
options: options,
|
||||
name: "simpledebug",
|
||||
version: "0.1"
|
||||
});
|
||||
})(jQuery);
|
||||
```
|
||||
|
||||
We also define "name" and "version". It's not used by Flot, but might
|
||||
be helpful for other plugins in resolving dependencies.
|
||||
|
||||
Put the above in a file named "jquery.flot.debug.js", include it in an
|
||||
HTML page and then it can be used with:
|
||||
|
||||
```js
|
||||
$.plot($("#placeholder"), [...], { debug: 2 });
|
||||
```
|
||||
|
||||
This simple plugin illustrates a couple of points:
|
||||
|
||||
- It uses the anonymous function trick to avoid name pollution.
|
||||
- It can be enabled/disabled through an option.
|
||||
- Variables in the init function can be used to store plot-specific
|
||||
state between the hooks.
|
||||
|
||||
The two last points are important because there may be multiple plots
|
||||
on the same page, and you'd want to make sure they are not mixed up.
|
||||
|
||||
|
||||
## Shutting down a plugin ##
|
||||
|
||||
Each plot object has a shutdown hook which is run when plot.shutdown()
|
||||
is called. This usually mostly happens in case another plot is made on
|
||||
top of an existing one.
|
||||
|
||||
The purpose of the hook is to give you a chance to unbind any event
|
||||
handlers you've registered and remove any extra DOM things you've
|
||||
inserted.
|
||||
|
||||
The problem with event handlers is that you can have registered a
|
||||
handler which is run in some point in the future, e.g. with
|
||||
setTimeout(). Meanwhile, the plot may have been shutdown and removed,
|
||||
but because your event handler is still referencing it, it can't be
|
||||
garbage collected yet, and worse, if your handler eventually runs, it
|
||||
may overwrite stuff on a completely different plot.
|
||||
|
||||
|
||||
## Some hints on the options ##
|
||||
|
||||
Plugins should always support appropriate options to enable/disable
|
||||
them because the plugin user may have several plots on the same page
|
||||
where only one should use the plugin. In most cases it's probably a
|
||||
good idea if the plugin is turned off rather than on per default, just
|
||||
like most of the powerful features in Flot.
|
||||
|
||||
If the plugin needs options that are specific to each series, like the
|
||||
points or lines options in core Flot, you can put them in "series" in
|
||||
the options object, e.g.
|
||||
|
||||
```js
|
||||
var options = {
|
||||
series: {
|
||||
downsample: {
|
||||
algorithm: null,
|
||||
maxpoints: 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Then they will be copied by Flot into each series, providing default
|
||||
values in case none are specified.
|
||||
|
||||
Think hard and long about naming the options. These names are going to
|
||||
be public API, and code is going to depend on them if the plugin is
|
||||
successful.
|
110
src/core_plugins/timelion/bower_components/flot/README.md
vendored
Normal file
110
src/core_plugins/timelion/bower_components/flot/README.md
vendored
Normal file
|
@ -0,0 +1,110 @@
|
|||
# Flot [](https://travis-ci.org/flot/flot)
|
||||
|
||||
## About ##
|
||||
|
||||
Flot is a Javascript plotting library for jQuery.
|
||||
Read more at the website: <http://www.flotcharts.org/>
|
||||
|
||||
Take a look at the the examples in examples/index.html; they should give a good
|
||||
impression of what Flot can do, and the source code of the examples is probably
|
||||
the fastest way to learn how to use Flot.
|
||||
|
||||
|
||||
## Installation ##
|
||||
|
||||
Just include the Javascript file after you've included jQuery.
|
||||
|
||||
Generally, all browsers that support the HTML5 canvas tag are
|
||||
supported.
|
||||
|
||||
For support for Internet Explorer < 9, you can use [Excanvas]
|
||||
[excanvas], a canvas emulator; this is used in the examples bundled
|
||||
with Flot. You just include the excanvas script like this:
|
||||
|
||||
```html
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="excanvas.min.js"></script><![endif]-->
|
||||
```
|
||||
|
||||
If it's not working on your development IE 6.0, check that it has
|
||||
support for VML which Excanvas is relying on. It appears that some
|
||||
stripped down versions used for test environments on virtual machines
|
||||
lack the VML support.
|
||||
|
||||
You can also try using [Flashcanvas][flashcanvas], which uses Flash to
|
||||
do the emulation. Although Flash can be a bit slower to load than VML,
|
||||
if you've got a lot of points, the Flash version can be much faster
|
||||
overall. Flot contains some wrapper code for activating Excanvas which
|
||||
Flashcanvas is compatible with.
|
||||
|
||||
You need at least jQuery 1.2.6, but try at least 1.3.2 for interactive
|
||||
charts because of performance improvements in event handling.
|
||||
|
||||
|
||||
## Basic usage ##
|
||||
|
||||
Create a placeholder div to put the graph in:
|
||||
|
||||
```html
|
||||
<div id="placeholder"></div>
|
||||
```
|
||||
|
||||
You need to set the width and height of this div, otherwise the plot
|
||||
library doesn't know how to scale the graph. You can do it inline like
|
||||
this:
|
||||
|
||||
```html
|
||||
<div id="placeholder" style="width:600px;height:300px"></div>
|
||||
```
|
||||
|
||||
You can also do it with an external stylesheet. Make sure that the
|
||||
placeholder isn't within something with a display:none CSS property -
|
||||
in that case, Flot has trouble measuring label dimensions which
|
||||
results in garbled looks and might have trouble measuring the
|
||||
placeholder dimensions which is fatal (it'll throw an exception).
|
||||
|
||||
Then when the div is ready in the DOM, which is usually on document
|
||||
ready, run the plot function:
|
||||
|
||||
```js
|
||||
$.plot($("#placeholder"), data, options);
|
||||
```
|
||||
|
||||
Here, data is an array of data series and options is an object with
|
||||
settings if you want to customize the plot. Take a look at the
|
||||
examples for some ideas of what to put in or look at the
|
||||
[API reference](API.md). Here's a quick example that'll draw a line
|
||||
from (0, 0) to (1, 1):
|
||||
|
||||
```js
|
||||
$.plot($("#placeholder"), [ [[0, 0], [1, 1]] ], { yaxis: { max: 1 } });
|
||||
```
|
||||
|
||||
The plot function immediately draws the chart and then returns a plot
|
||||
object with a couple of methods.
|
||||
|
||||
|
||||
## What's with the name? ##
|
||||
|
||||
First: it's pronounced with a short o, like "plot". Not like "flawed".
|
||||
|
||||
So "Flot" rhymes with "plot".
|
||||
|
||||
And if you look up "flot" in a Danish-to-English dictionary, some of
|
||||
the words that come up are "good-looking", "attractive", "stylish",
|
||||
"smart", "impressive", "extravagant". One of the main goals with Flot
|
||||
is pretty looks.
|
||||
|
||||
|
||||
## Notes about the examples ##
|
||||
|
||||
In order to have a useful, functional example of time-series plots using time
|
||||
zones, date.js from [timezone-js][timezone-js] (released under the Apache 2.0
|
||||
license) and the [Olson][olson] time zone database (released to the public
|
||||
domain) have been included in the examples directory. They are used in
|
||||
examples/axes-time-zones/index.html.
|
||||
|
||||
|
||||
[excanvas]: http://code.google.com/p/explorercanvas/
|
||||
[flashcanvas]: http://code.google.com/p/flashcanvas/
|
||||
[timezone-js]: https://github.com/mde/timezone-js
|
||||
[olson]: http://ftp.iana.org/time-zones
|
8
src/core_plugins/timelion/bower_components/flot/component.json
vendored
Normal file
8
src/core_plugins/timelion/bower_components/flot/component.json
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "Flot",
|
||||
"version": "0.8.3",
|
||||
"main": "jquery.flot.js",
|
||||
"dependencies": {
|
||||
"jquery": ">= 1.2.6"
|
||||
}
|
||||
}
|
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-1.json
vendored
Normal file
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-1.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"label": "Europe (EU27)",
|
||||
"data": [[1999, 3.0], [2000, 3.9]]
|
||||
}
|
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-2.json
vendored
Normal file
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-2.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"label": "Europe (EU27)",
|
||||
"data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2]]
|
||||
}
|
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-3.json
vendored
Normal file
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-3.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"label": "Europe (EU27)",
|
||||
"data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5]]
|
||||
}
|
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-4.json
vendored
Normal file
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-4.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"label": "Europe (EU27)",
|
||||
"data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1]]
|
||||
}
|
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-5.json
vendored
Normal file
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth-5.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"label": "Europe (EU27)",
|
||||
"data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]]
|
||||
}
|
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth.json
vendored
Normal file
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-eu-gdp-growth.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"label": "Europe (EU27)",
|
||||
"data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]]
|
||||
}
|
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-japan-gdp-growth.json
vendored
Normal file
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-japan-gdp-growth.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"label": "Japan",
|
||||
"data": [[1999, -0.1], [2000, 2.9], [2001, 0.2], [2002, 0.3], [2003, 1.4], [2004, 2.7], [2005, 1.9], [2006, 2.0], [2007, 2.3], [2008, -0.7]]
|
||||
}
|
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-usa-gdp-growth.json
vendored
Normal file
4
src/core_plugins/timelion/bower_components/flot/examples/ajax/data-usa-gdp-growth.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"label": "USA",
|
||||
"data": [[1999, 4.4], [2000, 3.7], [2001, 0.8], [2002, 1.6], [2003, 2.5], [2004, 3.6], [2005, 2.9], [2006, 2.8], [2007, 2.0], [2008, 1.1]]
|
||||
}
|
173
src/core_plugins/timelion/bower_components/flot/examples/ajax/index.html
vendored
Normal file
173
src/core_plugins/timelion/bower_components/flot/examples/ajax/index.html
vendored
Normal file
|
@ -0,0 +1,173 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: AJAX</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var options = {
|
||||
lines: {
|
||||
show: true
|
||||
},
|
||||
points: {
|
||||
show: true
|
||||
},
|
||||
xaxis: {
|
||||
tickDecimals: 0,
|
||||
tickSize: 1
|
||||
}
|
||||
};
|
||||
|
||||
var data = [];
|
||||
|
||||
$.plot("#placeholder", data, options);
|
||||
|
||||
// Fetch one series, adding to what we already have
|
||||
|
||||
var alreadyFetched = {};
|
||||
|
||||
$("button.fetchSeries").click(function () {
|
||||
|
||||
var button = $(this);
|
||||
|
||||
// Find the URL in the link right next to us, then fetch the data
|
||||
|
||||
var dataurl = button.siblings("a").attr("href");
|
||||
|
||||
function onDataReceived(series) {
|
||||
|
||||
// Extract the first coordinate pair; jQuery has parsed it, so
|
||||
// the data is now just an ordinary JavaScript object
|
||||
|
||||
var firstcoordinate = "(" + series.data[0][0] + ", " + series.data[0][1] + ")";
|
||||
button.siblings("span").text("Fetched " + series.label + ", first point: " + firstcoordinate);
|
||||
|
||||
// Push the new data onto our existing data array
|
||||
|
||||
if (!alreadyFetched[series.label]) {
|
||||
alreadyFetched[series.label] = true;
|
||||
data.push(series);
|
||||
}
|
||||
|
||||
$.plot("#placeholder", data, options);
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: dataurl,
|
||||
type: "GET",
|
||||
dataType: "json",
|
||||
success: onDataReceived
|
||||
});
|
||||
});
|
||||
|
||||
// Initiate a recurring data update
|
||||
|
||||
$("button.dataUpdate").click(function () {
|
||||
|
||||
data = [];
|
||||
alreadyFetched = {};
|
||||
|
||||
$.plot("#placeholder", data, options);
|
||||
|
||||
var iteration = 0;
|
||||
|
||||
function fetchData() {
|
||||
|
||||
++iteration;
|
||||
|
||||
function onDataReceived(series) {
|
||||
|
||||
// Load all the data in one pass; if we only got partial
|
||||
// data we could merge it with what we already have.
|
||||
|
||||
data = [ series ];
|
||||
$.plot("#placeholder", data, options);
|
||||
}
|
||||
|
||||
// Normally we call the same URL - a script connected to a
|
||||
// database - but in this case we only have static example
|
||||
// files, so we need to modify the URL.
|
||||
|
||||
$.ajax({
|
||||
url: "data-eu-gdp-growth-" + iteration + ".json",
|
||||
type: "GET",
|
||||
dataType: "json",
|
||||
success: onDataReceived
|
||||
});
|
||||
|
||||
if (iteration < 5) {
|
||||
setTimeout(fetchData, 1000);
|
||||
} else {
|
||||
data = [];
|
||||
alreadyFetched = {};
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout(fetchData, 1000);
|
||||
});
|
||||
|
||||
// Load the first series by default, so we don't have an empty plot
|
||||
|
||||
$("button.fetchSeries:first").click();
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>AJAX</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>Example of loading data dynamically with AJAX. Percentage change in GDP (source: <a href="http://epp.eurostat.ec.europa.eu/tgm/table.do?tab=table&init=1&plugin=1&language=en&pcode=tsieb020">Eurostat</a>). Click the buttons below:</p>
|
||||
|
||||
<p>The data is fetched over HTTP, in this case directly from text files. Usually the URL would point to some web server handler (e.g. a PHP page or Java/.NET/Python/Ruby on Rails handler) that extracts it from a database and serializes it to JSON.</p>
|
||||
|
||||
<p>
|
||||
<button class="fetchSeries">First dataset</button>
|
||||
[ <a href="data-eu-gdp-growth.json">see data</a> ]
|
||||
<span></span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<button class="fetchSeries">Second dataset</button>
|
||||
[ <a href="data-japan-gdp-growth.json">see data</a> ]
|
||||
<span></span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<button class="fetchSeries">Third dataset</button>
|
||||
[ <a href="data-usa-gdp-growth.json">see data</a> ]
|
||||
<span></span>
|
||||
</p>
|
||||
|
||||
<p>If you combine AJAX with setTimeout, you can poll the server for new data.</p>
|
||||
|
||||
<p>
|
||||
<button class="dataUpdate">Poll for data</button>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
87
src/core_plugins/timelion/bower_components/flot/examples/annotating/index.html
vendored
Normal file
87
src/core_plugins/timelion/bower_components/flot/examples/annotating/index.html
vendored
Normal file
|
@ -0,0 +1,87 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Adding Annotations</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var d1 = [];
|
||||
for (var i = 0; i < 20; ++i) {
|
||||
d1.push([i, Math.sin(i)]);
|
||||
}
|
||||
|
||||
var data = [{ data: d1, label: "Pressure", color: "#333" }];
|
||||
|
||||
var markings = [
|
||||
{ color: "#f6f6f6", yaxis: { from: 1 } },
|
||||
{ color: "#f6f6f6", yaxis: { to: -1 } },
|
||||
{ color: "#000", lineWidth: 1, xaxis: { from: 2, to: 2 } },
|
||||
{ color: "#000", lineWidth: 1, xaxis: { from: 8, to: 8 } }
|
||||
];
|
||||
|
||||
var placeholder = $("#placeholder");
|
||||
|
||||
var plot = $.plot(placeholder, data, {
|
||||
bars: { show: true, barWidth: 0.5, fill: 0.9 },
|
||||
xaxis: { ticks: [], autoscaleMargin: 0.02 },
|
||||
yaxis: { min: -2, max: 2 },
|
||||
grid: { markings: markings }
|
||||
});
|
||||
|
||||
var o = plot.pointOffset({ x: 2, y: -1.2});
|
||||
|
||||
// Append it to the placeholder that Flot already uses for positioning
|
||||
|
||||
placeholder.append("<div style='position:absolute;left:" + (o.left + 4) + "px;top:" + o.top + "px;color:#666;font-size:smaller'>Warming up</div>");
|
||||
|
||||
o = plot.pointOffset({ x: 8, y: -1.2});
|
||||
placeholder.append("<div style='position:absolute;left:" + (o.left + 4) + "px;top:" + o.top + "px;color:#666;font-size:smaller'>Actual measurements</div>");
|
||||
|
||||
// Draw a little arrow on top of the last label to demonstrate canvas
|
||||
// drawing
|
||||
|
||||
var ctx = plot.getCanvas().getContext("2d");
|
||||
ctx.beginPath();
|
||||
o.left += 4;
|
||||
ctx.moveTo(o.left, o.top);
|
||||
ctx.lineTo(o.left, o.top - 10);
|
||||
ctx.lineTo(o.left + 10, o.top - 5);
|
||||
ctx.lineTo(o.left, o.top);
|
||||
ctx.fillStyle = "#000";
|
||||
ctx.fill();
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Adding Annotations</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>Flot has support for simple background decorations such as lines and rectangles. They can be useful for marking up certain areas. You can easily add any HTML you need with standard DOM manipulation, e.g. for labels. For drawing custom shapes there is also direct access to the canvas.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
97
src/core_plugins/timelion/bower_components/flot/examples/axes-interacting/index.html
vendored
Normal file
97
src/core_plugins/timelion/bower_components/flot/examples/axes-interacting/index.html
vendored
Normal file
|
@ -0,0 +1,97 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Interacting with axes</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
function generate(start, end, fn) {
|
||||
var res = [];
|
||||
for (var i = 0; i <= 100; ++i) {
|
||||
var x = start + i / 100 * (end - start);
|
||||
res.push([x, fn(x)]);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
var data = [
|
||||
{ data: generate(0, 10, function (x) { return Math.sqrt(x);}), xaxis: 1, yaxis:1 },
|
||||
{ data: generate(0, 10, function (x) { return Math.sin(x);}), xaxis: 1, yaxis:2 },
|
||||
{ data: generate(0, 10, function (x) { return Math.cos(x);}), xaxis: 1, yaxis:3 },
|
||||
{ data: generate(2, 10, function (x) { return Math.tan(x);}), xaxis: 2, yaxis: 4 }
|
||||
];
|
||||
|
||||
var plot = $.plot("#placeholder", data, {
|
||||
xaxes: [
|
||||
{ position: 'bottom' },
|
||||
{ position: 'top'}
|
||||
],
|
||||
yaxes: [
|
||||
{ position: 'left' },
|
||||
{ position: 'left' },
|
||||
{ position: 'right' },
|
||||
{ position: 'left' }
|
||||
]
|
||||
});
|
||||
|
||||
// Create a div for each axis
|
||||
|
||||
$.each(plot.getAxes(), function (i, axis) {
|
||||
if (!axis.show)
|
||||
return;
|
||||
|
||||
var box = axis.box;
|
||||
|
||||
$("<div class='axisTarget' style='position:absolute; left:" + box.left + "px; top:" + box.top + "px; width:" + box.width + "px; height:" + box.height + "px'></div>")
|
||||
.data("axis.direction", axis.direction)
|
||||
.data("axis.n", axis.n)
|
||||
.css({ backgroundColor: "#f00", opacity: 0, cursor: "pointer" })
|
||||
.appendTo(plot.getPlaceholder())
|
||||
.hover(
|
||||
function () { $(this).css({ opacity: 0.10 }) },
|
||||
function () { $(this).css({ opacity: 0 }) }
|
||||
)
|
||||
.click(function () {
|
||||
$("#click").text("You clicked the " + axis.direction + axis.n + "axis!")
|
||||
});
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Interacting with axes</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>With multiple axes, you sometimes need to interact with them. A simple way to do this is to draw the plot, deduce the axis placements and insert a couple of divs on top to catch events.</p>
|
||||
|
||||
<p>Try clicking an axis.</p>
|
||||
|
||||
<p id="click"></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
77
src/core_plugins/timelion/bower_components/flot/examples/axes-multiple/index.html
vendored
Normal file
77
src/core_plugins/timelion/bower_components/flot/examples/axes-multiple/index.html
vendored
Normal file
File diff suppressed because one or more lines are too long
893
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/date.js
vendored
Normal file
893
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/date.js
vendored
Normal file
|
@ -0,0 +1,893 @@
|
|||
// -----
|
||||
// The `timezoneJS.Date` object gives you full-blown timezone support, independent from the timezone set on the end-user's machine running the browser. It uses the Olson zoneinfo files for its timezone data.
|
||||
//
|
||||
// The constructor function and setter methods use proxy JavaScript Date objects behind the scenes, so you can use strings like '10/22/2006' with the constructor. You also get the same sensible wraparound behavior with numeric parameters (like setting a value of 14 for the month wraps around to the next March).
|
||||
//
|
||||
// The other significant difference from the built-in JavaScript Date is that `timezoneJS.Date` also has named properties that store the values of year, month, date, etc., so it can be directly serialized to JSON and used for data transfer.
|
||||
|
||||
/*
|
||||
* Copyright 2010 Matthew Eernisse (mde@fleegix.org)
|
||||
* and Open Source Applications Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Credits: Ideas included from incomplete JS implementation of Olson
|
||||
* parser, "XMLDAte" by Philippe Goetz (philippe.goetz@wanadoo.fr)
|
||||
*
|
||||
* Contributions:
|
||||
* Jan Niehusmann
|
||||
* Ricky Romero
|
||||
* Preston Hunt (prestonhunt@gmail.com)
|
||||
* Dov. B Katz (dov.katz@morganstanley.com)
|
||||
* Peter Bergström (pbergstr@mac.com)
|
||||
* Long Ho
|
||||
*/
|
||||
(function () {
|
||||
// Standard initialization stuff to make sure the library is
|
||||
// usable on both client and server (node) side.
|
||||
|
||||
var root = this;
|
||||
|
||||
var timezoneJS;
|
||||
if (typeof exports !== 'undefined') {
|
||||
timezoneJS = exports;
|
||||
} else {
|
||||
timezoneJS = root.timezoneJS = {};
|
||||
}
|
||||
|
||||
timezoneJS.VERSION = '1.0.0';
|
||||
|
||||
// Grab the ajax library from global context.
|
||||
// This can be jQuery, Zepto or fleegix.
|
||||
// You can also specify your own transport mechanism by declaring
|
||||
// `timezoneJS.timezone.transport` to a `function`. More details will follow
|
||||
var $ = root.$ || root.jQuery || root.Zepto
|
||||
, fleegix = root.fleegix
|
||||
// Declare constant list of days and months. Unfortunately this doesn't leave room for i18n due to the Olson data being in English itself
|
||||
, DAYS = timezoneJS.Days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
|
||||
, MONTHS = timezoneJS.Months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
||||
, SHORT_MONTHS = {}
|
||||
, SHORT_DAYS = {}
|
||||
, EXACT_DATE_TIME = {}
|
||||
, TZ_REGEXP = new RegExp('^[a-zA-Z]+/');
|
||||
|
||||
//`{ "Jan": 0, "Feb": 1, "Mar": 2, "Apr": 3, "May": 4, "Jun": 5, "Jul": 6, "Aug": 7, "Sep": 8, "Oct": 9, "Nov": 10, "Dec": 11 }`
|
||||
for (var i = 0; i < MONTHS.length; i++) {
|
||||
SHORT_MONTHS[MONTHS[i].substr(0, 3)] = i;
|
||||
}
|
||||
|
||||
//`{ "Sun": 0, "Mon": 1, "Tue": 2, "Wed": 3, "Thu": 4, "Fri": 5, "Sat": 6 }`
|
||||
for (i = 0; i < DAYS.length; i++) {
|
||||
SHORT_DAYS[DAYS[i].substr(0, 3)] = i;
|
||||
}
|
||||
|
||||
|
||||
//Handle array indexOf in IE
|
||||
if (!Array.prototype.indexOf) {
|
||||
Array.prototype.indexOf = function (el) {
|
||||
for (var i = 0; i < this.length; i++ ) {
|
||||
if (el === this[i]) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
// Format a number to the length = digits. For ex:
|
||||
//
|
||||
// `_fixWidth(2, 2) = '02'`
|
||||
//
|
||||
// `_fixWidth(1998, 2) = '98'`
|
||||
//
|
||||
// This is used to pad numbers in converting date to string in ISO standard.
|
||||
var _fixWidth = function (number, digits) {
|
||||
if (typeof number !== "number") { throw "not a number: " + number; }
|
||||
var s = number.toString();
|
||||
if (number.length > digits) {
|
||||
return number.substr(number.length - digits, number.length);
|
||||
}
|
||||
while (s.length < digits) {
|
||||
s = '0' + s;
|
||||
}
|
||||
return s;
|
||||
};
|
||||
|
||||
// Abstraction layer for different transport layers, including fleegix/jQuery/Zepto
|
||||
//
|
||||
// Object `opts` include
|
||||
//
|
||||
// - `url`: url to ajax query
|
||||
//
|
||||
// - `async`: true for asynchronous, false otherwise. If false, return value will be response from URL. This is true by default
|
||||
//
|
||||
// - `success`: success callback function
|
||||
//
|
||||
// - `error`: error callback function
|
||||
// Returns response from URL if async is false, otherwise the AJAX request object itself
|
||||
var _transport = function (opts) {
|
||||
if ((!fleegix || typeof fleegix.xhr === 'undefined') && (!$ || typeof $.ajax === 'undefined')) {
|
||||
throw new Error('Please use the Fleegix.js XHR module, jQuery ajax, Zepto ajax, or define your own transport mechanism for downloading zone files.');
|
||||
}
|
||||
if (!opts) return;
|
||||
if (!opts.url) throw new Error ('URL must be specified');
|
||||
if (!('async' in opts)) opts.async = true;
|
||||
if (!opts.async) {
|
||||
return fleegix && fleegix.xhr
|
||||
? fleegix.xhr.doReq({ url: opts.url, async: false })
|
||||
: $.ajax({ url : opts.url, async : false }).responseText;
|
||||
}
|
||||
return fleegix && fleegix.xhr
|
||||
? fleegix.xhr.send({
|
||||
url : opts.url,
|
||||
method : 'get',
|
||||
handleSuccess : opts.success,
|
||||
handleErr : opts.error
|
||||
})
|
||||
: $.ajax({
|
||||
url : opts.url,
|
||||
dataType: 'text',
|
||||
method : 'GET',
|
||||
error : opts.error,
|
||||
success : opts.success
|
||||
});
|
||||
};
|
||||
|
||||
// Constructor, which is similar to that of the native Date object itself
|
||||
timezoneJS.Date = function () {
|
||||
var args = Array.prototype.slice.apply(arguments)
|
||||
, dt = null
|
||||
, tz = null
|
||||
, arr = [];
|
||||
|
||||
|
||||
//We support several different constructors, including all the ones from `Date` object
|
||||
// with a timezone string at the end.
|
||||
//
|
||||
//- `[tz]`: Returns object with time in `tz` specified.
|
||||
//
|
||||
// - `utcMillis`, `[tz]`: Return object with UTC time = `utcMillis`, in `tz`.
|
||||
//
|
||||
// - `Date`, `[tz]`: Returns object with UTC time = `Date.getTime()`, in `tz`.
|
||||
//
|
||||
// - `year, month, [date,] [hours,] [minutes,] [seconds,] [millis,] [tz]: Same as `Date` object
|
||||
// with tz.
|
||||
//
|
||||
// - `Array`: Can be any combo of the above.
|
||||
//
|
||||
//If 1st argument is an array, we can use it as a list of arguments itself
|
||||
if (Object.prototype.toString.call(args[0]) === '[object Array]') {
|
||||
args = args[0];
|
||||
}
|
||||
if (typeof args[args.length - 1] === 'string' && TZ_REGEXP.test(args[args.length - 1])) {
|
||||
tz = args.pop();
|
||||
}
|
||||
switch (args.length) {
|
||||
case 0:
|
||||
dt = new Date();
|
||||
break;
|
||||
case 1:
|
||||
dt = new Date(args[0]);
|
||||
break;
|
||||
default:
|
||||
for (var i = 0; i < 7; i++) {
|
||||
arr[i] = args[i] || 0;
|
||||
}
|
||||
dt = new Date(arr[0], arr[1], arr[2], arr[3], arr[4], arr[5], arr[6]);
|
||||
break;
|
||||
}
|
||||
|
||||
this._useCache = false;
|
||||
this._tzInfo = {};
|
||||
this._day = 0;
|
||||
this.year = 0;
|
||||
this.month = 0;
|
||||
this.date = 0;
|
||||
this.hours = 0;
|
||||
this.minutes = 0;
|
||||
this.seconds = 0;
|
||||
this.milliseconds = 0;
|
||||
this.timezone = tz || null;
|
||||
//Tricky part:
|
||||
// For the cases where there are 1/2 arguments: `timezoneJS.Date(millis, [tz])` and `timezoneJS.Date(Date, [tz])`. The
|
||||
// Date `dt` created should be in UTC. Thus the way I detect such cases is to determine if `arr` is not populated & `tz`
|
||||
// is specified. Because if `tz` is not specified, `dt` can be in local time.
|
||||
if (arr.length) {
|
||||
this.setFromDateObjProxy(dt);
|
||||
} else {
|
||||
this.setFromTimeProxy(dt.getTime(), tz);
|
||||
}
|
||||
};
|
||||
|
||||
// Implements most of the native Date object
|
||||
timezoneJS.Date.prototype = {
|
||||
getDate: function () { return this.date; },
|
||||
getDay: function () { return this._day; },
|
||||
getFullYear: function () { return this.year; },
|
||||
getMonth: function () { return this.month; },
|
||||
getYear: function () { return this.year; },
|
||||
getHours: function () { return this.hours; },
|
||||
getMilliseconds: function () { return this.milliseconds; },
|
||||
getMinutes: function () { return this.minutes; },
|
||||
getSeconds: function () { return this.seconds; },
|
||||
getUTCDate: function () { return this.getUTCDateProxy().getUTCDate(); },
|
||||
getUTCDay: function () { return this.getUTCDateProxy().getUTCDay(); },
|
||||
getUTCFullYear: function () { return this.getUTCDateProxy().getUTCFullYear(); },
|
||||
getUTCHours: function () { return this.getUTCDateProxy().getUTCHours(); },
|
||||
getUTCMilliseconds: function () { return this.getUTCDateProxy().getUTCMilliseconds(); },
|
||||
getUTCMinutes: function () { return this.getUTCDateProxy().getUTCMinutes(); },
|
||||
getUTCMonth: function () { return this.getUTCDateProxy().getUTCMonth(); },
|
||||
getUTCSeconds: function () { return this.getUTCDateProxy().getUTCSeconds(); },
|
||||
// Time adjusted to user-specified timezone
|
||||
getTime: function () {
|
||||
return this._timeProxy + (this.getTimezoneOffset() * 60 * 1000);
|
||||
},
|
||||
getTimezone: function () { return this.timezone; },
|
||||
getTimezoneOffset: function () { return this.getTimezoneInfo().tzOffset; },
|
||||
getTimezoneAbbreviation: function () { return this.getTimezoneInfo().tzAbbr; },
|
||||
getTimezoneInfo: function () {
|
||||
if (this._useCache) return this._tzInfo;
|
||||
var res;
|
||||
// If timezone is specified, get the correct timezone info based on the Date given
|
||||
if (this.timezone) {
|
||||
res = this.timezone === 'Etc/UTC' || this.timezone === 'Etc/GMT'
|
||||
? { tzOffset: 0, tzAbbr: 'UTC' }
|
||||
: timezoneJS.timezone.getTzInfo(this._timeProxy, this.timezone);
|
||||
}
|
||||
// If no timezone was specified, use the local browser offset
|
||||
else {
|
||||
res = { tzOffset: this.getLocalOffset(), tzAbbr: null };
|
||||
}
|
||||
this._tzInfo = res;
|
||||
this._useCache = true;
|
||||
return res
|
||||
},
|
||||
getUTCDateProxy: function () {
|
||||
var dt = new Date(this._timeProxy);
|
||||
dt.setUTCMinutes(dt.getUTCMinutes() + this.getTimezoneOffset());
|
||||
return dt;
|
||||
},
|
||||
setDate: function (n) { this.setAttribute('date', n); },
|
||||
setFullYear: function (n) { this.setAttribute('year', n); },
|
||||
setMonth: function (n) { this.setAttribute('month', n); },
|
||||
setYear: function (n) { this.setUTCAttribute('year', n); },
|
||||
setHours: function (n) { this.setAttribute('hours', n); },
|
||||
setMilliseconds: function (n) { this.setAttribute('milliseconds', n); },
|
||||
setMinutes: function (n) { this.setAttribute('minutes', n); },
|
||||
setSeconds: function (n) { this.setAttribute('seconds', n); },
|
||||
setTime: function (n) {
|
||||
if (isNaN(n)) { throw new Error('Units must be a number.'); }
|
||||
this.setFromTimeProxy(n, this.timezone);
|
||||
},
|
||||
setUTCDate: function (n) { this.setUTCAttribute('date', n); },
|
||||
setUTCFullYear: function (n) { this.setUTCAttribute('year', n); },
|
||||
setUTCHours: function (n) { this.setUTCAttribute('hours', n); },
|
||||
setUTCMilliseconds: function (n) { this.setUTCAttribute('milliseconds', n); },
|
||||
setUTCMinutes: function (n) { this.setUTCAttribute('minutes', n); },
|
||||
setUTCMonth: function (n) { this.setUTCAttribute('month', n); },
|
||||
setUTCSeconds: function (n) { this.setUTCAttribute('seconds', n); },
|
||||
setFromDateObjProxy: function (dt) {
|
||||
this.year = dt.getFullYear();
|
||||
this.month = dt.getMonth();
|
||||
this.date = dt.getDate();
|
||||
this.hours = dt.getHours();
|
||||
this.minutes = dt.getMinutes();
|
||||
this.seconds = dt.getSeconds();
|
||||
this.milliseconds = dt.getMilliseconds();
|
||||
this._day = dt.getDay();
|
||||
this._dateProxy = dt;
|
||||
this._timeProxy = Date.UTC(this.year, this.month, this.date, this.hours, this.minutes, this.seconds, this.milliseconds);
|
||||
this._useCache = false;
|
||||
},
|
||||
setFromTimeProxy: function (utcMillis, tz) {
|
||||
var dt = new Date(utcMillis);
|
||||
var tzOffset;
|
||||
tzOffset = tz ? timezoneJS.timezone.getTzInfo(dt, tz).tzOffset : dt.getTimezoneOffset();
|
||||
dt.setTime(utcMillis + (dt.getTimezoneOffset() - tzOffset) * 60000);
|
||||
this.setFromDateObjProxy(dt);
|
||||
},
|
||||
setAttribute: function (unit, n) {
|
||||
if (isNaN(n)) { throw new Error('Units must be a number.'); }
|
||||
var dt = this._dateProxy;
|
||||
var meth = unit === 'year' ? 'FullYear' : unit.substr(0, 1).toUpperCase() + unit.substr(1);
|
||||
dt['set' + meth](n);
|
||||
this.setFromDateObjProxy(dt);
|
||||
},
|
||||
setUTCAttribute: function (unit, n) {
|
||||
if (isNaN(n)) { throw new Error('Units must be a number.'); }
|
||||
var meth = unit === 'year' ? 'FullYear' : unit.substr(0, 1).toUpperCase() + unit.substr(1);
|
||||
var dt = this.getUTCDateProxy();
|
||||
dt['setUTC' + meth](n);
|
||||
dt.setUTCMinutes(dt.getUTCMinutes() - this.getTimezoneOffset());
|
||||
this.setFromTimeProxy(dt.getTime() + this.getTimezoneOffset() * 60000, this.timezone);
|
||||
},
|
||||
setTimezone: function (tz) {
|
||||
var previousOffset = this.getTimezoneInfo().tzOffset;
|
||||
this.timezone = tz;
|
||||
this._useCache = false;
|
||||
// Set UTC minutes offsets by the delta of the two timezones
|
||||
this.setUTCMinutes(this.getUTCMinutes() - this.getTimezoneInfo().tzOffset + previousOffset);
|
||||
},
|
||||
removeTimezone: function () {
|
||||
this.timezone = null;
|
||||
this._useCache = false;
|
||||
},
|
||||
valueOf: function () { return this.getTime(); },
|
||||
clone: function () {
|
||||
return this.timezone ? new timezoneJS.Date(this.getTime(), this.timezone) : new timezoneJS.Date(this.getTime());
|
||||
},
|
||||
toGMTString: function () { return this.toString('EEE, dd MMM yyyy HH:mm:ss Z', 'Etc/GMT'); },
|
||||
toLocaleString: function () {},
|
||||
toLocaleDateString: function () {},
|
||||
toLocaleTimeString: function () {},
|
||||
toSource: function () {},
|
||||
toISOString: function () { return this.toString('yyyy-MM-ddTHH:mm:ss.SSS', 'Etc/UTC') + 'Z'; },
|
||||
toJSON: function () { return this.toISOString(); },
|
||||
// Allows different format following ISO8601 format:
|
||||
toString: function (format, tz) {
|
||||
// Default format is the same as toISOString
|
||||
if (!format) format = 'yyyy-MM-dd HH:mm:ss';
|
||||
var result = format;
|
||||
var tzInfo = tz ? timezoneJS.timezone.getTzInfo(this.getTime(), tz) : this.getTimezoneInfo();
|
||||
var _this = this;
|
||||
// If timezone is specified, get a clone of the current Date object and modify it
|
||||
if (tz) {
|
||||
_this = this.clone();
|
||||
_this.setTimezone(tz);
|
||||
}
|
||||
var hours = _this.getHours();
|
||||
return result
|
||||
// fix the same characters in Month names
|
||||
.replace(/a+/g, function () { return 'k'; })
|
||||
// `y`: year
|
||||
.replace(/y+/g, function (token) { return _fixWidth(_this.getFullYear(), token.length); })
|
||||
// `d`: date
|
||||
.replace(/d+/g, function (token) { return _fixWidth(_this.getDate(), token.length); })
|
||||
// `m`: minute
|
||||
.replace(/m+/g, function (token) { return _fixWidth(_this.getMinutes(), token.length); })
|
||||
// `s`: second
|
||||
.replace(/s+/g, function (token) { return _fixWidth(_this.getSeconds(), token.length); })
|
||||
// `S`: millisecond
|
||||
.replace(/S+/g, function (token) { return _fixWidth(_this.getMilliseconds(), token.length); })
|
||||
// `M`: month. Note: `MM` will be the numeric representation (e.g February is 02) but `MMM` will be text representation (e.g February is Feb)
|
||||
.replace(/M+/g, function (token) {
|
||||
var _month = _this.getMonth(),
|
||||
_len = token.length;
|
||||
if (_len > 3) {
|
||||
return timezoneJS.Months[_month];
|
||||
} else if (_len > 2) {
|
||||
return timezoneJS.Months[_month].substring(0, _len);
|
||||
}
|
||||
return _fixWidth(_month + 1, _len);
|
||||
})
|
||||
// `k`: AM/PM
|
||||
.replace(/k+/g, function () {
|
||||
if (hours >= 12) {
|
||||
if (hours > 12) {
|
||||
hours -= 12;
|
||||
}
|
||||
return 'PM';
|
||||
}
|
||||
return 'AM';
|
||||
})
|
||||
// `H`: hour
|
||||
.replace(/H+/g, function (token) { return _fixWidth(hours, token.length); })
|
||||
// `E`: day
|
||||
.replace(/E+/g, function (token) { return DAYS[_this.getDay()].substring(0, token.length); })
|
||||
// `Z`: timezone abbreviation
|
||||
.replace(/Z+/gi, function () { return tzInfo.tzAbbr; });
|
||||
},
|
||||
toUTCString: function () { return this.toGMTString(); },
|
||||
civilToJulianDayNumber: function (y, m, d) {
|
||||
var a;
|
||||
// Adjust for zero-based JS-style array
|
||||
m++;
|
||||
if (m > 12) {
|
||||
a = parseInt(m/12, 10);
|
||||
m = m % 12;
|
||||
y += a;
|
||||
}
|
||||
if (m <= 2) {
|
||||
y -= 1;
|
||||
m += 12;
|
||||
}
|
||||
a = Math.floor(y / 100);
|
||||
var b = 2 - a + Math.floor(a / 4)
|
||||
, jDt = Math.floor(365.25 * (y + 4716)) + Math.floor(30.6001 * (m + 1)) + d + b - 1524;
|
||||
return jDt;
|
||||
},
|
||||
getLocalOffset: function () {
|
||||
return this._dateProxy.getTimezoneOffset();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
timezoneJS.timezone = new function () {
|
||||
var _this = this
|
||||
, regionMap = {'Etc':'etcetera','EST':'northamerica','MST':'northamerica','HST':'northamerica','EST5EDT':'northamerica','CST6CDT':'northamerica','MST7MDT':'northamerica','PST8PDT':'northamerica','America':'northamerica','Pacific':'australasia','Atlantic':'europe','Africa':'africa','Indian':'africa','Antarctica':'antarctica','Asia':'asia','Australia':'australasia','Europe':'europe','WET':'europe','CET':'europe','MET':'europe','EET':'europe'}
|
||||
, regionExceptions = {'Pacific/Honolulu':'northamerica','Atlantic/Bermuda':'northamerica','Atlantic/Cape_Verde':'africa','Atlantic/St_Helena':'africa','Indian/Kerguelen':'antarctica','Indian/Chagos':'asia','Indian/Maldives':'asia','Indian/Christmas':'australasia','Indian/Cocos':'australasia','America/Danmarkshavn':'europe','America/Scoresbysund':'europe','America/Godthab':'europe','America/Thule':'europe','Asia/Yekaterinburg':'europe','Asia/Omsk':'europe','Asia/Novosibirsk':'europe','Asia/Krasnoyarsk':'europe','Asia/Irkutsk':'europe','Asia/Yakutsk':'europe','Asia/Vladivostok':'europe','Asia/Sakhalin':'europe','Asia/Magadan':'europe','Asia/Kamchatka':'europe','Asia/Anadyr':'europe','Africa/Ceuta':'europe','America/Argentina/Buenos_Aires':'southamerica','America/Argentina/Cordoba':'southamerica','America/Argentina/Tucuman':'southamerica','America/Argentina/La_Rioja':'southamerica','America/Argentina/San_Juan':'southamerica','America/Argentina/Jujuy':'southamerica','America/Argentina/Catamarca':'southamerica','America/Argentina/Mendoza':'southamerica','America/Argentina/Rio_Gallegos':'southamerica','America/Argentina/Ushuaia':'southamerica','America/Aruba':'southamerica','America/La_Paz':'southamerica','America/Noronha':'southamerica','America/Belem':'southamerica','America/Fortaleza':'southamerica','America/Recife':'southamerica','America/Araguaina':'southamerica','America/Maceio':'southamerica','America/Bahia':'southamerica','America/Sao_Paulo':'southamerica','America/Campo_Grande':'southamerica','America/Cuiaba':'southamerica','America/Porto_Velho':'southamerica','America/Boa_Vista':'southamerica','America/Manaus':'southamerica','America/Eirunepe':'southamerica','America/Rio_Branco':'southamerica','America/Santiago':'southamerica','Pacific/Easter':'southamerica','America/Bogota':'southamerica','America/Curacao':'southamerica','America/Guayaquil':'southamerica','Pacific/Galapagos':'southamerica','Atlantic/Stanley':'southamerica','America/Cayenne':'southamerica','America/Guyana':'southamerica','America/Asuncion':'southamerica','America/Lima':'southamerica','Atlantic/South_Georgia':'southamerica','America/Paramaribo':'southamerica','America/Port_of_Spain':'southamerica','America/Montevideo':'southamerica','America/Caracas':'southamerica'};
|
||||
function invalidTZError(t) { throw new Error('Timezone "' + t + '" is either incorrect, or not loaded in the timezone registry.'); }
|
||||
function builtInLoadZoneFile(fileName, opts) {
|
||||
var url = _this.zoneFileBasePath + '/' + fileName;
|
||||
return !opts || !opts.async
|
||||
? _this.parseZones(_this.transport({ url : url, async : false }))
|
||||
: _this.transport({
|
||||
async: true,
|
||||
url : url,
|
||||
success : function (str) {
|
||||
if (_this.parseZones(str) && typeof opts.callback === 'function') {
|
||||
opts.callback();
|
||||
}
|
||||
return true;
|
||||
},
|
||||
error : function () {
|
||||
throw new Error('Error retrieving "' + url + '" zoneinfo files');
|
||||
}
|
||||
});
|
||||
}
|
||||
function getRegionForTimezone(tz) {
|
||||
var exc = regionExceptions[tz]
|
||||
, reg
|
||||
, ret;
|
||||
if (exc) return exc;
|
||||
reg = tz.split('/')[0];
|
||||
ret = regionMap[reg];
|
||||
// If there's nothing listed in the main regions for this TZ, check the 'backward' links
|
||||
if (ret) return ret;
|
||||
var link = _this.zones[tz];
|
||||
if (typeof link === 'string') {
|
||||
return getRegionForTimezone(link);
|
||||
}
|
||||
// Backward-compat file hasn't loaded yet, try looking in there
|
||||
if (!_this.loadedZones.backward) {
|
||||
// This is for obvious legacy zones (e.g., Iceland) that don't even have a prefix like "America/" that look like normal zones
|
||||
_this.loadZoneFile('backward');
|
||||
return getRegionForTimezone(tz);
|
||||
}
|
||||
invalidTZError(tz);
|
||||
}
|
||||
function parseTimeString(str) {
|
||||
var pat = /(\d+)(?::0*(\d*))?(?::0*(\d*))?([wsugz])?$/;
|
||||
var hms = str.match(pat);
|
||||
hms[1] = parseInt(hms[1], 10);
|
||||
hms[2] = hms[2] ? parseInt(hms[2], 10) : 0;
|
||||
hms[3] = hms[3] ? parseInt(hms[3], 10) : 0;
|
||||
|
||||
return hms;
|
||||
}
|
||||
function processZone(z) {
|
||||
if (!z[3]) { return; }
|
||||
var yea = parseInt(z[3], 10);
|
||||
var mon = 11;
|
||||
var dat = 31;
|
||||
if (z[4]) {
|
||||
mon = SHORT_MONTHS[z[4].substr(0, 3)];
|
||||
dat = parseInt(z[5], 10) || 1;
|
||||
}
|
||||
var string = z[6] ? z[6] : '00:00:00'
|
||||
, t = parseTimeString(string);
|
||||
return [yea, mon, dat, t[1], t[2], t[3]];
|
||||
}
|
||||
function getZone(dt, tz) {
|
||||
var utcMillis = typeof dt === 'number' ? dt : new Date(dt).getTime();
|
||||
var t = tz;
|
||||
var zoneList = _this.zones[t];
|
||||
// Follow links to get to an actual zone
|
||||
while (typeof zoneList === "string") {
|
||||
t = zoneList;
|
||||
zoneList = _this.zones[t];
|
||||
}
|
||||
if (!zoneList) {
|
||||
// Backward-compat file hasn't loaded yet, try looking in there
|
||||
if (!_this.loadedZones.backward) {
|
||||
//This is for backward entries like "America/Fort_Wayne" that
|
||||
// getRegionForTimezone *thinks* it has a region file and zone
|
||||
// for (e.g., America => 'northamerica'), but in reality it's a
|
||||
// legacy zone we need the backward file for.
|
||||
_this.loadZoneFile('backward');
|
||||
return getZone(dt, tz);
|
||||
}
|
||||
invalidTZError(t);
|
||||
}
|
||||
if (zoneList.length === 0) {
|
||||
throw new Error('No Zone found for "' + tz + '" on ' + dt);
|
||||
}
|
||||
//Do backwards lookup since most use cases deal with newer dates.
|
||||
for (var i = zoneList.length - 1; i >= 0; i--) {
|
||||
var z = zoneList[i];
|
||||
if (z[3] && utcMillis > z[3]) break;
|
||||
}
|
||||
return zoneList[i+1];
|
||||
}
|
||||
function getBasicOffset(time) {
|
||||
var off = parseTimeString(time)
|
||||
, adj = time.indexOf('-') === 0 ? -1 : 1;
|
||||
off = adj * (((off[1] * 60 + off[2]) * 60 + off[3]) * 1000);
|
||||
return off/60/1000;
|
||||
}
|
||||
|
||||
//if isUTC is true, date is given in UTC, otherwise it's given
|
||||
// in local time (ie. date.getUTC*() returns local time components)
|
||||
function getRule(dt, zone, isUTC) {
|
||||
var date = typeof dt === 'number' ? new Date(dt) : dt;
|
||||
var ruleset = zone[1];
|
||||
var basicOffset = zone[0];
|
||||
|
||||
//Convert a date to UTC. Depending on the 'type' parameter, the date
|
||||
// parameter may be:
|
||||
//
|
||||
// - `u`, `g`, `z`: already UTC (no adjustment).
|
||||
//
|
||||
// - `s`: standard time (adjust for time zone offset but not for DST)
|
||||
//
|
||||
// - `w`: wall clock time (adjust for both time zone and DST offset).
|
||||
//
|
||||
// DST adjustment is done using the rule given as third argument.
|
||||
var convertDateToUTC = function (date, type, rule) {
|
||||
var offset = 0;
|
||||
|
||||
if (type === 'u' || type === 'g' || type === 'z') { // UTC
|
||||
offset = 0;
|
||||
} else if (type === 's') { // Standard Time
|
||||
offset = basicOffset;
|
||||
} else if (type === 'w' || !type) { // Wall Clock Time
|
||||
offset = getAdjustedOffset(basicOffset, rule);
|
||||
} else {
|
||||
throw("unknown type " + type);
|
||||
}
|
||||
offset *= 60 * 1000; // to millis
|
||||
|
||||
return new Date(date.getTime() + offset);
|
||||
};
|
||||
|
||||
//Step 1: Find applicable rules for this year.
|
||||
//
|
||||
//Step 2: Sort the rules by effective date.
|
||||
//
|
||||
//Step 3: Check requested date to see if a rule has yet taken effect this year. If not,
|
||||
//
|
||||
//Step 4: Get the rules for the previous year. If there isn't an applicable rule for last year, then
|
||||
// there probably is no current time offset since they seem to explicitly turn off the offset
|
||||
// when someone stops observing DST.
|
||||
//
|
||||
// FIXME if this is not the case and we'll walk all the way back (ugh).
|
||||
//
|
||||
//Step 5: Sort the rules by effective date.
|
||||
//Step 6: Apply the most recent rule before the current time.
|
||||
var convertRuleToExactDateAndTime = function (yearAndRule, prevRule) {
|
||||
var year = yearAndRule[0]
|
||||
, rule = yearAndRule[1];
|
||||
// Assume that the rule applies to the year of the given date.
|
||||
|
||||
var hms = rule[5];
|
||||
var effectiveDate;
|
||||
|
||||
if (!EXACT_DATE_TIME[year])
|
||||
EXACT_DATE_TIME[year] = {};
|
||||
|
||||
// Result for given parameters is already stored
|
||||
if (EXACT_DATE_TIME[year][rule])
|
||||
effectiveDate = EXACT_DATE_TIME[year][rule];
|
||||
else {
|
||||
//If we have a specific date, use that!
|
||||
if (!isNaN(rule[4])) {
|
||||
effectiveDate = new Date(Date.UTC(year, SHORT_MONTHS[rule[3]], rule[4], hms[1], hms[2], hms[3], 0));
|
||||
}
|
||||
//Let's hunt for the date.
|
||||
else {
|
||||
var targetDay
|
||||
, operator;
|
||||
//Example: `lastThu`
|
||||
if (rule[4].substr(0, 4) === "last") {
|
||||
// Start at the last day of the month and work backward.
|
||||
effectiveDate = new Date(Date.UTC(year, SHORT_MONTHS[rule[3]] + 1, 1, hms[1] - 24, hms[2], hms[3], 0));
|
||||
targetDay = SHORT_DAYS[rule[4].substr(4, 3)];
|
||||
operator = "<=";
|
||||
}
|
||||
//Example: `Sun>=15`
|
||||
else {
|
||||
//Start at the specified date.
|
||||
effectiveDate = new Date(Date.UTC(year, SHORT_MONTHS[rule[3]], rule[4].substr(5), hms[1], hms[2], hms[3], 0));
|
||||
targetDay = SHORT_DAYS[rule[4].substr(0, 3)];
|
||||
operator = rule[4].substr(3, 2);
|
||||
}
|
||||
var ourDay = effectiveDate.getUTCDay();
|
||||
//Go forwards.
|
||||
if (operator === ">=") {
|
||||
effectiveDate.setUTCDate(effectiveDate.getUTCDate() + (targetDay - ourDay + ((targetDay < ourDay) ? 7 : 0)));
|
||||
}
|
||||
//Go backwards. Looking for the last of a certain day, or operator is "<=" (less likely).
|
||||
else {
|
||||
effectiveDate.setUTCDate(effectiveDate.getUTCDate() + (targetDay - ourDay - ((targetDay > ourDay) ? 7 : 0)));
|
||||
}
|
||||
}
|
||||
EXACT_DATE_TIME[year][rule] = effectiveDate;
|
||||
}
|
||||
|
||||
|
||||
//If previous rule is given, correct for the fact that the starting time of the current
|
||||
// rule may be specified in local time.
|
||||
if (prevRule) {
|
||||
effectiveDate = convertDateToUTC(effectiveDate, hms[4], prevRule);
|
||||
}
|
||||
return effectiveDate;
|
||||
};
|
||||
|
||||
var findApplicableRules = function (year, ruleset) {
|
||||
var applicableRules = [];
|
||||
for (var i = 0; ruleset && i < ruleset.length; i++) {
|
||||
//Exclude future rules.
|
||||
if (ruleset[i][0] <= year &&
|
||||
(
|
||||
// Date is in a set range.
|
||||
ruleset[i][1] >= year ||
|
||||
// Date is in an "only" year.
|
||||
(ruleset[i][0] === year && ruleset[i][1] === "only") ||
|
||||
//We're in a range from the start year to infinity.
|
||||
ruleset[i][1] === "max"
|
||||
)
|
||||
) {
|
||||
//It's completely okay to have any number of matches here.
|
||||
// Normally we should only see two, but that doesn't preclude other numbers of matches.
|
||||
// These matches are applicable to this year.
|
||||
applicableRules.push([year, ruleset[i]]);
|
||||
}
|
||||
}
|
||||
return applicableRules;
|
||||
};
|
||||
|
||||
var compareDates = function (a, b, prev) {
|
||||
var year, rule;
|
||||
if (a.constructor !== Date) {
|
||||
year = a[0];
|
||||
rule = a[1];
|
||||
a = (!prev && EXACT_DATE_TIME[year] && EXACT_DATE_TIME[year][rule])
|
||||
? EXACT_DATE_TIME[year][rule]
|
||||
: convertRuleToExactDateAndTime(a, prev);
|
||||
} else if (prev) {
|
||||
a = convertDateToUTC(a, isUTC ? 'u' : 'w', prev);
|
||||
}
|
||||
if (b.constructor !== Date) {
|
||||
year = b[0];
|
||||
rule = b[1];
|
||||
b = (!prev && EXACT_DATE_TIME[year] && EXACT_DATE_TIME[year][rule]) ? EXACT_DATE_TIME[year][rule]
|
||||
: convertRuleToExactDateAndTime(b, prev);
|
||||
} else if (prev) {
|
||||
b = convertDateToUTC(b, isUTC ? 'u' : 'w', prev);
|
||||
}
|
||||
a = Number(a);
|
||||
b = Number(b);
|
||||
return a - b;
|
||||
};
|
||||
|
||||
var year = date.getUTCFullYear();
|
||||
var applicableRules;
|
||||
|
||||
applicableRules = findApplicableRules(year, _this.rules[ruleset]);
|
||||
applicableRules.push(date);
|
||||
//While sorting, the time zone in which the rule starting time is specified
|
||||
// is ignored. This is ok as long as the timespan between two DST changes is
|
||||
// larger than the DST offset, which is probably always true.
|
||||
// As the given date may indeed be close to a DST change, it may get sorted
|
||||
// to a wrong position (off by one), which is corrected below.
|
||||
applicableRules.sort(compareDates);
|
||||
|
||||
//If there are not enough past DST rules...
|
||||
if (applicableRules.indexOf(date) < 2) {
|
||||
applicableRules = applicableRules.concat(findApplicableRules(year-1, _this.rules[ruleset]));
|
||||
applicableRules.sort(compareDates);
|
||||
}
|
||||
var pinpoint = applicableRules.indexOf(date);
|
||||
if (pinpoint > 1 && compareDates(date, applicableRules[pinpoint-1], applicableRules[pinpoint-2][1]) < 0) {
|
||||
//The previous rule does not really apply, take the one before that.
|
||||
return applicableRules[pinpoint - 2][1];
|
||||
} else if (pinpoint > 0 && pinpoint < applicableRules.length - 1 && compareDates(date, applicableRules[pinpoint+1], applicableRules[pinpoint-1][1]) > 0) {
|
||||
|
||||
//The next rule does already apply, take that one.
|
||||
return applicableRules[pinpoint + 1][1];
|
||||
} else if (pinpoint === 0) {
|
||||
//No applicable rule found in this and in previous year.
|
||||
return null;
|
||||
}
|
||||
return applicableRules[pinpoint - 1][1];
|
||||
}
|
||||
function getAdjustedOffset(off, rule) {
|
||||
return -Math.ceil(rule[6] - off);
|
||||
}
|
||||
function getAbbreviation(zone, rule) {
|
||||
var res;
|
||||
var base = zone[2];
|
||||
if (base.indexOf('%s') > -1) {
|
||||
var repl;
|
||||
if (rule) {
|
||||
repl = rule[7] === '-' ? '' : rule[7];
|
||||
}
|
||||
//FIXME: Right now just falling back to Standard --
|
||||
// apparently ought to use the last valid rule,
|
||||
// although in practice that always ought to be Standard
|
||||
else {
|
||||
repl = 'S';
|
||||
}
|
||||
res = base.replace('%s', repl);
|
||||
}
|
||||
else if (base.indexOf('/') > -1) {
|
||||
//Chose one of two alternative strings.
|
||||
res = base.split("/", 2)[rule[6] ? 1 : 0];
|
||||
} else {
|
||||
res = base;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
this.zoneFileBasePath;
|
||||
this.zoneFiles = ['africa', 'antarctica', 'asia', 'australasia', 'backward', 'etcetera', 'europe', 'northamerica', 'pacificnew', 'southamerica'];
|
||||
this.loadingSchemes = {
|
||||
PRELOAD_ALL: 'preloadAll',
|
||||
LAZY_LOAD: 'lazyLoad',
|
||||
MANUAL_LOAD: 'manualLoad'
|
||||
};
|
||||
this.loadingScheme = this.loadingSchemes.LAZY_LOAD;
|
||||
this.loadedZones = {};
|
||||
this.zones = {};
|
||||
this.rules = {};
|
||||
|
||||
this.init = function (o) {
|
||||
var opts = { async: true }
|
||||
, def = this.defaultZoneFile = this.loadingScheme === this.loadingSchemes.PRELOAD_ALL
|
||||
? this.zoneFiles
|
||||
: 'northamerica'
|
||||
, done = 0
|
||||
, callbackFn;
|
||||
//Override default with any passed-in opts
|
||||
for (var p in o) {
|
||||
opts[p] = o[p];
|
||||
}
|
||||
if (typeof def === 'string') {
|
||||
return this.loadZoneFile(def, opts);
|
||||
}
|
||||
//Wraps callback function in another one that makes
|
||||
// sure all files have been loaded.
|
||||
callbackFn = opts.callback;
|
||||
opts.callback = function () {
|
||||
done++;
|
||||
(done === def.length) && typeof callbackFn === 'function' && callbackFn();
|
||||
};
|
||||
for (var i = 0; i < def.length; i++) {
|
||||
this.loadZoneFile(def[i], opts);
|
||||
}
|
||||
};
|
||||
|
||||
//Get the zone files via XHR -- if the sync flag
|
||||
// is set to true, it's being called by the lazy-loading
|
||||
// mechanism, so the result needs to be returned inline.
|
||||
this.loadZoneFile = function (fileName, opts) {
|
||||
if (typeof this.zoneFileBasePath === 'undefined') {
|
||||
throw new Error('Please define a base path to your zone file directory -- timezoneJS.timezone.zoneFileBasePath.');
|
||||
}
|
||||
//Ignore already loaded zones.
|
||||
if (this.loadedZones[fileName]) {
|
||||
return;
|
||||
}
|
||||
this.loadedZones[fileName] = true;
|
||||
return builtInLoadZoneFile(fileName, opts);
|
||||
};
|
||||
this.loadZoneJSONData = function (url, sync) {
|
||||
var processData = function (data) {
|
||||
data = eval('('+ data +')');
|
||||
for (var z in data.zones) {
|
||||
_this.zones[z] = data.zones[z];
|
||||
}
|
||||
for (var r in data.rules) {
|
||||
_this.rules[r] = data.rules[r];
|
||||
}
|
||||
};
|
||||
return sync
|
||||
? processData(_this.transport({ url : url, async : false }))
|
||||
: _this.transport({ url : url, success : processData });
|
||||
};
|
||||
this.loadZoneDataFromObject = function (data) {
|
||||
if (!data) { return; }
|
||||
for (var z in data.zones) {
|
||||
_this.zones[z] = data.zones[z];
|
||||
}
|
||||
for (var r in data.rules) {
|
||||
_this.rules[r] = data.rules[r];
|
||||
}
|
||||
};
|
||||
this.getAllZones = function () {
|
||||
var arr = [];
|
||||
for (var z in this.zones) { arr.push(z); }
|
||||
return arr.sort();
|
||||
};
|
||||
this.parseZones = function (str) {
|
||||
var lines = str.split('\n')
|
||||
, arr = []
|
||||
, chunk = ''
|
||||
, l
|
||||
, zone = null
|
||||
, rule = null;
|
||||
for (var i = 0; i < lines.length; i++) {
|
||||
l = lines[i];
|
||||
if (l.match(/^\s/)) {
|
||||
l = "Zone " + zone + l;
|
||||
}
|
||||
l = l.split("#")[0];
|
||||
if (l.length > 3) {
|
||||
arr = l.split(/\s+/);
|
||||
chunk = arr.shift();
|
||||
//Ignore Leap.
|
||||
switch (chunk) {
|
||||
case 'Zone':
|
||||
zone = arr.shift();
|
||||
if (!_this.zones[zone]) {
|
||||
_this.zones[zone] = [];
|
||||
}
|
||||
if (arr.length < 3) break;
|
||||
//Process zone right here and replace 3rd element with the processed array.
|
||||
arr.splice(3, arr.length, processZone(arr));
|
||||
if (arr[3]) arr[3] = Date.UTC.apply(null, arr[3]);
|
||||
arr[0] = -getBasicOffset(arr[0]);
|
||||
_this.zones[zone].push(arr);
|
||||
break;
|
||||
case 'Rule':
|
||||
rule = arr.shift();
|
||||
if (!_this.rules[rule]) {
|
||||
_this.rules[rule] = [];
|
||||
}
|
||||
//Parse int FROM year and TO year
|
||||
arr[0] = parseInt(arr[0], 10);
|
||||
arr[1] = parseInt(arr[1], 10) || arr[1];
|
||||
//Parse time string AT
|
||||
arr[5] = parseTimeString(arr[5]);
|
||||
//Parse offset SAVE
|
||||
arr[6] = getBasicOffset(arr[6]);
|
||||
_this.rules[rule].push(arr);
|
||||
break;
|
||||
case 'Link':
|
||||
//No zones for these should already exist.
|
||||
if (_this.zones[arr[1]]) {
|
||||
throw new Error('Error with Link ' + arr[1] + '. Cannot create link of a preexisted zone.');
|
||||
}
|
||||
//Create the link.
|
||||
_this.zones[arr[1]] = arr[0];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
//Expose transport mechanism and allow overwrite.
|
||||
this.transport = _transport;
|
||||
this.getTzInfo = function (dt, tz, isUTC) {
|
||||
//Lazy-load any zones not yet loaded.
|
||||
if (this.loadingScheme === this.loadingSchemes.LAZY_LOAD) {
|
||||
//Get the correct region for the zone.
|
||||
var zoneFile = getRegionForTimezone(tz);
|
||||
if (!zoneFile) {
|
||||
throw new Error('Not a valid timezone ID.');
|
||||
}
|
||||
if (!this.loadedZones[zoneFile]) {
|
||||
//Get the file and parse it -- use synchronous XHR.
|
||||
this.loadZoneFile(zoneFile);
|
||||
}
|
||||
}
|
||||
var z = getZone(dt, tz);
|
||||
var off = z[0];
|
||||
//See if the offset needs adjustment.
|
||||
var rule = getRule(dt, z, isUTC);
|
||||
if (rule) {
|
||||
off = getAdjustedOffset(off, rule);
|
||||
}
|
||||
var abbr = getAbbreviation(z, rule);
|
||||
return { tzOffset: off, tzAbbr: abbr };
|
||||
};
|
||||
};
|
||||
}).call(this);
|
114
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/index.html
vendored
Normal file
114
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/index.html
vendored
Normal file
|
@ -0,0 +1,114 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Time zones</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.time.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="date.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
timezoneJS.timezone.zoneFileBasePath = "tz";
|
||||
timezoneJS.timezone.defaultZoneFile = [];
|
||||
timezoneJS.timezone.init({async: false});
|
||||
|
||||
var d = [
|
||||
[Date.UTC(2011, 2, 12, 14, 0, 0), 28],
|
||||
[Date.UTC(2011, 2, 12, 15, 0, 0), 27],
|
||||
[Date.UTC(2011, 2, 12, 16, 0, 0), 25],
|
||||
[Date.UTC(2011, 2, 12, 17, 0, 0), 19],
|
||||
[Date.UTC(2011, 2, 12, 18, 0, 0), 16],
|
||||
[Date.UTC(2011, 2, 12, 19, 0, 0), 14],
|
||||
[Date.UTC(2011, 2, 12, 20, 0, 0), 11],
|
||||
[Date.UTC(2011, 2, 12, 21, 0, 0), 9],
|
||||
[Date.UTC(2011, 2, 12, 22, 0, 0), 7.5],
|
||||
[Date.UTC(2011, 2, 12, 23, 0, 0), 6],
|
||||
[Date.UTC(2011, 2, 13, 0, 0, 0), 5],
|
||||
[Date.UTC(2011, 2, 13, 1, 0, 0), 6],
|
||||
[Date.UTC(2011, 2, 13, 2, 0, 0), 7.5],
|
||||
[Date.UTC(2011, 2, 13, 3, 0, 0), 9],
|
||||
[Date.UTC(2011, 2, 13, 4, 0, 0), 11],
|
||||
[Date.UTC(2011, 2, 13, 5, 0, 0), 14],
|
||||
[Date.UTC(2011, 2, 13, 6, 0, 0), 16],
|
||||
[Date.UTC(2011, 2, 13, 7, 0, 0), 19],
|
||||
[Date.UTC(2011, 2, 13, 8, 0, 0), 25],
|
||||
[Date.UTC(2011, 2, 13, 9, 0, 0), 27],
|
||||
[Date.UTC(2011, 2, 13, 10, 0, 0), 28],
|
||||
[Date.UTC(2011, 2, 13, 11, 0, 0), 29],
|
||||
[Date.UTC(2011, 2, 13, 12, 0, 0), 29.5],
|
||||
[Date.UTC(2011, 2, 13, 13, 0, 0), 29],
|
||||
[Date.UTC(2011, 2, 13, 14, 0, 0), 28],
|
||||
[Date.UTC(2011, 2, 13, 15, 0, 0), 27],
|
||||
[Date.UTC(2011, 2, 13, 16, 0, 0), 25],
|
||||
[Date.UTC(2011, 2, 13, 17, 0, 0), 19],
|
||||
[Date.UTC(2011, 2, 13, 18, 0, 0), 16],
|
||||
[Date.UTC(2011, 2, 13, 19, 0, 0), 14],
|
||||
[Date.UTC(2011, 2, 13, 20, 0, 0), 11],
|
||||
[Date.UTC(2011, 2, 13, 21, 0, 0), 9],
|
||||
[Date.UTC(2011, 2, 13, 22, 0, 0), 7.5],
|
||||
[Date.UTC(2011, 2, 13, 23, 0, 0), 6]
|
||||
];
|
||||
|
||||
var plot = $.plot("#placeholderUTC", [d], {
|
||||
xaxis: {
|
||||
mode: "time"
|
||||
}
|
||||
});
|
||||
|
||||
var plot = $.plot("#placeholderLocal", [d], {
|
||||
xaxis: {
|
||||
mode: "time",
|
||||
timezone: "browser"
|
||||
}
|
||||
});
|
||||
|
||||
var plot = $.plot("#placeholderChicago", [d], {
|
||||
xaxis: {
|
||||
mode: "time",
|
||||
timezone: "America/Chicago"
|
||||
}
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Time zones</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<h3>UTC</h3>
|
||||
<div class="demo-container" style="height: 300px;">
|
||||
<div id="placeholderUTC" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<h3>Browser</h3>
|
||||
<div class="demo-container" style="height: 300px;">
|
||||
<div id="placeholderLocal" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<h3>Chicago</h3>
|
||||
<div class="demo-container" style="height: 300px;">
|
||||
<div id="placeholderChicago" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
1181
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/africa
vendored
Normal file
1181
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/africa
vendored
Normal file
File diff suppressed because it is too large
Load diff
413
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/antarctica
vendored
Normal file
413
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/antarctica
vendored
Normal file
|
@ -0,0 +1,413 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# From Paul Eggert (1999-11-15):
|
||||
# To keep things manageable, we list only locations occupied year-round; see
|
||||
# <a href="http://www.comnap.aq/comnap/comnap.nsf/P/Stations/">
|
||||
# COMNAP - Stations and Bases
|
||||
# </a>
|
||||
# and
|
||||
# <a href="http://www.spri.cam.ac.uk/bob/periant.htm">
|
||||
# Summary of the Peri-Antarctic Islands (1998-07-23)
|
||||
# </a>
|
||||
# for information.
|
||||
# Unless otherwise specified, we have no time zone information.
|
||||
#
|
||||
# Except for the French entries,
|
||||
# I made up all time zone abbreviations mentioned here; corrections welcome!
|
||||
# FORMAT is `zzz' and GMTOFF is 0 for locations while uninhabited.
|
||||
|
||||
# These rules are stolen from the `southamerica' file.
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule ArgAQ 1964 1966 - Mar 1 0:00 0 -
|
||||
Rule ArgAQ 1964 1966 - Oct 15 0:00 1:00 S
|
||||
Rule ArgAQ 1967 only - Apr 2 0:00 0 -
|
||||
Rule ArgAQ 1967 1968 - Oct Sun>=1 0:00 1:00 S
|
||||
Rule ArgAQ 1968 1969 - Apr Sun>=1 0:00 0 -
|
||||
Rule ArgAQ 1974 only - Jan 23 0:00 1:00 S
|
||||
Rule ArgAQ 1974 only - May 1 0:00 0 -
|
||||
Rule ChileAQ 1972 1986 - Mar Sun>=9 3:00u 0 -
|
||||
Rule ChileAQ 1974 1987 - Oct Sun>=9 4:00u 1:00 S
|
||||
Rule ChileAQ 1987 only - Apr 12 3:00u 0 -
|
||||
Rule ChileAQ 1988 1989 - Mar Sun>=9 3:00u 0 -
|
||||
Rule ChileAQ 1988 only - Oct Sun>=1 4:00u 1:00 S
|
||||
Rule ChileAQ 1989 only - Oct Sun>=9 4:00u 1:00 S
|
||||
Rule ChileAQ 1990 only - Mar 18 3:00u 0 -
|
||||
Rule ChileAQ 1990 only - Sep 16 4:00u 1:00 S
|
||||
Rule ChileAQ 1991 1996 - Mar Sun>=9 3:00u 0 -
|
||||
Rule ChileAQ 1991 1997 - Oct Sun>=9 4:00u 1:00 S
|
||||
Rule ChileAQ 1997 only - Mar 30 3:00u 0 -
|
||||
Rule ChileAQ 1998 only - Mar Sun>=9 3:00u 0 -
|
||||
Rule ChileAQ 1998 only - Sep 27 4:00u 1:00 S
|
||||
Rule ChileAQ 1999 only - Apr 4 3:00u 0 -
|
||||
Rule ChileAQ 1999 2010 - Oct Sun>=9 4:00u 1:00 S
|
||||
Rule ChileAQ 2000 2007 - Mar Sun>=9 3:00u 0 -
|
||||
# N.B.: the end of March 29 in Chile is March 30 in Universal time,
|
||||
# which is used below in specifying the transition.
|
||||
Rule ChileAQ 2008 only - Mar 30 3:00u 0 -
|
||||
Rule ChileAQ 2009 only - Mar Sun>=9 3:00u 0 -
|
||||
Rule ChileAQ 2010 only - Apr Sun>=1 3:00u 0 -
|
||||
Rule ChileAQ 2011 only - May Sun>=2 3:00u 0 -
|
||||
Rule ChileAQ 2011 only - Aug Sun>=16 4:00u 1:00 S
|
||||
Rule ChileAQ 2012 only - Apr Sun>=23 3:00u 0 -
|
||||
Rule ChileAQ 2012 only - Sep Sun>=2 4:00u 1:00 S
|
||||
Rule ChileAQ 2013 max - Mar Sun>=9 3:00u 0 -
|
||||
Rule ChileAQ 2013 max - Oct Sun>=9 4:00u 1:00 S
|
||||
|
||||
# These rules are stolen from the `australasia' file.
|
||||
Rule AusAQ 1917 only - Jan 1 0:01 1:00 -
|
||||
Rule AusAQ 1917 only - Mar 25 2:00 0 -
|
||||
Rule AusAQ 1942 only - Jan 1 2:00 1:00 -
|
||||
Rule AusAQ 1942 only - Mar 29 2:00 0 -
|
||||
Rule AusAQ 1942 only - Sep 27 2:00 1:00 -
|
||||
Rule AusAQ 1943 1944 - Mar lastSun 2:00 0 -
|
||||
Rule AusAQ 1943 only - Oct 3 2:00 1:00 -
|
||||
Rule ATAQ 1967 only - Oct Sun>=1 2:00s 1:00 -
|
||||
Rule ATAQ 1968 only - Mar lastSun 2:00s 0 -
|
||||
Rule ATAQ 1968 1985 - Oct lastSun 2:00s 1:00 -
|
||||
Rule ATAQ 1969 1971 - Mar Sun>=8 2:00s 0 -
|
||||
Rule ATAQ 1972 only - Feb lastSun 2:00s 0 -
|
||||
Rule ATAQ 1973 1981 - Mar Sun>=1 2:00s 0 -
|
||||
Rule ATAQ 1982 1983 - Mar lastSun 2:00s 0 -
|
||||
Rule ATAQ 1984 1986 - Mar Sun>=1 2:00s 0 -
|
||||
Rule ATAQ 1986 only - Oct Sun>=15 2:00s 1:00 -
|
||||
Rule ATAQ 1987 1990 - Mar Sun>=15 2:00s 0 -
|
||||
Rule ATAQ 1987 only - Oct Sun>=22 2:00s 1:00 -
|
||||
Rule ATAQ 1988 1990 - Oct lastSun 2:00s 1:00 -
|
||||
Rule ATAQ 1991 1999 - Oct Sun>=1 2:00s 1:00 -
|
||||
Rule ATAQ 1991 2005 - Mar lastSun 2:00s 0 -
|
||||
Rule ATAQ 2000 only - Aug lastSun 2:00s 1:00 -
|
||||
Rule ATAQ 2001 max - Oct Sun>=1 2:00s 1:00 -
|
||||
Rule ATAQ 2006 only - Apr Sun>=1 2:00s 0 -
|
||||
Rule ATAQ 2007 only - Mar lastSun 2:00s 0 -
|
||||
Rule ATAQ 2008 max - Apr Sun>=1 2:00s 0 -
|
||||
|
||||
# Argentina - year-round bases
|
||||
# Belgrano II, Confin Coast, -770227-0343737, since 1972-02-05
|
||||
# Esperanza, San Martin Land, -6323-05659, since 1952-12-17
|
||||
# Jubany, Potter Peninsula, King George Island, -6414-0602320, since 1982-01
|
||||
# Marambio, Seymour I, -6414-05637, since 1969-10-29
|
||||
# Orcadas, Laurie I, -6016-04444, since 1904-02-22
|
||||
# San Martin, Debenham I, -6807-06708, since 1951-03-21
|
||||
# (except 1960-03 / 1976-03-21)
|
||||
|
||||
# Australia - territories
|
||||
# Heard Island, McDonald Islands (uninhabited)
|
||||
# previously sealers and scientific personnel wintered
|
||||
# <a href="http://web.archive.org/web/20021204222245/http://www.dstc.qut.edu.au/DST/marg/daylight.html">
|
||||
# Margaret Turner reports
|
||||
# </a> (1999-09-30) that they're UTC+5, with no DST;
|
||||
# presumably this is when they have visitors.
|
||||
#
|
||||
# year-round bases
|
||||
# Casey, Bailey Peninsula, -6617+11032, since 1969
|
||||
# Davis, Vestfold Hills, -6835+07759, since 1957-01-13
|
||||
# (except 1964-11 - 1969-02)
|
||||
# Mawson, Holme Bay, -6736+06253, since 1954-02-13
|
||||
|
||||
# From Steffen Thorsen (2009-03-11):
|
||||
# Three Australian stations in Antarctica have changed their time zone:
|
||||
# Casey moved from UTC+8 to UTC+11
|
||||
# Davis moved from UTC+7 to UTC+5
|
||||
# Mawson moved from UTC+6 to UTC+5
|
||||
# The changes occurred on 2009-10-18 at 02:00 (local times).
|
||||
#
|
||||
# Government source: (Australian Antarctic Division)
|
||||
# <a href="http://www.aad.gov.au/default.asp?casid=37079">
|
||||
# http://www.aad.gov.au/default.asp?casid=37079
|
||||
# </a>
|
||||
#
|
||||
# We have more background information here:
|
||||
# <a href="http://www.timeanddate.com/news/time/antarctica-new-times.html">
|
||||
# http://www.timeanddate.com/news/time/antarctica-new-times.html
|
||||
# </a>
|
||||
|
||||
# From Steffen Thorsen (2010-03-10):
|
||||
# We got these changes from the Australian Antarctic Division:
|
||||
# - Macquarie Island will stay on UTC+11 for winter and therefore not
|
||||
# switch back from daylight savings time when other parts of Australia do
|
||||
# on 4 April.
|
||||
#
|
||||
# - Casey station reverted to its normal time of UTC+8 on 5 March 2010.
|
||||
# The change to UTC+11 is being considered as a regular summer thing but
|
||||
# has not been decided yet.
|
||||
#
|
||||
# - Davis station will revert to its normal time of UTC+7 at 10 March 2010
|
||||
# 20:00 UTC.
|
||||
#
|
||||
# - Mawson station stays on UTC+5.
|
||||
#
|
||||
# In addition to the Rule changes for Casey/Davis, it means that Macquarie
|
||||
# will no longer be like Hobart and will have to have its own Zone created.
|
||||
#
|
||||
# Background:
|
||||
# <a href="http://www.timeanddate.com/news/time/antartica-time-changes-2010.html">
|
||||
# http://www.timeanddate.com/news/time/antartica-time-changes-2010.html
|
||||
# </a>
|
||||
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Antarctica/Casey 0 - zzz 1969
|
||||
8:00 - WST 2009 Oct 18 2:00
|
||||
# Western (Aus) Standard Time
|
||||
11:00 - CAST 2010 Mar 5 2:00
|
||||
# Casey Time
|
||||
8:00 - WST 2011 Oct 28 2:00
|
||||
11:00 - CAST 2012 Feb 21 17:00u
|
||||
8:00 - WST
|
||||
Zone Antarctica/Davis 0 - zzz 1957 Jan 13
|
||||
7:00 - DAVT 1964 Nov # Davis Time
|
||||
0 - zzz 1969 Feb
|
||||
7:00 - DAVT 2009 Oct 18 2:00
|
||||
5:00 - DAVT 2010 Mar 10 20:00u
|
||||
7:00 - DAVT 2011 Oct 28 2:00
|
||||
5:00 - DAVT 2012 Feb 21 20:00u
|
||||
7:00 - DAVT
|
||||
Zone Antarctica/Mawson 0 - zzz 1954 Feb 13
|
||||
6:00 - MAWT 2009 Oct 18 2:00
|
||||
# Mawson Time
|
||||
5:00 - MAWT
|
||||
Zone Antarctica/Macquarie 0 - zzz 1911
|
||||
10:00 - EST 1916 Oct 1 2:00
|
||||
10:00 1:00 EST 1917 Feb
|
||||
10:00 AusAQ EST 1967
|
||||
10:00 ATAQ EST 2010 Apr 4 3:00
|
||||
11:00 - MIST # Macquarie Island Time
|
||||
# References:
|
||||
# <a href="http://www.antdiv.gov.au/aad/exop/sfo/casey/casey_aws.html">
|
||||
# Casey Weather (1998-02-26)
|
||||
# </a>
|
||||
# <a href="http://www.antdiv.gov.au/aad/exop/sfo/davis/video.html">
|
||||
# Davis Station, Antarctica (1998-02-26)
|
||||
# </a>
|
||||
# <a href="http://www.antdiv.gov.au/aad/exop/sfo/mawson/video.html">
|
||||
# Mawson Station, Antarctica (1998-02-25)
|
||||
# </a>
|
||||
|
||||
# Brazil - year-round base
|
||||
# Comandante Ferraz, King George Island, -6205+05824, since 1983/4
|
||||
|
||||
# Chile - year-round bases and towns
|
||||
# Escudero, South Shetland Is, -621157-0585735, since 1994
|
||||
# Presidente Eduadro Frei, King George Island, -6214-05848, since 1969-03-07
|
||||
# General Bernardo O'Higgins, Antarctic Peninsula, -6319-05704, since 1948-02
|
||||
# Capitan Arturo Prat, -6230-05941
|
||||
# Villa Las Estrellas (a town), around the Frei base, since 1984-04-09
|
||||
# These locations have always used Santiago time; use TZ='America/Santiago'.
|
||||
|
||||
# China - year-round bases
|
||||
# Great Wall, King George Island, -6213-05858, since 1985-02-20
|
||||
# Zhongshan, Larsemann Hills, Prydz Bay, -6922+07623, since 1989-02-26
|
||||
|
||||
# France - year-round bases
|
||||
#
|
||||
# From Antoine Leca (1997-01-20):
|
||||
# Time data are from Nicole Pailleau at the IFRTP
|
||||
# (French Institute for Polar Research and Technology).
|
||||
# She confirms that French Southern Territories and Terre Adelie bases
|
||||
# don't observe daylight saving time, even if Terre Adelie supplies came
|
||||
# from Tasmania.
|
||||
#
|
||||
# French Southern Territories with year-round inhabitants
|
||||
#
|
||||
# Martin-de-Vivies Base, Amsterdam Island, -374105+0773155, since 1950
|
||||
# Alfred-Faure Base, Crozet Islands, -462551+0515152, since 1964
|
||||
# Port-aux-Francais, Kerguelen Islands, -492110+0701303, since 1951;
|
||||
# whaling & sealing station operated 1908/1914, 1920/1929, and 1951/1956
|
||||
#
|
||||
# St Paul Island - near Amsterdam, uninhabited
|
||||
# fishing stations operated variously 1819/1931
|
||||
#
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Indian/Kerguelen 0 - zzz 1950 # Port-aux-Francais
|
||||
5:00 - TFT # ISO code TF Time
|
||||
#
|
||||
# year-round base in the main continent
|
||||
# Dumont-d'Urville, Ile des Petrels, -6640+14001, since 1956-11
|
||||
#
|
||||
# Another base at Port-Martin, 50km east, began operation in 1947.
|
||||
# It was destroyed by fire on 1952-01-14.
|
||||
#
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Antarctica/DumontDUrville 0 - zzz 1947
|
||||
10:00 - PMT 1952 Jan 14 # Port-Martin Time
|
||||
0 - zzz 1956 Nov
|
||||
10:00 - DDUT # Dumont-d'Urville Time
|
||||
# Reference:
|
||||
# <a href="http://en.wikipedia.org/wiki/Dumont_d'Urville_Station">
|
||||
# Dumont d'Urville Station (2005-12-05)
|
||||
# </a>
|
||||
|
||||
# Germany - year-round base
|
||||
# Georg von Neumayer, -7039-00815
|
||||
|
||||
# India - year-round base
|
||||
# Dakshin Gangotri, -7005+01200
|
||||
|
||||
# Japan - year-round bases
|
||||
# Dome Fuji, -7719+03942
|
||||
# Syowa, -690022+0393524
|
||||
#
|
||||
# From Hideyuki Suzuki (1999-02-06):
|
||||
# In all Japanese stations, +0300 is used as the standard time.
|
||||
#
|
||||
# Syowa station, which is the first antarctic station of Japan,
|
||||
# was established on 1957-01-29. Since Syowa station is still the main
|
||||
# station of Japan, it's appropriate for the principal location.
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Antarctica/Syowa 0 - zzz 1957 Jan 29
|
||||
3:00 - SYOT # Syowa Time
|
||||
# See:
|
||||
# <a href="http://www.nipr.ac.jp/english/ara01.html">
|
||||
# NIPR Antarctic Research Activities (1999-08-17)
|
||||
# </a>
|
||||
|
||||
# S Korea - year-round base
|
||||
# King Sejong, King George Island, -6213-05847, since 1988
|
||||
|
||||
# New Zealand - claims
|
||||
# Balleny Islands (never inhabited)
|
||||
# Scott Island (never inhabited)
|
||||
#
|
||||
# year-round base
|
||||
# Scott, Ross Island, since 1957-01, is like Antarctica/McMurdo.
|
||||
#
|
||||
# These rules for New Zealand are stolen from the `australasia' file.
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule NZAQ 1974 only - Nov 3 2:00s 1:00 D
|
||||
Rule NZAQ 1975 1988 - Oct lastSun 2:00s 1:00 D
|
||||
Rule NZAQ 1989 only - Oct 8 2:00s 1:00 D
|
||||
Rule NZAQ 1990 2006 - Oct Sun>=1 2:00s 1:00 D
|
||||
Rule NZAQ 1975 only - Feb 23 2:00s 0 S
|
||||
Rule NZAQ 1976 1989 - Mar Sun>=1 2:00s 0 S
|
||||
Rule NZAQ 1990 2007 - Mar Sun>=15 2:00s 0 S
|
||||
Rule NZAQ 2007 max - Sep lastSun 2:00s 1:00 D
|
||||
Rule NZAQ 2008 max - Apr Sun>=1 2:00s 0 S
|
||||
|
||||
# Norway - territories
|
||||
# Bouvet (never inhabited)
|
||||
#
|
||||
# claims
|
||||
# Peter I Island (never inhabited)
|
||||
|
||||
# Poland - year-round base
|
||||
# Arctowski, King George Island, -620945-0582745, since 1977
|
||||
|
||||
# Russia - year-round bases
|
||||
# Bellingshausen, King George Island, -621159-0585337, since 1968-02-22
|
||||
# Mirny, Davis coast, -6633+09301, since 1956-02
|
||||
# Molodezhnaya, Alasheyev Bay, -6740+04551,
|
||||
# year-round from 1962-02 to 1999-07-01
|
||||
# Novolazarevskaya, Queen Maud Land, -7046+01150,
|
||||
# year-round from 1960/61 to 1992
|
||||
|
||||
# Vostok, since 1957-12-16, temporarily closed 1994-02/1994-11
|
||||
# <a href="http://quest.arc.nasa.gov/antarctica/QA/computers/Directions,Time,ZIP">
|
||||
# From Craig Mundell (1994-12-15)</a>:
|
||||
# Vostok, which is one of the Russian stations, is set on the same
|
||||
# time as Moscow, Russia.
|
||||
#
|
||||
# From Lee Hotz (2001-03-08):
|
||||
# I queried the folks at Columbia who spent the summer at Vostok and this is
|
||||
# what they had to say about time there:
|
||||
# ``in the US Camp (East Camp) we have been on New Zealand (McMurdo)
|
||||
# time, which is 12 hours ahead of GMT. The Russian Station Vostok was
|
||||
# 6 hours behind that (although only 2 miles away, i.e. 6 hours ahead
|
||||
# of GMT). This is a time zone I think two hours east of Moscow. The
|
||||
# natural time zone is in between the two: 8 hours ahead of GMT.''
|
||||
#
|
||||
# From Paul Eggert (2001-05-04):
|
||||
# This seems to be hopelessly confusing, so I asked Lee Hotz about it
|
||||
# in person. He said that some Antartic locations set their local
|
||||
# time so that noon is the warmest part of the day, and that this
|
||||
# changes during the year and does not necessarily correspond to mean
|
||||
# solar noon. So the Vostok time might have been whatever the clocks
|
||||
# happened to be during their visit. So we still don't really know what time
|
||||
# it is at Vostok. But we'll guess UTC+6.
|
||||
#
|
||||
Zone Antarctica/Vostok 0 - zzz 1957 Dec 16
|
||||
6:00 - VOST # Vostok time
|
||||
|
||||
# S Africa - year-round bases
|
||||
# Marion Island, -4653+03752
|
||||
# Sanae, -7141-00250
|
||||
|
||||
# UK
|
||||
#
|
||||
# British Antarctic Territories (BAT) claims
|
||||
# South Orkney Islands
|
||||
# scientific station from 1903
|
||||
# whaling station at Signy I 1920/1926
|
||||
# South Shetland Islands
|
||||
#
|
||||
# year-round bases
|
||||
# Bird Island, South Georgia, -5400-03803, since 1983
|
||||
# Deception Island, -6259-06034, whaling station 1912/1931,
|
||||
# scientific station 1943/1967,
|
||||
# previously sealers and a scientific expedition wintered by accident,
|
||||
# and a garrison was deployed briefly
|
||||
# Halley, Coates Land, -7535-02604, since 1956-01-06
|
||||
# Halley is on a moving ice shelf and is periodically relocated
|
||||
# so that it is never more than 10km from its nominal location.
|
||||
# Rothera, Adelaide Island, -6734-6808, since 1976-12-01
|
||||
#
|
||||
# From Paul Eggert (2002-10-22)
|
||||
# <http://webexhibits.org/daylightsaving/g.html> says Rothera is -03 all year.
|
||||
#
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Antarctica/Rothera 0 - zzz 1976 Dec 1
|
||||
-3:00 - ROTT # Rothera time
|
||||
|
||||
# Uruguay - year round base
|
||||
# Artigas, King George Island, -621104-0585107
|
||||
|
||||
# USA - year-round bases
|
||||
#
|
||||
# Palmer, Anvers Island, since 1965 (moved 2 miles in 1968)
|
||||
#
|
||||
# From Ethan Dicks (1996-10-06):
|
||||
# It keeps the same time as Punta Arenas, Chile, because, just like us
|
||||
# and the South Pole, that's the other end of their supply line....
|
||||
# I verified with someone who was there that since 1980,
|
||||
# Palmer has followed Chile. Prior to that, before the Falklands War,
|
||||
# Palmer used to be supplied from Argentina.
|
||||
#
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Antarctica/Palmer 0 - zzz 1965
|
||||
-4:00 ArgAQ AR%sT 1969 Oct 5
|
||||
-3:00 ArgAQ AR%sT 1982 May
|
||||
-4:00 ChileAQ CL%sT
|
||||
#
|
||||
#
|
||||
# McMurdo, Ross Island, since 1955-12
|
||||
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
|
||||
Zone Antarctica/McMurdo 0 - zzz 1956
|
||||
12:00 NZAQ NZ%sT
|
||||
#
|
||||
# Amundsen-Scott, South Pole, continuously occupied since 1956-11-20
|
||||
#
|
||||
# From Paul Eggert (1996-09-03):
|
||||
# Normally it wouldn't have a separate entry, since it's like the
|
||||
# larger Antarctica/McMurdo since 1970, but it's too famous to omit.
|
||||
#
|
||||
# From Chris Carrier (1996-06-27):
|
||||
# Siple, the first commander of the South Pole station,
|
||||
# stated that he would have liked to have kept GMT at the station,
|
||||
# but that he found it more convenient to keep GMT+12
|
||||
# as supplies for the station were coming from McMurdo Sound,
|
||||
# which was on GMT+12 because New Zealand was on GMT+12 all year
|
||||
# at that time (1957). (Source: Siple's book 90 degrees SOUTH.)
|
||||
#
|
||||
# From Susan Smith
|
||||
# http://www.cybertours.com/whs/pole10.html
|
||||
# (1995-11-13 16:24:56 +1300, no longer available):
|
||||
# We use the same time as McMurdo does.
|
||||
# And they use the same time as Christchurch, NZ does....
|
||||
# One last quirk about South Pole time.
|
||||
# All the electric clocks are usually wrong.
|
||||
# Something about the generators running at 60.1hertz or something
|
||||
# makes all of the clocks run fast. So every couple of days,
|
||||
# we have to go around and set them back 5 minutes or so.
|
||||
# Maybe if we let them run fast all of the time, we'd get to leave here sooner!!
|
||||
#
|
||||
Link Antarctica/McMurdo Antarctica/South_Pole
|
2717
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/asia
vendored
Normal file
2717
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/asia
vendored
Normal file
File diff suppressed because it is too large
Load diff
1719
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/australasia
vendored
Normal file
1719
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/australasia
vendored
Normal file
File diff suppressed because it is too large
Load diff
117
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/backward
vendored
Normal file
117
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/backward
vendored
Normal file
|
@ -0,0 +1,117 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# This file provides links between current names for time zones
|
||||
# and their old names. Many names changed in late 1993.
|
||||
|
||||
Link Africa/Asmara Africa/Asmera
|
||||
Link Africa/Bamako Africa/Timbuktu
|
||||
Link America/Argentina/Catamarca America/Argentina/ComodRivadavia
|
||||
Link America/Adak America/Atka
|
||||
Link America/Argentina/Buenos_Aires America/Buenos_Aires
|
||||
Link America/Argentina/Catamarca America/Catamarca
|
||||
Link America/Atikokan America/Coral_Harbour
|
||||
Link America/Argentina/Cordoba America/Cordoba
|
||||
Link America/Tijuana America/Ensenada
|
||||
Link America/Indiana/Indianapolis America/Fort_Wayne
|
||||
Link America/Indiana/Indianapolis America/Indianapolis
|
||||
Link America/Argentina/Jujuy America/Jujuy
|
||||
Link America/Indiana/Knox America/Knox_IN
|
||||
Link America/Kentucky/Louisville America/Louisville
|
||||
Link America/Argentina/Mendoza America/Mendoza
|
||||
Link America/Rio_Branco America/Porto_Acre
|
||||
Link America/Argentina/Cordoba America/Rosario
|
||||
Link America/St_Thomas America/Virgin
|
||||
Link Asia/Ashgabat Asia/Ashkhabad
|
||||
Link Asia/Chongqing Asia/Chungking
|
||||
Link Asia/Dhaka Asia/Dacca
|
||||
Link Asia/Kathmandu Asia/Katmandu
|
||||
Link Asia/Kolkata Asia/Calcutta
|
||||
Link Asia/Macau Asia/Macao
|
||||
Link Asia/Jerusalem Asia/Tel_Aviv
|
||||
Link Asia/Ho_Chi_Minh Asia/Saigon
|
||||
Link Asia/Thimphu Asia/Thimbu
|
||||
Link Asia/Makassar Asia/Ujung_Pandang
|
||||
Link Asia/Ulaanbaatar Asia/Ulan_Bator
|
||||
Link Atlantic/Faroe Atlantic/Faeroe
|
||||
Link Europe/Oslo Atlantic/Jan_Mayen
|
||||
Link Australia/Sydney Australia/ACT
|
||||
Link Australia/Sydney Australia/Canberra
|
||||
Link Australia/Lord_Howe Australia/LHI
|
||||
Link Australia/Sydney Australia/NSW
|
||||
Link Australia/Darwin Australia/North
|
||||
Link Australia/Brisbane Australia/Queensland
|
||||
Link Australia/Adelaide Australia/South
|
||||
Link Australia/Hobart Australia/Tasmania
|
||||
Link Australia/Melbourne Australia/Victoria
|
||||
Link Australia/Perth Australia/West
|
||||
Link Australia/Broken_Hill Australia/Yancowinna
|
||||
Link America/Rio_Branco Brazil/Acre
|
||||
Link America/Noronha Brazil/DeNoronha
|
||||
Link America/Sao_Paulo Brazil/East
|
||||
Link America/Manaus Brazil/West
|
||||
Link America/Halifax Canada/Atlantic
|
||||
Link America/Winnipeg Canada/Central
|
||||
Link America/Regina Canada/East-Saskatchewan
|
||||
Link America/Toronto Canada/Eastern
|
||||
Link America/Edmonton Canada/Mountain
|
||||
Link America/St_Johns Canada/Newfoundland
|
||||
Link America/Vancouver Canada/Pacific
|
||||
Link America/Regina Canada/Saskatchewan
|
||||
Link America/Whitehorse Canada/Yukon
|
||||
Link America/Santiago Chile/Continental
|
||||
Link Pacific/Easter Chile/EasterIsland
|
||||
Link America/Havana Cuba
|
||||
Link Africa/Cairo Egypt
|
||||
Link Europe/Dublin Eire
|
||||
Link Europe/London Europe/Belfast
|
||||
Link Europe/Chisinau Europe/Tiraspol
|
||||
Link Europe/London GB
|
||||
Link Europe/London GB-Eire
|
||||
Link Etc/GMT GMT+0
|
||||
Link Etc/GMT GMT-0
|
||||
Link Etc/GMT GMT0
|
||||
Link Etc/GMT Greenwich
|
||||
Link Asia/Hong_Kong Hongkong
|
||||
Link Atlantic/Reykjavik Iceland
|
||||
Link Asia/Tehran Iran
|
||||
Link Asia/Jerusalem Israel
|
||||
Link America/Jamaica Jamaica
|
||||
Link Asia/Tokyo Japan
|
||||
Link Pacific/Kwajalein Kwajalein
|
||||
Link Africa/Tripoli Libya
|
||||
Link America/Tijuana Mexico/BajaNorte
|
||||
Link America/Mazatlan Mexico/BajaSur
|
||||
Link America/Mexico_City Mexico/General
|
||||
Link Pacific/Auckland NZ
|
||||
Link Pacific/Chatham NZ-CHAT
|
||||
Link America/Denver Navajo
|
||||
Link Asia/Shanghai PRC
|
||||
Link Pacific/Pago_Pago Pacific/Samoa
|
||||
Link Pacific/Chuuk Pacific/Yap
|
||||
Link Pacific/Chuuk Pacific/Truk
|
||||
Link Pacific/Pohnpei Pacific/Ponape
|
||||
Link Europe/Warsaw Poland
|
||||
Link Europe/Lisbon Portugal
|
||||
Link Asia/Taipei ROC
|
||||
Link Asia/Seoul ROK
|
||||
Link Asia/Singapore Singapore
|
||||
Link Europe/Istanbul Turkey
|
||||
Link Etc/UCT UCT
|
||||
Link America/Anchorage US/Alaska
|
||||
Link America/Adak US/Aleutian
|
||||
Link America/Phoenix US/Arizona
|
||||
Link America/Chicago US/Central
|
||||
Link America/Indiana/Indianapolis US/East-Indiana
|
||||
Link America/New_York US/Eastern
|
||||
Link Pacific/Honolulu US/Hawaii
|
||||
Link America/Indiana/Knox US/Indiana-Starke
|
||||
Link America/Detroit US/Michigan
|
||||
Link America/Denver US/Mountain
|
||||
Link America/Los_Angeles US/Pacific
|
||||
Link Pacific/Pago_Pago US/Samoa
|
||||
Link Etc/UTC UTC
|
||||
Link Etc/UTC Universal
|
||||
Link Europe/Moscow W-SU
|
||||
Link Etc/UTC Zulu
|
81
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/etcetera
vendored
Normal file
81
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/etcetera
vendored
Normal file
|
@ -0,0 +1,81 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# These entries are mostly present for historical reasons, so that
|
||||
# people in areas not otherwise covered by the tz files could "zic -l"
|
||||
# to a time zone that was right for their area. These days, the
|
||||
# tz files cover almost all the inhabited world, and the only practical
|
||||
# need now for the entries that are not on UTC are for ships at sea
|
||||
# that cannot use POSIX TZ settings.
|
||||
|
||||
Zone Etc/GMT 0 - GMT
|
||||
Zone Etc/UTC 0 - UTC
|
||||
Zone Etc/UCT 0 - UCT
|
||||
|
||||
# The following link uses older naming conventions,
|
||||
# but it belongs here, not in the file `backward',
|
||||
# as functions like gmtime load the "GMT" file to handle leap seconds properly.
|
||||
# We want this to work even on installations that omit the other older names.
|
||||
Link Etc/GMT GMT
|
||||
|
||||
Link Etc/UTC Etc/Universal
|
||||
Link Etc/UTC Etc/Zulu
|
||||
|
||||
Link Etc/GMT Etc/Greenwich
|
||||
Link Etc/GMT Etc/GMT-0
|
||||
Link Etc/GMT Etc/GMT+0
|
||||
Link Etc/GMT Etc/GMT0
|
||||
|
||||
# We use POSIX-style signs in the Zone names and the output abbreviations,
|
||||
# even though this is the opposite of what many people expect.
|
||||
# POSIX has positive signs west of Greenwich, but many people expect
|
||||
# positive signs east of Greenwich. For example, TZ='Etc/GMT+4' uses
|
||||
# the abbreviation "GMT+4" and corresponds to 4 hours behind UTC
|
||||
# (i.e. west of Greenwich) even though many people would expect it to
|
||||
# mean 4 hours ahead of UTC (i.e. east of Greenwich).
|
||||
#
|
||||
# In the draft 5 of POSIX 1003.1-200x, the angle bracket notation allows for
|
||||
# TZ='<GMT-4>+4'; if you want time zone abbreviations conforming to
|
||||
# ISO 8601 you can use TZ='<-0400>+4'. Thus the commonly-expected
|
||||
# offset is kept within the angle bracket (and is used for display)
|
||||
# while the POSIX sign is kept outside the angle bracket (and is used
|
||||
# for calculation).
|
||||
#
|
||||
# Do not use a TZ setting like TZ='GMT+4', which is four hours behind
|
||||
# GMT but uses the completely misleading abbreviation "GMT".
|
||||
|
||||
# Earlier incarnations of this package were not POSIX-compliant,
|
||||
# and had lines such as
|
||||
# Zone GMT-12 -12 - GMT-1200
|
||||
# We did not want things to change quietly if someone accustomed to the old
|
||||
# way does a
|
||||
# zic -l GMT-12
|
||||
# so we moved the names into the Etc subdirectory.
|
||||
|
||||
Zone Etc/GMT-14 14 - GMT-14 # 14 hours ahead of GMT
|
||||
Zone Etc/GMT-13 13 - GMT-13
|
||||
Zone Etc/GMT-12 12 - GMT-12
|
||||
Zone Etc/GMT-11 11 - GMT-11
|
||||
Zone Etc/GMT-10 10 - GMT-10
|
||||
Zone Etc/GMT-9 9 - GMT-9
|
||||
Zone Etc/GMT-8 8 - GMT-8
|
||||
Zone Etc/GMT-7 7 - GMT-7
|
||||
Zone Etc/GMT-6 6 - GMT-6
|
||||
Zone Etc/GMT-5 5 - GMT-5
|
||||
Zone Etc/GMT-4 4 - GMT-4
|
||||
Zone Etc/GMT-3 3 - GMT-3
|
||||
Zone Etc/GMT-2 2 - GMT-2
|
||||
Zone Etc/GMT-1 1 - GMT-1
|
||||
Zone Etc/GMT+1 -1 - GMT+1
|
||||
Zone Etc/GMT+2 -2 - GMT+2
|
||||
Zone Etc/GMT+3 -3 - GMT+3
|
||||
Zone Etc/GMT+4 -4 - GMT+4
|
||||
Zone Etc/GMT+5 -5 - GMT+5
|
||||
Zone Etc/GMT+6 -6 - GMT+6
|
||||
Zone Etc/GMT+7 -7 - GMT+7
|
||||
Zone Etc/GMT+8 -8 - GMT+8
|
||||
Zone Etc/GMT+9 -9 - GMT+9
|
||||
Zone Etc/GMT+10 -10 - GMT+10
|
||||
Zone Etc/GMT+11 -11 - GMT+11
|
||||
Zone Etc/GMT+12 -12 - GMT+12
|
2856
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/europe
vendored
Normal file
2856
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/europe
vendored
Normal file
File diff suppressed because it is too large
Load diff
10
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/factory
vendored
Normal file
10
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/factory
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# For companies who don't want to put time zone specification in
|
||||
# their installation procedures. When users run date, they'll get the message.
|
||||
# Also useful for the "comp.sources" version.
|
||||
|
||||
# Zone NAME GMTOFF RULES FORMAT
|
||||
Zone Factory 0 - "Local time zone must be set--see zic manual page"
|
276
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/iso3166.tab
vendored
Normal file
276
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/iso3166.tab
vendored
Normal file
|
@ -0,0 +1,276 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
# ISO 3166 alpha-2 country codes
|
||||
#
|
||||
# From Paul Eggert (2006-09-27):
|
||||
#
|
||||
# This file contains a table with the following columns:
|
||||
# 1. ISO 3166-1 alpha-2 country code, current as of
|
||||
# ISO 3166-1 Newsletter VI-1 (2007-09-21). See:
|
||||
# <a href="http://www.iso.org/iso/en/prods-services/iso3166ma/index.html">
|
||||
# ISO 3166 Maintenance agency (ISO 3166/MA)
|
||||
# </a>.
|
||||
# 2. The usual English name for the country,
|
||||
# chosen so that alphabetic sorting of subsets produces helpful lists.
|
||||
# This is not the same as the English name in the ISO 3166 tables.
|
||||
#
|
||||
# Columns are separated by a single tab.
|
||||
# The table is sorted by country code.
|
||||
#
|
||||
# Lines beginning with `#' are comments.
|
||||
#
|
||||
# From Arthur David Olson (2011-08-17):
|
||||
# Resynchronized today with the ISO 3166 site (adding SS for South Sudan).
|
||||
#
|
||||
#country-
|
||||
#code country name
|
||||
AD Andorra
|
||||
AE United Arab Emirates
|
||||
AF Afghanistan
|
||||
AG Antigua & Barbuda
|
||||
AI Anguilla
|
||||
AL Albania
|
||||
AM Armenia
|
||||
AO Angola
|
||||
AQ Antarctica
|
||||
AR Argentina
|
||||
AS Samoa (American)
|
||||
AT Austria
|
||||
AU Australia
|
||||
AW Aruba
|
||||
AX Aaland Islands
|
||||
AZ Azerbaijan
|
||||
BA Bosnia & Herzegovina
|
||||
BB Barbados
|
||||
BD Bangladesh
|
||||
BE Belgium
|
||||
BF Burkina Faso
|
||||
BG Bulgaria
|
||||
BH Bahrain
|
||||
BI Burundi
|
||||
BJ Benin
|
||||
BL St Barthelemy
|
||||
BM Bermuda
|
||||
BN Brunei
|
||||
BO Bolivia
|
||||
BQ Bonaire Sint Eustatius & Saba
|
||||
BR Brazil
|
||||
BS Bahamas
|
||||
BT Bhutan
|
||||
BV Bouvet Island
|
||||
BW Botswana
|
||||
BY Belarus
|
||||
BZ Belize
|
||||
CA Canada
|
||||
CC Cocos (Keeling) Islands
|
||||
CD Congo (Dem. Rep.)
|
||||
CF Central African Rep.
|
||||
CG Congo (Rep.)
|
||||
CH Switzerland
|
||||
CI Cote d'Ivoire
|
||||
CK Cook Islands
|
||||
CL Chile
|
||||
CM Cameroon
|
||||
CN China
|
||||
CO Colombia
|
||||
CR Costa Rica
|
||||
CU Cuba
|
||||
CV Cape Verde
|
||||
CW Curacao
|
||||
CX Christmas Island
|
||||
CY Cyprus
|
||||
CZ Czech Republic
|
||||
DE Germany
|
||||
DJ Djibouti
|
||||
DK Denmark
|
||||
DM Dominica
|
||||
DO Dominican Republic
|
||||
DZ Algeria
|
||||
EC Ecuador
|
||||
EE Estonia
|
||||
EG Egypt
|
||||
EH Western Sahara
|
||||
ER Eritrea
|
||||
ES Spain
|
||||
ET Ethiopia
|
||||
FI Finland
|
||||
FJ Fiji
|
||||
FK Falkland Islands
|
||||
FM Micronesia
|
||||
FO Faroe Islands
|
||||
FR France
|
||||
GA Gabon
|
||||
GB Britain (UK)
|
||||
GD Grenada
|
||||
GE Georgia
|
||||
GF French Guiana
|
||||
GG Guernsey
|
||||
GH Ghana
|
||||
GI Gibraltar
|
||||
GL Greenland
|
||||
GM Gambia
|
||||
GN Guinea
|
||||
GP Guadeloupe
|
||||
GQ Equatorial Guinea
|
||||
GR Greece
|
||||
GS South Georgia & the South Sandwich Islands
|
||||
GT Guatemala
|
||||
GU Guam
|
||||
GW Guinea-Bissau
|
||||
GY Guyana
|
||||
HK Hong Kong
|
||||
HM Heard Island & McDonald Islands
|
||||
HN Honduras
|
||||
HR Croatia
|
||||
HT Haiti
|
||||
HU Hungary
|
||||
ID Indonesia
|
||||
IE Ireland
|
||||
IL Israel
|
||||
IM Isle of Man
|
||||
IN India
|
||||
IO British Indian Ocean Territory
|
||||
IQ Iraq
|
||||
IR Iran
|
||||
IS Iceland
|
||||
IT Italy
|
||||
JE Jersey
|
||||
JM Jamaica
|
||||
JO Jordan
|
||||
JP Japan
|
||||
KE Kenya
|
||||
KG Kyrgyzstan
|
||||
KH Cambodia
|
||||
KI Kiribati
|
||||
KM Comoros
|
||||
KN St Kitts & Nevis
|
||||
KP Korea (North)
|
||||
KR Korea (South)
|
||||
KW Kuwait
|
||||
KY Cayman Islands
|
||||
KZ Kazakhstan
|
||||
LA Laos
|
||||
LB Lebanon
|
||||
LC St Lucia
|
||||
LI Liechtenstein
|
||||
LK Sri Lanka
|
||||
LR Liberia
|
||||
LS Lesotho
|
||||
LT Lithuania
|
||||
LU Luxembourg
|
||||
LV Latvia
|
||||
LY Libya
|
||||
MA Morocco
|
||||
MC Monaco
|
||||
MD Moldova
|
||||
ME Montenegro
|
||||
MF St Martin (French part)
|
||||
MG Madagascar
|
||||
MH Marshall Islands
|
||||
MK Macedonia
|
||||
ML Mali
|
||||
MM Myanmar (Burma)
|
||||
MN Mongolia
|
||||
MO Macau
|
||||
MP Northern Mariana Islands
|
||||
MQ Martinique
|
||||
MR Mauritania
|
||||
MS Montserrat
|
||||
MT Malta
|
||||
MU Mauritius
|
||||
MV Maldives
|
||||
MW Malawi
|
||||
MX Mexico
|
||||
MY Malaysia
|
||||
MZ Mozambique
|
||||
NA Namibia
|
||||
NC New Caledonia
|
||||
NE Niger
|
||||
NF Norfolk Island
|
||||
NG Nigeria
|
||||
NI Nicaragua
|
||||
NL Netherlands
|
||||
NO Norway
|
||||
NP Nepal
|
||||
NR Nauru
|
||||
NU Niue
|
||||
NZ New Zealand
|
||||
OM Oman
|
||||
PA Panama
|
||||
PE Peru
|
||||
PF French Polynesia
|
||||
PG Papua New Guinea
|
||||
PH Philippines
|
||||
PK Pakistan
|
||||
PL Poland
|
||||
PM St Pierre & Miquelon
|
||||
PN Pitcairn
|
||||
PR Puerto Rico
|
||||
PS Palestine
|
||||
PT Portugal
|
||||
PW Palau
|
||||
PY Paraguay
|
||||
QA Qatar
|
||||
RE Reunion
|
||||
RO Romania
|
||||
RS Serbia
|
||||
RU Russia
|
||||
RW Rwanda
|
||||
SA Saudi Arabia
|
||||
SB Solomon Islands
|
||||
SC Seychelles
|
||||
SD Sudan
|
||||
SE Sweden
|
||||
SG Singapore
|
||||
SH St Helena
|
||||
SI Slovenia
|
||||
SJ Svalbard & Jan Mayen
|
||||
SK Slovakia
|
||||
SL Sierra Leone
|
||||
SM San Marino
|
||||
SN Senegal
|
||||
SO Somalia
|
||||
SR Suriname
|
||||
SS South Sudan
|
||||
ST Sao Tome & Principe
|
||||
SV El Salvador
|
||||
SX Sint Maarten
|
||||
SY Syria
|
||||
SZ Swaziland
|
||||
TC Turks & Caicos Is
|
||||
TD Chad
|
||||
TF French Southern & Antarctic Lands
|
||||
TG Togo
|
||||
TH Thailand
|
||||
TJ Tajikistan
|
||||
TK Tokelau
|
||||
TL East Timor
|
||||
TM Turkmenistan
|
||||
TN Tunisia
|
||||
TO Tonga
|
||||
TR Turkey
|
||||
TT Trinidad & Tobago
|
||||
TV Tuvalu
|
||||
TW Taiwan
|
||||
TZ Tanzania
|
||||
UA Ukraine
|
||||
UG Uganda
|
||||
UM US minor outlying islands
|
||||
US United States
|
||||
UY Uruguay
|
||||
UZ Uzbekistan
|
||||
VA Vatican City
|
||||
VC St Vincent
|
||||
VE Venezuela
|
||||
VG Virgin Islands (UK)
|
||||
VI Virgin Islands (US)
|
||||
VN Vietnam
|
||||
VU Vanuatu
|
||||
WF Wallis & Futuna
|
||||
WS Samoa (western)
|
||||
YE Yemen
|
||||
YT Mayotte
|
||||
ZA South Africa
|
||||
ZM Zambia
|
||||
ZW Zimbabwe
|
100
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/leapseconds
vendored
Normal file
100
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/leapseconds
vendored
Normal file
|
@ -0,0 +1,100 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# Allowance for leapseconds added to each timezone file.
|
||||
|
||||
# The International Earth Rotation Service periodically uses leap seconds
|
||||
# to keep UTC to within 0.9 s of UT1
|
||||
# (which measures the true angular orientation of the earth in space); see
|
||||
# Terry J Quinn, The BIPM and the accurate measure of time,
|
||||
# Proc IEEE 79, 7 (July 1991), 894-905.
|
||||
# There were no leap seconds before 1972, because the official mechanism
|
||||
# accounting for the discrepancy between atomic time and the earth's rotation
|
||||
# did not exist until the early 1970s.
|
||||
|
||||
# The correction (+ or -) is made at the given time, so lines
|
||||
# will typically look like:
|
||||
# Leap YEAR MON DAY 23:59:60 + R/S
|
||||
# or
|
||||
# Leap YEAR MON DAY 23:59:59 - R/S
|
||||
|
||||
# If the leapsecond is Rolling (R) the given time is local time
|
||||
# If the leapsecond is Stationary (S) the given time is UTC
|
||||
|
||||
# Leap YEAR MONTH DAY HH:MM:SS CORR R/S
|
||||
Leap 1972 Jun 30 23:59:60 + S
|
||||
Leap 1972 Dec 31 23:59:60 + S
|
||||
Leap 1973 Dec 31 23:59:60 + S
|
||||
Leap 1974 Dec 31 23:59:60 + S
|
||||
Leap 1975 Dec 31 23:59:60 + S
|
||||
Leap 1976 Dec 31 23:59:60 + S
|
||||
Leap 1977 Dec 31 23:59:60 + S
|
||||
Leap 1978 Dec 31 23:59:60 + S
|
||||
Leap 1979 Dec 31 23:59:60 + S
|
||||
Leap 1981 Jun 30 23:59:60 + S
|
||||
Leap 1982 Jun 30 23:59:60 + S
|
||||
Leap 1983 Jun 30 23:59:60 + S
|
||||
Leap 1985 Jun 30 23:59:60 + S
|
||||
Leap 1987 Dec 31 23:59:60 + S
|
||||
Leap 1989 Dec 31 23:59:60 + S
|
||||
Leap 1990 Dec 31 23:59:60 + S
|
||||
Leap 1992 Jun 30 23:59:60 + S
|
||||
Leap 1993 Jun 30 23:59:60 + S
|
||||
Leap 1994 Jun 30 23:59:60 + S
|
||||
Leap 1995 Dec 31 23:59:60 + S
|
||||
Leap 1997 Jun 30 23:59:60 + S
|
||||
Leap 1998 Dec 31 23:59:60 + S
|
||||
Leap 2005 Dec 31 23:59:60 + S
|
||||
Leap 2008 Dec 31 23:59:60 + S
|
||||
Leap 2012 Jun 30 23:59:60 + S
|
||||
|
||||
# INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE (IERS)
|
||||
#
|
||||
# SERVICE INTERNATIONAL DE LA ROTATION TERRESTRE ET DES SYSTEMES DE REFERENCE
|
||||
#
|
||||
#
|
||||
# SERVICE DE LA ROTATION TERRESTRE
|
||||
# OBSERVATOIRE DE PARIS
|
||||
# 61, Av. de l'Observatoire 75014 PARIS (France)
|
||||
# Tel. : 33 (0) 1 40 51 22 26
|
||||
# FAX : 33 (0) 1 40 51 22 91
|
||||
# e-mail : (E-Mail Removed)
|
||||
# http://hpiers.obspm.fr/eop-pc
|
||||
#
|
||||
# Paris, 5 January 2012
|
||||
#
|
||||
#
|
||||
# Bulletin C 43
|
||||
#
|
||||
# To authorities responsible
|
||||
# for the measurement and
|
||||
# distribution of time
|
||||
#
|
||||
#
|
||||
# UTC TIME STEP
|
||||
# on the 1st of July 2012
|
||||
#
|
||||
#
|
||||
# A positive leap second will be introduced at the end of June 2012.
|
||||
# The sequence of dates of the UTC second markers will be:
|
||||
#
|
||||
# 2012 June 30, 23h 59m 59s
|
||||
# 2012 June 30, 23h 59m 60s
|
||||
# 2012 July 1, 0h 0m 0s
|
||||
#
|
||||
# The difference between UTC and the International Atomic Time TAI is:
|
||||
#
|
||||
# from 2009 January 1, 0h UTC, to 2012 July 1 0h UTC : UTC-TAI = - 34s
|
||||
# from 2012 July 1, 0h UTC, until further notice : UTC-TAI = - 35s
|
||||
#
|
||||
# Leap seconds can be introduced in UTC at the end of the months of December
|
||||
# or June, depending on the evolution of UT1-TAI. Bulletin C is mailed every
|
||||
# six months, either to announce a time step in UTC or to confirm that there
|
||||
# will be no time step at the next possible date.
|
||||
#
|
||||
#
|
||||
# Daniel GAMBIS
|
||||
# Head
|
||||
# Earth Orientation Center of IERS
|
||||
# Observatoire de Paris, France
|
3235
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/northamerica
vendored
Normal file
3235
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/northamerica
vendored
Normal file
File diff suppressed because it is too large
Load diff
28
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/pacificnew
vendored
Normal file
28
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/pacificnew
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# From Arthur David Olson (1989-04-05):
|
||||
# On 1989-04-05, the U. S. House of Representatives passed (238-154) a bill
|
||||
# establishing "Pacific Presidential Election Time"; it was not acted on
|
||||
# by the Senate or signed into law by the President.
|
||||
# You might want to change the "PE" (Presidential Election) below to
|
||||
# "Q" (Quadrennial) to maintain three-character zone abbreviations.
|
||||
# If you're really conservative, you might want to change it to "D".
|
||||
# Avoid "L" (Leap Year), which won't be true in 2100.
|
||||
|
||||
# If Presidential Election Time is ever established, replace "XXXX" below
|
||||
# with the year the law takes effect and uncomment the "##" lines.
|
||||
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
## Rule Twilite XXXX max - Apr Sun>=1 2:00 1:00 D
|
||||
## Rule Twilite XXXX max uspres Oct lastSun 2:00 1:00 PE
|
||||
## Rule Twilite XXXX max uspres Nov Sun>=7 2:00 0 S
|
||||
## Rule Twilite XXXX max nonpres Oct lastSun 2:00 0 S
|
||||
|
||||
# Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
|
||||
## Zone America/Los_Angeles-PET -8:00 US P%sT XXXX
|
||||
## -8:00 Twilite P%sT
|
||||
|
||||
# For now...
|
||||
Link America/Los_Angeles US/Pacific-New ##
|
390
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/solar87
vendored
Normal file
390
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/solar87
vendored
Normal file
|
@ -0,0 +1,390 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# So much for footnotes about Saudi Arabia.
|
||||
# Apparent noon times below are for Riyadh; your mileage will vary.
|
||||
# Times were computed using formulas in the U.S. Naval Observatory's
|
||||
# Almanac for Computers 1987; the formulas "will give EqT to an accuracy of
|
||||
# [plus or minus two] seconds during the current year."
|
||||
#
|
||||
# Rounding to the nearest five seconds results in fewer than
|
||||
# 256 different "time types"--a limit that's faced because time types are
|
||||
# stored on disk as unsigned chars.
|
||||
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule sol87 1987 only - Jan 1 12:03:20s -0:03:20 -
|
||||
Rule sol87 1987 only - Jan 2 12:03:50s -0:03:50 -
|
||||
Rule sol87 1987 only - Jan 3 12:04:15s -0:04:15 -
|
||||
Rule sol87 1987 only - Jan 4 12:04:45s -0:04:45 -
|
||||
Rule sol87 1987 only - Jan 5 12:05:10s -0:05:10 -
|
||||
Rule sol87 1987 only - Jan 6 12:05:40s -0:05:40 -
|
||||
Rule sol87 1987 only - Jan 7 12:06:05s -0:06:05 -
|
||||
Rule sol87 1987 only - Jan 8 12:06:30s -0:06:30 -
|
||||
Rule sol87 1987 only - Jan 9 12:06:55s -0:06:55 -
|
||||
Rule sol87 1987 only - Jan 10 12:07:20s -0:07:20 -
|
||||
Rule sol87 1987 only - Jan 11 12:07:45s -0:07:45 -
|
||||
Rule sol87 1987 only - Jan 12 12:08:10s -0:08:10 -
|
||||
Rule sol87 1987 only - Jan 13 12:08:30s -0:08:30 -
|
||||
Rule sol87 1987 only - Jan 14 12:08:55s -0:08:55 -
|
||||
Rule sol87 1987 only - Jan 15 12:09:15s -0:09:15 -
|
||||
Rule sol87 1987 only - Jan 16 12:09:35s -0:09:35 -
|
||||
Rule sol87 1987 only - Jan 17 12:09:55s -0:09:55 -
|
||||
Rule sol87 1987 only - Jan 18 12:10:15s -0:10:15 -
|
||||
Rule sol87 1987 only - Jan 19 12:10:35s -0:10:35 -
|
||||
Rule sol87 1987 only - Jan 20 12:10:55s -0:10:55 -
|
||||
Rule sol87 1987 only - Jan 21 12:11:10s -0:11:10 -
|
||||
Rule sol87 1987 only - Jan 22 12:11:30s -0:11:30 -
|
||||
Rule sol87 1987 only - Jan 23 12:11:45s -0:11:45 -
|
||||
Rule sol87 1987 only - Jan 24 12:12:00s -0:12:00 -
|
||||
Rule sol87 1987 only - Jan 25 12:12:15s -0:12:15 -
|
||||
Rule sol87 1987 only - Jan 26 12:12:30s -0:12:30 -
|
||||
Rule sol87 1987 only - Jan 27 12:12:40s -0:12:40 -
|
||||
Rule sol87 1987 only - Jan 28 12:12:55s -0:12:55 -
|
||||
Rule sol87 1987 only - Jan 29 12:13:05s -0:13:05 -
|
||||
Rule sol87 1987 only - Jan 30 12:13:15s -0:13:15 -
|
||||
Rule sol87 1987 only - Jan 31 12:13:25s -0:13:25 -
|
||||
Rule sol87 1987 only - Feb 1 12:13:35s -0:13:35 -
|
||||
Rule sol87 1987 only - Feb 2 12:13:40s -0:13:40 -
|
||||
Rule sol87 1987 only - Feb 3 12:13:50s -0:13:50 -
|
||||
Rule sol87 1987 only - Feb 4 12:13:55s -0:13:55 -
|
||||
Rule sol87 1987 only - Feb 5 12:14:00s -0:14:00 -
|
||||
Rule sol87 1987 only - Feb 6 12:14:05s -0:14:05 -
|
||||
Rule sol87 1987 only - Feb 7 12:14:10s -0:14:10 -
|
||||
Rule sol87 1987 only - Feb 8 12:14:10s -0:14:10 -
|
||||
Rule sol87 1987 only - Feb 9 12:14:15s -0:14:15 -
|
||||
Rule sol87 1987 only - Feb 10 12:14:15s -0:14:15 -
|
||||
Rule sol87 1987 only - Feb 11 12:14:15s -0:14:15 -
|
||||
Rule sol87 1987 only - Feb 12 12:14:15s -0:14:15 -
|
||||
Rule sol87 1987 only - Feb 13 12:14:15s -0:14:15 -
|
||||
Rule sol87 1987 only - Feb 14 12:14:15s -0:14:15 -
|
||||
Rule sol87 1987 only - Feb 15 12:14:10s -0:14:10 -
|
||||
Rule sol87 1987 only - Feb 16 12:14:10s -0:14:10 -
|
||||
Rule sol87 1987 only - Feb 17 12:14:05s -0:14:05 -
|
||||
Rule sol87 1987 only - Feb 18 12:14:00s -0:14:00 -
|
||||
Rule sol87 1987 only - Feb 19 12:13:55s -0:13:55 -
|
||||
Rule sol87 1987 only - Feb 20 12:13:50s -0:13:50 -
|
||||
Rule sol87 1987 only - Feb 21 12:13:45s -0:13:45 -
|
||||
Rule sol87 1987 only - Feb 22 12:13:35s -0:13:35 -
|
||||
Rule sol87 1987 only - Feb 23 12:13:30s -0:13:30 -
|
||||
Rule sol87 1987 only - Feb 24 12:13:20s -0:13:20 -
|
||||
Rule sol87 1987 only - Feb 25 12:13:10s -0:13:10 -
|
||||
Rule sol87 1987 only - Feb 26 12:13:00s -0:13:00 -
|
||||
Rule sol87 1987 only - Feb 27 12:12:50s -0:12:50 -
|
||||
Rule sol87 1987 only - Feb 28 12:12:40s -0:12:40 -
|
||||
Rule sol87 1987 only - Mar 1 12:12:30s -0:12:30 -
|
||||
Rule sol87 1987 only - Mar 2 12:12:20s -0:12:20 -
|
||||
Rule sol87 1987 only - Mar 3 12:12:05s -0:12:05 -
|
||||
Rule sol87 1987 only - Mar 4 12:11:55s -0:11:55 -
|
||||
Rule sol87 1987 only - Mar 5 12:11:40s -0:11:40 -
|
||||
Rule sol87 1987 only - Mar 6 12:11:25s -0:11:25 -
|
||||
Rule sol87 1987 only - Mar 7 12:11:15s -0:11:15 -
|
||||
Rule sol87 1987 only - Mar 8 12:11:00s -0:11:00 -
|
||||
Rule sol87 1987 only - Mar 9 12:10:45s -0:10:45 -
|
||||
Rule sol87 1987 only - Mar 10 12:10:30s -0:10:30 -
|
||||
Rule sol87 1987 only - Mar 11 12:10:15s -0:10:15 -
|
||||
Rule sol87 1987 only - Mar 12 12:09:55s -0:09:55 -
|
||||
Rule sol87 1987 only - Mar 13 12:09:40s -0:09:40 -
|
||||
Rule sol87 1987 only - Mar 14 12:09:25s -0:09:25 -
|
||||
Rule sol87 1987 only - Mar 15 12:09:10s -0:09:10 -
|
||||
Rule sol87 1987 only - Mar 16 12:08:50s -0:08:50 -
|
||||
Rule sol87 1987 only - Mar 17 12:08:35s -0:08:35 -
|
||||
Rule sol87 1987 only - Mar 18 12:08:15s -0:08:15 -
|
||||
Rule sol87 1987 only - Mar 19 12:08:00s -0:08:00 -
|
||||
Rule sol87 1987 only - Mar 20 12:07:40s -0:07:40 -
|
||||
Rule sol87 1987 only - Mar 21 12:07:25s -0:07:25 -
|
||||
Rule sol87 1987 only - Mar 22 12:07:05s -0:07:05 -
|
||||
Rule sol87 1987 only - Mar 23 12:06:50s -0:06:50 -
|
||||
Rule sol87 1987 only - Mar 24 12:06:30s -0:06:30 -
|
||||
Rule sol87 1987 only - Mar 25 12:06:10s -0:06:10 -
|
||||
Rule sol87 1987 only - Mar 26 12:05:55s -0:05:55 -
|
||||
Rule sol87 1987 only - Mar 27 12:05:35s -0:05:35 -
|
||||
Rule sol87 1987 only - Mar 28 12:05:15s -0:05:15 -
|
||||
Rule sol87 1987 only - Mar 29 12:05:00s -0:05:00 -
|
||||
Rule sol87 1987 only - Mar 30 12:04:40s -0:04:40 -
|
||||
Rule sol87 1987 only - Mar 31 12:04:25s -0:04:25 -
|
||||
Rule sol87 1987 only - Apr 1 12:04:05s -0:04:05 -
|
||||
Rule sol87 1987 only - Apr 2 12:03:45s -0:03:45 -
|
||||
Rule sol87 1987 only - Apr 3 12:03:30s -0:03:30 -
|
||||
Rule sol87 1987 only - Apr 4 12:03:10s -0:03:10 -
|
||||
Rule sol87 1987 only - Apr 5 12:02:55s -0:02:55 -
|
||||
Rule sol87 1987 only - Apr 6 12:02:35s -0:02:35 -
|
||||
Rule sol87 1987 only - Apr 7 12:02:20s -0:02:20 -
|
||||
Rule sol87 1987 only - Apr 8 12:02:05s -0:02:05 -
|
||||
Rule sol87 1987 only - Apr 9 12:01:45s -0:01:45 -
|
||||
Rule sol87 1987 only - Apr 10 12:01:30s -0:01:30 -
|
||||
Rule sol87 1987 only - Apr 11 12:01:15s -0:01:15 -
|
||||
Rule sol87 1987 only - Apr 12 12:00:55s -0:00:55 -
|
||||
Rule sol87 1987 only - Apr 13 12:00:40s -0:00:40 -
|
||||
Rule sol87 1987 only - Apr 14 12:00:25s -0:00:25 -
|
||||
Rule sol87 1987 only - Apr 15 12:00:10s -0:00:10 -
|
||||
Rule sol87 1987 only - Apr 16 11:59:55s 0:00:05 -
|
||||
Rule sol87 1987 only - Apr 17 11:59:45s 0:00:15 -
|
||||
Rule sol87 1987 only - Apr 18 11:59:30s 0:00:30 -
|
||||
Rule sol87 1987 only - Apr 19 11:59:15s 0:00:45 -
|
||||
Rule sol87 1987 only - Apr 20 11:59:05s 0:00:55 -
|
||||
Rule sol87 1987 only - Apr 21 11:58:50s 0:01:10 -
|
||||
Rule sol87 1987 only - Apr 22 11:58:40s 0:01:20 -
|
||||
Rule sol87 1987 only - Apr 23 11:58:25s 0:01:35 -
|
||||
Rule sol87 1987 only - Apr 24 11:58:15s 0:01:45 -
|
||||
Rule sol87 1987 only - Apr 25 11:58:05s 0:01:55 -
|
||||
Rule sol87 1987 only - Apr 26 11:57:55s 0:02:05 -
|
||||
Rule sol87 1987 only - Apr 27 11:57:45s 0:02:15 -
|
||||
Rule sol87 1987 only - Apr 28 11:57:35s 0:02:25 -
|
||||
Rule sol87 1987 only - Apr 29 11:57:25s 0:02:35 -
|
||||
Rule sol87 1987 only - Apr 30 11:57:15s 0:02:45 -
|
||||
Rule sol87 1987 only - May 1 11:57:10s 0:02:50 -
|
||||
Rule sol87 1987 only - May 2 11:57:00s 0:03:00 -
|
||||
Rule sol87 1987 only - May 3 11:56:55s 0:03:05 -
|
||||
Rule sol87 1987 only - May 4 11:56:50s 0:03:10 -
|
||||
Rule sol87 1987 only - May 5 11:56:45s 0:03:15 -
|
||||
Rule sol87 1987 only - May 6 11:56:40s 0:03:20 -
|
||||
Rule sol87 1987 only - May 7 11:56:35s 0:03:25 -
|
||||
Rule sol87 1987 only - May 8 11:56:30s 0:03:30 -
|
||||
Rule sol87 1987 only - May 9 11:56:25s 0:03:35 -
|
||||
Rule sol87 1987 only - May 10 11:56:25s 0:03:35 -
|
||||
Rule sol87 1987 only - May 11 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - May 12 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - May 13 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - May 14 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - May 15 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - May 16 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - May 17 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - May 18 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - May 19 11:56:25s 0:03:35 -
|
||||
Rule sol87 1987 only - May 20 11:56:25s 0:03:35 -
|
||||
Rule sol87 1987 only - May 21 11:56:30s 0:03:30 -
|
||||
Rule sol87 1987 only - May 22 11:56:35s 0:03:25 -
|
||||
Rule sol87 1987 only - May 23 11:56:40s 0:03:20 -
|
||||
Rule sol87 1987 only - May 24 11:56:45s 0:03:15 -
|
||||
Rule sol87 1987 only - May 25 11:56:50s 0:03:10 -
|
||||
Rule sol87 1987 only - May 26 11:56:55s 0:03:05 -
|
||||
Rule sol87 1987 only - May 27 11:57:00s 0:03:00 -
|
||||
Rule sol87 1987 only - May 28 11:57:10s 0:02:50 -
|
||||
Rule sol87 1987 only - May 29 11:57:15s 0:02:45 -
|
||||
Rule sol87 1987 only - May 30 11:57:25s 0:02:35 -
|
||||
Rule sol87 1987 only - May 31 11:57:30s 0:02:30 -
|
||||
Rule sol87 1987 only - Jun 1 11:57:40s 0:02:20 -
|
||||
Rule sol87 1987 only - Jun 2 11:57:50s 0:02:10 -
|
||||
Rule sol87 1987 only - Jun 3 11:58:00s 0:02:00 -
|
||||
Rule sol87 1987 only - Jun 4 11:58:10s 0:01:50 -
|
||||
Rule sol87 1987 only - Jun 5 11:58:20s 0:01:40 -
|
||||
Rule sol87 1987 only - Jun 6 11:58:30s 0:01:30 -
|
||||
Rule sol87 1987 only - Jun 7 11:58:40s 0:01:20 -
|
||||
Rule sol87 1987 only - Jun 8 11:58:50s 0:01:10 -
|
||||
Rule sol87 1987 only - Jun 9 11:59:05s 0:00:55 -
|
||||
Rule sol87 1987 only - Jun 10 11:59:15s 0:00:45 -
|
||||
Rule sol87 1987 only - Jun 11 11:59:30s 0:00:30 -
|
||||
Rule sol87 1987 only - Jun 12 11:59:40s 0:00:20 -
|
||||
Rule sol87 1987 only - Jun 13 11:59:50s 0:00:10 -
|
||||
Rule sol87 1987 only - Jun 14 12:00:05s -0:00:05 -
|
||||
Rule sol87 1987 only - Jun 15 12:00:15s -0:00:15 -
|
||||
Rule sol87 1987 only - Jun 16 12:00:30s -0:00:30 -
|
||||
Rule sol87 1987 only - Jun 17 12:00:45s -0:00:45 -
|
||||
Rule sol87 1987 only - Jun 18 12:00:55s -0:00:55 -
|
||||
Rule sol87 1987 only - Jun 19 12:01:10s -0:01:10 -
|
||||
Rule sol87 1987 only - Jun 20 12:01:20s -0:01:20 -
|
||||
Rule sol87 1987 only - Jun 21 12:01:35s -0:01:35 -
|
||||
Rule sol87 1987 only - Jun 22 12:01:50s -0:01:50 -
|
||||
Rule sol87 1987 only - Jun 23 12:02:00s -0:02:00 -
|
||||
Rule sol87 1987 only - Jun 24 12:02:15s -0:02:15 -
|
||||
Rule sol87 1987 only - Jun 25 12:02:25s -0:02:25 -
|
||||
Rule sol87 1987 only - Jun 26 12:02:40s -0:02:40 -
|
||||
Rule sol87 1987 only - Jun 27 12:02:50s -0:02:50 -
|
||||
Rule sol87 1987 only - Jun 28 12:03:05s -0:03:05 -
|
||||
Rule sol87 1987 only - Jun 29 12:03:15s -0:03:15 -
|
||||
Rule sol87 1987 only - Jun 30 12:03:30s -0:03:30 -
|
||||
Rule sol87 1987 only - Jul 1 12:03:40s -0:03:40 -
|
||||
Rule sol87 1987 only - Jul 2 12:03:50s -0:03:50 -
|
||||
Rule sol87 1987 only - Jul 3 12:04:05s -0:04:05 -
|
||||
Rule sol87 1987 only - Jul 4 12:04:15s -0:04:15 -
|
||||
Rule sol87 1987 only - Jul 5 12:04:25s -0:04:25 -
|
||||
Rule sol87 1987 only - Jul 6 12:04:35s -0:04:35 -
|
||||
Rule sol87 1987 only - Jul 7 12:04:45s -0:04:45 -
|
||||
Rule sol87 1987 only - Jul 8 12:04:55s -0:04:55 -
|
||||
Rule sol87 1987 only - Jul 9 12:05:05s -0:05:05 -
|
||||
Rule sol87 1987 only - Jul 10 12:05:15s -0:05:15 -
|
||||
Rule sol87 1987 only - Jul 11 12:05:20s -0:05:20 -
|
||||
Rule sol87 1987 only - Jul 12 12:05:30s -0:05:30 -
|
||||
Rule sol87 1987 only - Jul 13 12:05:40s -0:05:40 -
|
||||
Rule sol87 1987 only - Jul 14 12:05:45s -0:05:45 -
|
||||
Rule sol87 1987 only - Jul 15 12:05:50s -0:05:50 -
|
||||
Rule sol87 1987 only - Jul 16 12:06:00s -0:06:00 -
|
||||
Rule sol87 1987 only - Jul 17 12:06:05s -0:06:05 -
|
||||
Rule sol87 1987 only - Jul 18 12:06:10s -0:06:10 -
|
||||
Rule sol87 1987 only - Jul 19 12:06:15s -0:06:15 -
|
||||
Rule sol87 1987 only - Jul 20 12:06:15s -0:06:15 -
|
||||
Rule sol87 1987 only - Jul 21 12:06:20s -0:06:20 -
|
||||
Rule sol87 1987 only - Jul 22 12:06:25s -0:06:25 -
|
||||
Rule sol87 1987 only - Jul 23 12:06:25s -0:06:25 -
|
||||
Rule sol87 1987 only - Jul 24 12:06:25s -0:06:25 -
|
||||
Rule sol87 1987 only - Jul 25 12:06:30s -0:06:30 -
|
||||
Rule sol87 1987 only - Jul 26 12:06:30s -0:06:30 -
|
||||
Rule sol87 1987 only - Jul 27 12:06:30s -0:06:30 -
|
||||
Rule sol87 1987 only - Jul 28 12:06:30s -0:06:30 -
|
||||
Rule sol87 1987 only - Jul 29 12:06:25s -0:06:25 -
|
||||
Rule sol87 1987 only - Jul 30 12:06:25s -0:06:25 -
|
||||
Rule sol87 1987 only - Jul 31 12:06:25s -0:06:25 -
|
||||
Rule sol87 1987 only - Aug 1 12:06:20s -0:06:20 -
|
||||
Rule sol87 1987 only - Aug 2 12:06:15s -0:06:15 -
|
||||
Rule sol87 1987 only - Aug 3 12:06:10s -0:06:10 -
|
||||
Rule sol87 1987 only - Aug 4 12:06:05s -0:06:05 -
|
||||
Rule sol87 1987 only - Aug 5 12:06:00s -0:06:00 -
|
||||
Rule sol87 1987 only - Aug 6 12:05:55s -0:05:55 -
|
||||
Rule sol87 1987 only - Aug 7 12:05:50s -0:05:50 -
|
||||
Rule sol87 1987 only - Aug 8 12:05:40s -0:05:40 -
|
||||
Rule sol87 1987 only - Aug 9 12:05:35s -0:05:35 -
|
||||
Rule sol87 1987 only - Aug 10 12:05:25s -0:05:25 -
|
||||
Rule sol87 1987 only - Aug 11 12:05:15s -0:05:15 -
|
||||
Rule sol87 1987 only - Aug 12 12:05:05s -0:05:05 -
|
||||
Rule sol87 1987 only - Aug 13 12:04:55s -0:04:55 -
|
||||
Rule sol87 1987 only - Aug 14 12:04:45s -0:04:45 -
|
||||
Rule sol87 1987 only - Aug 15 12:04:35s -0:04:35 -
|
||||
Rule sol87 1987 only - Aug 16 12:04:25s -0:04:25 -
|
||||
Rule sol87 1987 only - Aug 17 12:04:10s -0:04:10 -
|
||||
Rule sol87 1987 only - Aug 18 12:04:00s -0:04:00 -
|
||||
Rule sol87 1987 only - Aug 19 12:03:45s -0:03:45 -
|
||||
Rule sol87 1987 only - Aug 20 12:03:30s -0:03:30 -
|
||||
Rule sol87 1987 only - Aug 21 12:03:15s -0:03:15 -
|
||||
Rule sol87 1987 only - Aug 22 12:03:00s -0:03:00 -
|
||||
Rule sol87 1987 only - Aug 23 12:02:45s -0:02:45 -
|
||||
Rule sol87 1987 only - Aug 24 12:02:30s -0:02:30 -
|
||||
Rule sol87 1987 only - Aug 25 12:02:15s -0:02:15 -
|
||||
Rule sol87 1987 only - Aug 26 12:02:00s -0:02:00 -
|
||||
Rule sol87 1987 only - Aug 27 12:01:40s -0:01:40 -
|
||||
Rule sol87 1987 only - Aug 28 12:01:25s -0:01:25 -
|
||||
Rule sol87 1987 only - Aug 29 12:01:05s -0:01:05 -
|
||||
Rule sol87 1987 only - Aug 30 12:00:50s -0:00:50 -
|
||||
Rule sol87 1987 only - Aug 31 12:00:30s -0:00:30 -
|
||||
Rule sol87 1987 only - Sep 1 12:00:10s -0:00:10 -
|
||||
Rule sol87 1987 only - Sep 2 11:59:50s 0:00:10 -
|
||||
Rule sol87 1987 only - Sep 3 11:59:35s 0:00:25 -
|
||||
Rule sol87 1987 only - Sep 4 11:59:15s 0:00:45 -
|
||||
Rule sol87 1987 only - Sep 5 11:58:55s 0:01:05 -
|
||||
Rule sol87 1987 only - Sep 6 11:58:35s 0:01:25 -
|
||||
Rule sol87 1987 only - Sep 7 11:58:15s 0:01:45 -
|
||||
Rule sol87 1987 only - Sep 8 11:57:55s 0:02:05 -
|
||||
Rule sol87 1987 only - Sep 9 11:57:30s 0:02:30 -
|
||||
Rule sol87 1987 only - Sep 10 11:57:10s 0:02:50 -
|
||||
Rule sol87 1987 only - Sep 11 11:56:50s 0:03:10 -
|
||||
Rule sol87 1987 only - Sep 12 11:56:30s 0:03:30 -
|
||||
Rule sol87 1987 only - Sep 13 11:56:10s 0:03:50 -
|
||||
Rule sol87 1987 only - Sep 14 11:55:45s 0:04:15 -
|
||||
Rule sol87 1987 only - Sep 15 11:55:25s 0:04:35 -
|
||||
Rule sol87 1987 only - Sep 16 11:55:05s 0:04:55 -
|
||||
Rule sol87 1987 only - Sep 17 11:54:45s 0:05:15 -
|
||||
Rule sol87 1987 only - Sep 18 11:54:20s 0:05:40 -
|
||||
Rule sol87 1987 only - Sep 19 11:54:00s 0:06:00 -
|
||||
Rule sol87 1987 only - Sep 20 11:53:40s 0:06:20 -
|
||||
Rule sol87 1987 only - Sep 21 11:53:15s 0:06:45 -
|
||||
Rule sol87 1987 only - Sep 22 11:52:55s 0:07:05 -
|
||||
Rule sol87 1987 only - Sep 23 11:52:35s 0:07:25 -
|
||||
Rule sol87 1987 only - Sep 24 11:52:15s 0:07:45 -
|
||||
Rule sol87 1987 only - Sep 25 11:51:55s 0:08:05 -
|
||||
Rule sol87 1987 only - Sep 26 11:51:35s 0:08:25 -
|
||||
Rule sol87 1987 only - Sep 27 11:51:10s 0:08:50 -
|
||||
Rule sol87 1987 only - Sep 28 11:50:50s 0:09:10 -
|
||||
Rule sol87 1987 only - Sep 29 11:50:30s 0:09:30 -
|
||||
Rule sol87 1987 only - Sep 30 11:50:10s 0:09:50 -
|
||||
Rule sol87 1987 only - Oct 1 11:49:50s 0:10:10 -
|
||||
Rule sol87 1987 only - Oct 2 11:49:35s 0:10:25 -
|
||||
Rule sol87 1987 only - Oct 3 11:49:15s 0:10:45 -
|
||||
Rule sol87 1987 only - Oct 4 11:48:55s 0:11:05 -
|
||||
Rule sol87 1987 only - Oct 5 11:48:35s 0:11:25 -
|
||||
Rule sol87 1987 only - Oct 6 11:48:20s 0:11:40 -
|
||||
Rule sol87 1987 only - Oct 7 11:48:00s 0:12:00 -
|
||||
Rule sol87 1987 only - Oct 8 11:47:45s 0:12:15 -
|
||||
Rule sol87 1987 only - Oct 9 11:47:25s 0:12:35 -
|
||||
Rule sol87 1987 only - Oct 10 11:47:10s 0:12:50 -
|
||||
Rule sol87 1987 only - Oct 11 11:46:55s 0:13:05 -
|
||||
Rule sol87 1987 only - Oct 12 11:46:40s 0:13:20 -
|
||||
Rule sol87 1987 only - Oct 13 11:46:25s 0:13:35 -
|
||||
Rule sol87 1987 only - Oct 14 11:46:10s 0:13:50 -
|
||||
Rule sol87 1987 only - Oct 15 11:45:55s 0:14:05 -
|
||||
Rule sol87 1987 only - Oct 16 11:45:45s 0:14:15 -
|
||||
Rule sol87 1987 only - Oct 17 11:45:30s 0:14:30 -
|
||||
Rule sol87 1987 only - Oct 18 11:45:20s 0:14:40 -
|
||||
Rule sol87 1987 only - Oct 19 11:45:05s 0:14:55 -
|
||||
Rule sol87 1987 only - Oct 20 11:44:55s 0:15:05 -
|
||||
Rule sol87 1987 only - Oct 21 11:44:45s 0:15:15 -
|
||||
Rule sol87 1987 only - Oct 22 11:44:35s 0:15:25 -
|
||||
Rule sol87 1987 only - Oct 23 11:44:25s 0:15:35 -
|
||||
Rule sol87 1987 only - Oct 24 11:44:20s 0:15:40 -
|
||||
Rule sol87 1987 only - Oct 25 11:44:10s 0:15:50 -
|
||||
Rule sol87 1987 only - Oct 26 11:44:05s 0:15:55 -
|
||||
Rule sol87 1987 only - Oct 27 11:43:55s 0:16:05 -
|
||||
Rule sol87 1987 only - Oct 28 11:43:50s 0:16:10 -
|
||||
Rule sol87 1987 only - Oct 29 11:43:45s 0:16:15 -
|
||||
Rule sol87 1987 only - Oct 30 11:43:45s 0:16:15 -
|
||||
Rule sol87 1987 only - Oct 31 11:43:40s 0:16:20 -
|
||||
Rule sol87 1987 only - Nov 1 11:43:40s 0:16:20 -
|
||||
Rule sol87 1987 only - Nov 2 11:43:35s 0:16:25 -
|
||||
Rule sol87 1987 only - Nov 3 11:43:35s 0:16:25 -
|
||||
Rule sol87 1987 only - Nov 4 11:43:35s 0:16:25 -
|
||||
Rule sol87 1987 only - Nov 5 11:43:35s 0:16:25 -
|
||||
Rule sol87 1987 only - Nov 6 11:43:40s 0:16:20 -
|
||||
Rule sol87 1987 only - Nov 7 11:43:40s 0:16:20 -
|
||||
Rule sol87 1987 only - Nov 8 11:43:45s 0:16:15 -
|
||||
Rule sol87 1987 only - Nov 9 11:43:50s 0:16:10 -
|
||||
Rule sol87 1987 only - Nov 10 11:43:55s 0:16:05 -
|
||||
Rule sol87 1987 only - Nov 11 11:44:00s 0:16:00 -
|
||||
Rule sol87 1987 only - Nov 12 11:44:05s 0:15:55 -
|
||||
Rule sol87 1987 only - Nov 13 11:44:15s 0:15:45 -
|
||||
Rule sol87 1987 only - Nov 14 11:44:20s 0:15:40 -
|
||||
Rule sol87 1987 only - Nov 15 11:44:30s 0:15:30 -
|
||||
Rule sol87 1987 only - Nov 16 11:44:40s 0:15:20 -
|
||||
Rule sol87 1987 only - Nov 17 11:44:50s 0:15:10 -
|
||||
Rule sol87 1987 only - Nov 18 11:45:05s 0:14:55 -
|
||||
Rule sol87 1987 only - Nov 19 11:45:15s 0:14:45 -
|
||||
Rule sol87 1987 only - Nov 20 11:45:30s 0:14:30 -
|
||||
Rule sol87 1987 only - Nov 21 11:45:45s 0:14:15 -
|
||||
Rule sol87 1987 only - Nov 22 11:46:00s 0:14:00 -
|
||||
Rule sol87 1987 only - Nov 23 11:46:15s 0:13:45 -
|
||||
Rule sol87 1987 only - Nov 24 11:46:30s 0:13:30 -
|
||||
Rule sol87 1987 only - Nov 25 11:46:50s 0:13:10 -
|
||||
Rule sol87 1987 only - Nov 26 11:47:10s 0:12:50 -
|
||||
Rule sol87 1987 only - Nov 27 11:47:25s 0:12:35 -
|
||||
Rule sol87 1987 only - Nov 28 11:47:45s 0:12:15 -
|
||||
Rule sol87 1987 only - Nov 29 11:48:05s 0:11:55 -
|
||||
Rule sol87 1987 only - Nov 30 11:48:30s 0:11:30 -
|
||||
Rule sol87 1987 only - Dec 1 11:48:50s 0:11:10 -
|
||||
Rule sol87 1987 only - Dec 2 11:49:10s 0:10:50 -
|
||||
Rule sol87 1987 only - Dec 3 11:49:35s 0:10:25 -
|
||||
Rule sol87 1987 only - Dec 4 11:50:00s 0:10:00 -
|
||||
Rule sol87 1987 only - Dec 5 11:50:25s 0:09:35 -
|
||||
Rule sol87 1987 only - Dec 6 11:50:50s 0:09:10 -
|
||||
Rule sol87 1987 only - Dec 7 11:51:15s 0:08:45 -
|
||||
Rule sol87 1987 only - Dec 8 11:51:40s 0:08:20 -
|
||||
Rule sol87 1987 only - Dec 9 11:52:05s 0:07:55 -
|
||||
Rule sol87 1987 only - Dec 10 11:52:30s 0:07:30 -
|
||||
Rule sol87 1987 only - Dec 11 11:53:00s 0:07:00 -
|
||||
Rule sol87 1987 only - Dec 12 11:53:25s 0:06:35 -
|
||||
Rule sol87 1987 only - Dec 13 11:53:55s 0:06:05 -
|
||||
Rule sol87 1987 only - Dec 14 11:54:25s 0:05:35 -
|
||||
Rule sol87 1987 only - Dec 15 11:54:50s 0:05:10 -
|
||||
Rule sol87 1987 only - Dec 16 11:55:20s 0:04:40 -
|
||||
Rule sol87 1987 only - Dec 17 11:55:50s 0:04:10 -
|
||||
Rule sol87 1987 only - Dec 18 11:56:20s 0:03:40 -
|
||||
Rule sol87 1987 only - Dec 19 11:56:50s 0:03:10 -
|
||||
Rule sol87 1987 only - Dec 20 11:57:20s 0:02:40 -
|
||||
Rule sol87 1987 only - Dec 21 11:57:50s 0:02:10 -
|
||||
Rule sol87 1987 only - Dec 22 11:58:20s 0:01:40 -
|
||||
Rule sol87 1987 only - Dec 23 11:58:50s 0:01:10 -
|
||||
Rule sol87 1987 only - Dec 24 11:59:20s 0:00:40 -
|
||||
Rule sol87 1987 only - Dec 25 11:59:50s 0:00:10 -
|
||||
Rule sol87 1987 only - Dec 26 12:00:20s -0:00:20 -
|
||||
Rule sol87 1987 only - Dec 27 12:00:45s -0:00:45 -
|
||||
Rule sol87 1987 only - Dec 28 12:01:15s -0:01:15 -
|
||||
Rule sol87 1987 only - Dec 29 12:01:45s -0:01:45 -
|
||||
Rule sol87 1987 only - Dec 30 12:02:15s -0:02:15 -
|
||||
Rule sol87 1987 only - Dec 31 12:02:45s -0:02:45 -
|
||||
|
||||
# Riyadh is at about 46 degrees 46 minutes East: 3 hrs, 7 mins, 4 secs
|
||||
# Before and after 1987, we'll operate on local mean solar time.
|
||||
|
||||
# Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
|
||||
Zone Asia/Riyadh87 3:07:04 - zzz 1987
|
||||
3:07:04 sol87 zzz 1988
|
||||
3:07:04 - zzz
|
||||
# For backward compatibility...
|
||||
Link Asia/Riyadh87 Mideast/Riyadh87
|
390
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/solar88
vendored
Normal file
390
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/solar88
vendored
Normal file
|
@ -0,0 +1,390 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# Apparent noon times below are for Riyadh; they're a bit off for other places.
|
||||
# Times were computed using formulas in the U.S. Naval Observatory's
|
||||
# Almanac for Computers 1988; the formulas "will give EqT to an accuracy of
|
||||
# [plus or minus two] seconds during the current year."
|
||||
#
|
||||
# Rounding to the nearest five seconds results in fewer than
|
||||
# 256 different "time types"--a limit that's faced because time types are
|
||||
# stored on disk as unsigned chars.
|
||||
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule sol88 1988 only - Jan 1 12:03:15s -0:03:15 -
|
||||
Rule sol88 1988 only - Jan 2 12:03:40s -0:03:40 -
|
||||
Rule sol88 1988 only - Jan 3 12:04:10s -0:04:10 -
|
||||
Rule sol88 1988 only - Jan 4 12:04:40s -0:04:40 -
|
||||
Rule sol88 1988 only - Jan 5 12:05:05s -0:05:05 -
|
||||
Rule sol88 1988 only - Jan 6 12:05:30s -0:05:30 -
|
||||
Rule sol88 1988 only - Jan 7 12:06:00s -0:06:00 -
|
||||
Rule sol88 1988 only - Jan 8 12:06:25s -0:06:25 -
|
||||
Rule sol88 1988 only - Jan 9 12:06:50s -0:06:50 -
|
||||
Rule sol88 1988 only - Jan 10 12:07:15s -0:07:15 -
|
||||
Rule sol88 1988 only - Jan 11 12:07:40s -0:07:40 -
|
||||
Rule sol88 1988 only - Jan 12 12:08:05s -0:08:05 -
|
||||
Rule sol88 1988 only - Jan 13 12:08:25s -0:08:25 -
|
||||
Rule sol88 1988 only - Jan 14 12:08:50s -0:08:50 -
|
||||
Rule sol88 1988 only - Jan 15 12:09:10s -0:09:10 -
|
||||
Rule sol88 1988 only - Jan 16 12:09:30s -0:09:30 -
|
||||
Rule sol88 1988 only - Jan 17 12:09:50s -0:09:50 -
|
||||
Rule sol88 1988 only - Jan 18 12:10:10s -0:10:10 -
|
||||
Rule sol88 1988 only - Jan 19 12:10:30s -0:10:30 -
|
||||
Rule sol88 1988 only - Jan 20 12:10:50s -0:10:50 -
|
||||
Rule sol88 1988 only - Jan 21 12:11:05s -0:11:05 -
|
||||
Rule sol88 1988 only - Jan 22 12:11:25s -0:11:25 -
|
||||
Rule sol88 1988 only - Jan 23 12:11:40s -0:11:40 -
|
||||
Rule sol88 1988 only - Jan 24 12:11:55s -0:11:55 -
|
||||
Rule sol88 1988 only - Jan 25 12:12:10s -0:12:10 -
|
||||
Rule sol88 1988 only - Jan 26 12:12:25s -0:12:25 -
|
||||
Rule sol88 1988 only - Jan 27 12:12:40s -0:12:40 -
|
||||
Rule sol88 1988 only - Jan 28 12:12:50s -0:12:50 -
|
||||
Rule sol88 1988 only - Jan 29 12:13:00s -0:13:00 -
|
||||
Rule sol88 1988 only - Jan 30 12:13:10s -0:13:10 -
|
||||
Rule sol88 1988 only - Jan 31 12:13:20s -0:13:20 -
|
||||
Rule sol88 1988 only - Feb 1 12:13:30s -0:13:30 -
|
||||
Rule sol88 1988 only - Feb 2 12:13:40s -0:13:40 -
|
||||
Rule sol88 1988 only - Feb 3 12:13:45s -0:13:45 -
|
||||
Rule sol88 1988 only - Feb 4 12:13:55s -0:13:55 -
|
||||
Rule sol88 1988 only - Feb 5 12:14:00s -0:14:00 -
|
||||
Rule sol88 1988 only - Feb 6 12:14:05s -0:14:05 -
|
||||
Rule sol88 1988 only - Feb 7 12:14:10s -0:14:10 -
|
||||
Rule sol88 1988 only - Feb 8 12:14:10s -0:14:10 -
|
||||
Rule sol88 1988 only - Feb 9 12:14:15s -0:14:15 -
|
||||
Rule sol88 1988 only - Feb 10 12:14:15s -0:14:15 -
|
||||
Rule sol88 1988 only - Feb 11 12:14:15s -0:14:15 -
|
||||
Rule sol88 1988 only - Feb 12 12:14:15s -0:14:15 -
|
||||
Rule sol88 1988 only - Feb 13 12:14:15s -0:14:15 -
|
||||
Rule sol88 1988 only - Feb 14 12:14:15s -0:14:15 -
|
||||
Rule sol88 1988 only - Feb 15 12:14:10s -0:14:10 -
|
||||
Rule sol88 1988 only - Feb 16 12:14:10s -0:14:10 -
|
||||
Rule sol88 1988 only - Feb 17 12:14:05s -0:14:05 -
|
||||
Rule sol88 1988 only - Feb 18 12:14:00s -0:14:00 -
|
||||
Rule sol88 1988 only - Feb 19 12:13:55s -0:13:55 -
|
||||
Rule sol88 1988 only - Feb 20 12:13:50s -0:13:50 -
|
||||
Rule sol88 1988 only - Feb 21 12:13:45s -0:13:45 -
|
||||
Rule sol88 1988 only - Feb 22 12:13:40s -0:13:40 -
|
||||
Rule sol88 1988 only - Feb 23 12:13:30s -0:13:30 -
|
||||
Rule sol88 1988 only - Feb 24 12:13:20s -0:13:20 -
|
||||
Rule sol88 1988 only - Feb 25 12:13:15s -0:13:15 -
|
||||
Rule sol88 1988 only - Feb 26 12:13:05s -0:13:05 -
|
||||
Rule sol88 1988 only - Feb 27 12:12:55s -0:12:55 -
|
||||
Rule sol88 1988 only - Feb 28 12:12:45s -0:12:45 -
|
||||
Rule sol88 1988 only - Feb 29 12:12:30s -0:12:30 -
|
||||
Rule sol88 1988 only - Mar 1 12:12:20s -0:12:20 -
|
||||
Rule sol88 1988 only - Mar 2 12:12:10s -0:12:10 -
|
||||
Rule sol88 1988 only - Mar 3 12:11:55s -0:11:55 -
|
||||
Rule sol88 1988 only - Mar 4 12:11:45s -0:11:45 -
|
||||
Rule sol88 1988 only - Mar 5 12:11:30s -0:11:30 -
|
||||
Rule sol88 1988 only - Mar 6 12:11:15s -0:11:15 -
|
||||
Rule sol88 1988 only - Mar 7 12:11:00s -0:11:00 -
|
||||
Rule sol88 1988 only - Mar 8 12:10:45s -0:10:45 -
|
||||
Rule sol88 1988 only - Mar 9 12:10:30s -0:10:30 -
|
||||
Rule sol88 1988 only - Mar 10 12:10:15s -0:10:15 -
|
||||
Rule sol88 1988 only - Mar 11 12:10:00s -0:10:00 -
|
||||
Rule sol88 1988 only - Mar 12 12:09:45s -0:09:45 -
|
||||
Rule sol88 1988 only - Mar 13 12:09:30s -0:09:30 -
|
||||
Rule sol88 1988 only - Mar 14 12:09:10s -0:09:10 -
|
||||
Rule sol88 1988 only - Mar 15 12:08:55s -0:08:55 -
|
||||
Rule sol88 1988 only - Mar 16 12:08:40s -0:08:40 -
|
||||
Rule sol88 1988 only - Mar 17 12:08:20s -0:08:20 -
|
||||
Rule sol88 1988 only - Mar 18 12:08:05s -0:08:05 -
|
||||
Rule sol88 1988 only - Mar 19 12:07:45s -0:07:45 -
|
||||
Rule sol88 1988 only - Mar 20 12:07:30s -0:07:30 -
|
||||
Rule sol88 1988 only - Mar 21 12:07:10s -0:07:10 -
|
||||
Rule sol88 1988 only - Mar 22 12:06:50s -0:06:50 -
|
||||
Rule sol88 1988 only - Mar 23 12:06:35s -0:06:35 -
|
||||
Rule sol88 1988 only - Mar 24 12:06:15s -0:06:15 -
|
||||
Rule sol88 1988 only - Mar 25 12:06:00s -0:06:00 -
|
||||
Rule sol88 1988 only - Mar 26 12:05:40s -0:05:40 -
|
||||
Rule sol88 1988 only - Mar 27 12:05:20s -0:05:20 -
|
||||
Rule sol88 1988 only - Mar 28 12:05:05s -0:05:05 -
|
||||
Rule sol88 1988 only - Mar 29 12:04:45s -0:04:45 -
|
||||
Rule sol88 1988 only - Mar 30 12:04:25s -0:04:25 -
|
||||
Rule sol88 1988 only - Mar 31 12:04:10s -0:04:10 -
|
||||
Rule sol88 1988 only - Apr 1 12:03:50s -0:03:50 -
|
||||
Rule sol88 1988 only - Apr 2 12:03:35s -0:03:35 -
|
||||
Rule sol88 1988 only - Apr 3 12:03:15s -0:03:15 -
|
||||
Rule sol88 1988 only - Apr 4 12:03:00s -0:03:00 -
|
||||
Rule sol88 1988 only - Apr 5 12:02:40s -0:02:40 -
|
||||
Rule sol88 1988 only - Apr 6 12:02:25s -0:02:25 -
|
||||
Rule sol88 1988 only - Apr 7 12:02:05s -0:02:05 -
|
||||
Rule sol88 1988 only - Apr 8 12:01:50s -0:01:50 -
|
||||
Rule sol88 1988 only - Apr 9 12:01:35s -0:01:35 -
|
||||
Rule sol88 1988 only - Apr 10 12:01:15s -0:01:15 -
|
||||
Rule sol88 1988 only - Apr 11 12:01:00s -0:01:00 -
|
||||
Rule sol88 1988 only - Apr 12 12:00:45s -0:00:45 -
|
||||
Rule sol88 1988 only - Apr 13 12:00:30s -0:00:30 -
|
||||
Rule sol88 1988 only - Apr 14 12:00:15s -0:00:15 -
|
||||
Rule sol88 1988 only - Apr 15 12:00:00s 0:00:00 -
|
||||
Rule sol88 1988 only - Apr 16 11:59:45s 0:00:15 -
|
||||
Rule sol88 1988 only - Apr 17 11:59:30s 0:00:30 -
|
||||
Rule sol88 1988 only - Apr 18 11:59:20s 0:00:40 -
|
||||
Rule sol88 1988 only - Apr 19 11:59:05s 0:00:55 -
|
||||
Rule sol88 1988 only - Apr 20 11:58:55s 0:01:05 -
|
||||
Rule sol88 1988 only - Apr 21 11:58:40s 0:01:20 -
|
||||
Rule sol88 1988 only - Apr 22 11:58:30s 0:01:30 -
|
||||
Rule sol88 1988 only - Apr 23 11:58:15s 0:01:45 -
|
||||
Rule sol88 1988 only - Apr 24 11:58:05s 0:01:55 -
|
||||
Rule sol88 1988 only - Apr 25 11:57:55s 0:02:05 -
|
||||
Rule sol88 1988 only - Apr 26 11:57:45s 0:02:15 -
|
||||
Rule sol88 1988 only - Apr 27 11:57:35s 0:02:25 -
|
||||
Rule sol88 1988 only - Apr 28 11:57:30s 0:02:30 -
|
||||
Rule sol88 1988 only - Apr 29 11:57:20s 0:02:40 -
|
||||
Rule sol88 1988 only - Apr 30 11:57:10s 0:02:50 -
|
||||
Rule sol88 1988 only - May 1 11:57:05s 0:02:55 -
|
||||
Rule sol88 1988 only - May 2 11:56:55s 0:03:05 -
|
||||
Rule sol88 1988 only - May 3 11:56:50s 0:03:10 -
|
||||
Rule sol88 1988 only - May 4 11:56:45s 0:03:15 -
|
||||
Rule sol88 1988 only - May 5 11:56:40s 0:03:20 -
|
||||
Rule sol88 1988 only - May 6 11:56:35s 0:03:25 -
|
||||
Rule sol88 1988 only - May 7 11:56:30s 0:03:30 -
|
||||
Rule sol88 1988 only - May 8 11:56:25s 0:03:35 -
|
||||
Rule sol88 1988 only - May 9 11:56:25s 0:03:35 -
|
||||
Rule sol88 1988 only - May 10 11:56:20s 0:03:40 -
|
||||
Rule sol88 1988 only - May 11 11:56:20s 0:03:40 -
|
||||
Rule sol88 1988 only - May 12 11:56:20s 0:03:40 -
|
||||
Rule sol88 1988 only - May 13 11:56:20s 0:03:40 -
|
||||
Rule sol88 1988 only - May 14 11:56:20s 0:03:40 -
|
||||
Rule sol88 1988 only - May 15 11:56:20s 0:03:40 -
|
||||
Rule sol88 1988 only - May 16 11:56:20s 0:03:40 -
|
||||
Rule sol88 1988 only - May 17 11:56:20s 0:03:40 -
|
||||
Rule sol88 1988 only - May 18 11:56:25s 0:03:35 -
|
||||
Rule sol88 1988 only - May 19 11:56:25s 0:03:35 -
|
||||
Rule sol88 1988 only - May 20 11:56:30s 0:03:30 -
|
||||
Rule sol88 1988 only - May 21 11:56:35s 0:03:25 -
|
||||
Rule sol88 1988 only - May 22 11:56:40s 0:03:20 -
|
||||
Rule sol88 1988 only - May 23 11:56:45s 0:03:15 -
|
||||
Rule sol88 1988 only - May 24 11:56:50s 0:03:10 -
|
||||
Rule sol88 1988 only - May 25 11:56:55s 0:03:05 -
|
||||
Rule sol88 1988 only - May 26 11:57:00s 0:03:00 -
|
||||
Rule sol88 1988 only - May 27 11:57:05s 0:02:55 -
|
||||
Rule sol88 1988 only - May 28 11:57:15s 0:02:45 -
|
||||
Rule sol88 1988 only - May 29 11:57:20s 0:02:40 -
|
||||
Rule sol88 1988 only - May 30 11:57:30s 0:02:30 -
|
||||
Rule sol88 1988 only - May 31 11:57:40s 0:02:20 -
|
||||
Rule sol88 1988 only - Jun 1 11:57:50s 0:02:10 -
|
||||
Rule sol88 1988 only - Jun 2 11:57:55s 0:02:05 -
|
||||
Rule sol88 1988 only - Jun 3 11:58:05s 0:01:55 -
|
||||
Rule sol88 1988 only - Jun 4 11:58:15s 0:01:45 -
|
||||
Rule sol88 1988 only - Jun 5 11:58:30s 0:01:30 -
|
||||
Rule sol88 1988 only - Jun 6 11:58:40s 0:01:20 -
|
||||
Rule sol88 1988 only - Jun 7 11:58:50s 0:01:10 -
|
||||
Rule sol88 1988 only - Jun 8 11:59:00s 0:01:00 -
|
||||
Rule sol88 1988 only - Jun 9 11:59:15s 0:00:45 -
|
||||
Rule sol88 1988 only - Jun 10 11:59:25s 0:00:35 -
|
||||
Rule sol88 1988 only - Jun 11 11:59:35s 0:00:25 -
|
||||
Rule sol88 1988 only - Jun 12 11:59:50s 0:00:10 -
|
||||
Rule sol88 1988 only - Jun 13 12:00:00s 0:00:00 -
|
||||
Rule sol88 1988 only - Jun 14 12:00:15s -0:00:15 -
|
||||
Rule sol88 1988 only - Jun 15 12:00:25s -0:00:25 -
|
||||
Rule sol88 1988 only - Jun 16 12:00:40s -0:00:40 -
|
||||
Rule sol88 1988 only - Jun 17 12:00:55s -0:00:55 -
|
||||
Rule sol88 1988 only - Jun 18 12:01:05s -0:01:05 -
|
||||
Rule sol88 1988 only - Jun 19 12:01:20s -0:01:20 -
|
||||
Rule sol88 1988 only - Jun 20 12:01:30s -0:01:30 -
|
||||
Rule sol88 1988 only - Jun 21 12:01:45s -0:01:45 -
|
||||
Rule sol88 1988 only - Jun 22 12:02:00s -0:02:00 -
|
||||
Rule sol88 1988 only - Jun 23 12:02:10s -0:02:10 -
|
||||
Rule sol88 1988 only - Jun 24 12:02:25s -0:02:25 -
|
||||
Rule sol88 1988 only - Jun 25 12:02:35s -0:02:35 -
|
||||
Rule sol88 1988 only - Jun 26 12:02:50s -0:02:50 -
|
||||
Rule sol88 1988 only - Jun 27 12:03:00s -0:03:00 -
|
||||
Rule sol88 1988 only - Jun 28 12:03:15s -0:03:15 -
|
||||
Rule sol88 1988 only - Jun 29 12:03:25s -0:03:25 -
|
||||
Rule sol88 1988 only - Jun 30 12:03:40s -0:03:40 -
|
||||
Rule sol88 1988 only - Jul 1 12:03:50s -0:03:50 -
|
||||
Rule sol88 1988 only - Jul 2 12:04:00s -0:04:00 -
|
||||
Rule sol88 1988 only - Jul 3 12:04:10s -0:04:10 -
|
||||
Rule sol88 1988 only - Jul 4 12:04:25s -0:04:25 -
|
||||
Rule sol88 1988 only - Jul 5 12:04:35s -0:04:35 -
|
||||
Rule sol88 1988 only - Jul 6 12:04:45s -0:04:45 -
|
||||
Rule sol88 1988 only - Jul 7 12:04:55s -0:04:55 -
|
||||
Rule sol88 1988 only - Jul 8 12:05:05s -0:05:05 -
|
||||
Rule sol88 1988 only - Jul 9 12:05:10s -0:05:10 -
|
||||
Rule sol88 1988 only - Jul 10 12:05:20s -0:05:20 -
|
||||
Rule sol88 1988 only - Jul 11 12:05:30s -0:05:30 -
|
||||
Rule sol88 1988 only - Jul 12 12:05:35s -0:05:35 -
|
||||
Rule sol88 1988 only - Jul 13 12:05:45s -0:05:45 -
|
||||
Rule sol88 1988 only - Jul 14 12:05:50s -0:05:50 -
|
||||
Rule sol88 1988 only - Jul 15 12:05:55s -0:05:55 -
|
||||
Rule sol88 1988 only - Jul 16 12:06:00s -0:06:00 -
|
||||
Rule sol88 1988 only - Jul 17 12:06:05s -0:06:05 -
|
||||
Rule sol88 1988 only - Jul 18 12:06:10s -0:06:10 -
|
||||
Rule sol88 1988 only - Jul 19 12:06:15s -0:06:15 -
|
||||
Rule sol88 1988 only - Jul 20 12:06:20s -0:06:20 -
|
||||
Rule sol88 1988 only - Jul 21 12:06:25s -0:06:25 -
|
||||
Rule sol88 1988 only - Jul 22 12:06:25s -0:06:25 -
|
||||
Rule sol88 1988 only - Jul 23 12:06:25s -0:06:25 -
|
||||
Rule sol88 1988 only - Jul 24 12:06:30s -0:06:30 -
|
||||
Rule sol88 1988 only - Jul 25 12:06:30s -0:06:30 -
|
||||
Rule sol88 1988 only - Jul 26 12:06:30s -0:06:30 -
|
||||
Rule sol88 1988 only - Jul 27 12:06:30s -0:06:30 -
|
||||
Rule sol88 1988 only - Jul 28 12:06:30s -0:06:30 -
|
||||
Rule sol88 1988 only - Jul 29 12:06:25s -0:06:25 -
|
||||
Rule sol88 1988 only - Jul 30 12:06:25s -0:06:25 -
|
||||
Rule sol88 1988 only - Jul 31 12:06:20s -0:06:20 -
|
||||
Rule sol88 1988 only - Aug 1 12:06:15s -0:06:15 -
|
||||
Rule sol88 1988 only - Aug 2 12:06:15s -0:06:15 -
|
||||
Rule sol88 1988 only - Aug 3 12:06:10s -0:06:10 -
|
||||
Rule sol88 1988 only - Aug 4 12:06:05s -0:06:05 -
|
||||
Rule sol88 1988 only - Aug 5 12:05:55s -0:05:55 -
|
||||
Rule sol88 1988 only - Aug 6 12:05:50s -0:05:50 -
|
||||
Rule sol88 1988 only - Aug 7 12:05:45s -0:05:45 -
|
||||
Rule sol88 1988 only - Aug 8 12:05:35s -0:05:35 -
|
||||
Rule sol88 1988 only - Aug 9 12:05:25s -0:05:25 -
|
||||
Rule sol88 1988 only - Aug 10 12:05:20s -0:05:20 -
|
||||
Rule sol88 1988 only - Aug 11 12:05:10s -0:05:10 -
|
||||
Rule sol88 1988 only - Aug 12 12:05:00s -0:05:00 -
|
||||
Rule sol88 1988 only - Aug 13 12:04:50s -0:04:50 -
|
||||
Rule sol88 1988 only - Aug 14 12:04:35s -0:04:35 -
|
||||
Rule sol88 1988 only - Aug 15 12:04:25s -0:04:25 -
|
||||
Rule sol88 1988 only - Aug 16 12:04:15s -0:04:15 -
|
||||
Rule sol88 1988 only - Aug 17 12:04:00s -0:04:00 -
|
||||
Rule sol88 1988 only - Aug 18 12:03:50s -0:03:50 -
|
||||
Rule sol88 1988 only - Aug 19 12:03:35s -0:03:35 -
|
||||
Rule sol88 1988 only - Aug 20 12:03:20s -0:03:20 -
|
||||
Rule sol88 1988 only - Aug 21 12:03:05s -0:03:05 -
|
||||
Rule sol88 1988 only - Aug 22 12:02:50s -0:02:50 -
|
||||
Rule sol88 1988 only - Aug 23 12:02:35s -0:02:35 -
|
||||
Rule sol88 1988 only - Aug 24 12:02:20s -0:02:20 -
|
||||
Rule sol88 1988 only - Aug 25 12:02:00s -0:02:00 -
|
||||
Rule sol88 1988 only - Aug 26 12:01:45s -0:01:45 -
|
||||
Rule sol88 1988 only - Aug 27 12:01:30s -0:01:30 -
|
||||
Rule sol88 1988 only - Aug 28 12:01:10s -0:01:10 -
|
||||
Rule sol88 1988 only - Aug 29 12:00:50s -0:00:50 -
|
||||
Rule sol88 1988 only - Aug 30 12:00:35s -0:00:35 -
|
||||
Rule sol88 1988 only - Aug 31 12:00:15s -0:00:15 -
|
||||
Rule sol88 1988 only - Sep 1 11:59:55s 0:00:05 -
|
||||
Rule sol88 1988 only - Sep 2 11:59:35s 0:00:25 -
|
||||
Rule sol88 1988 only - Sep 3 11:59:20s 0:00:40 -
|
||||
Rule sol88 1988 only - Sep 4 11:59:00s 0:01:00 -
|
||||
Rule sol88 1988 only - Sep 5 11:58:40s 0:01:20 -
|
||||
Rule sol88 1988 only - Sep 6 11:58:20s 0:01:40 -
|
||||
Rule sol88 1988 only - Sep 7 11:58:00s 0:02:00 -
|
||||
Rule sol88 1988 only - Sep 8 11:57:35s 0:02:25 -
|
||||
Rule sol88 1988 only - Sep 9 11:57:15s 0:02:45 -
|
||||
Rule sol88 1988 only - Sep 10 11:56:55s 0:03:05 -
|
||||
Rule sol88 1988 only - Sep 11 11:56:35s 0:03:25 -
|
||||
Rule sol88 1988 only - Sep 12 11:56:15s 0:03:45 -
|
||||
Rule sol88 1988 only - Sep 13 11:55:50s 0:04:10 -
|
||||
Rule sol88 1988 only - Sep 14 11:55:30s 0:04:30 -
|
||||
Rule sol88 1988 only - Sep 15 11:55:10s 0:04:50 -
|
||||
Rule sol88 1988 only - Sep 16 11:54:50s 0:05:10 -
|
||||
Rule sol88 1988 only - Sep 17 11:54:25s 0:05:35 -
|
||||
Rule sol88 1988 only - Sep 18 11:54:05s 0:05:55 -
|
||||
Rule sol88 1988 only - Sep 19 11:53:45s 0:06:15 -
|
||||
Rule sol88 1988 only - Sep 20 11:53:25s 0:06:35 -
|
||||
Rule sol88 1988 only - Sep 21 11:53:00s 0:07:00 -
|
||||
Rule sol88 1988 only - Sep 22 11:52:40s 0:07:20 -
|
||||
Rule sol88 1988 only - Sep 23 11:52:20s 0:07:40 -
|
||||
Rule sol88 1988 only - Sep 24 11:52:00s 0:08:00 -
|
||||
Rule sol88 1988 only - Sep 25 11:51:40s 0:08:20 -
|
||||
Rule sol88 1988 only - Sep 26 11:51:15s 0:08:45 -
|
||||
Rule sol88 1988 only - Sep 27 11:50:55s 0:09:05 -
|
||||
Rule sol88 1988 only - Sep 28 11:50:35s 0:09:25 -
|
||||
Rule sol88 1988 only - Sep 29 11:50:15s 0:09:45 -
|
||||
Rule sol88 1988 only - Sep 30 11:49:55s 0:10:05 -
|
||||
Rule sol88 1988 only - Oct 1 11:49:35s 0:10:25 -
|
||||
Rule sol88 1988 only - Oct 2 11:49:20s 0:10:40 -
|
||||
Rule sol88 1988 only - Oct 3 11:49:00s 0:11:00 -
|
||||
Rule sol88 1988 only - Oct 4 11:48:40s 0:11:20 -
|
||||
Rule sol88 1988 only - Oct 5 11:48:25s 0:11:35 -
|
||||
Rule sol88 1988 only - Oct 6 11:48:05s 0:11:55 -
|
||||
Rule sol88 1988 only - Oct 7 11:47:50s 0:12:10 -
|
||||
Rule sol88 1988 only - Oct 8 11:47:30s 0:12:30 -
|
||||
Rule sol88 1988 only - Oct 9 11:47:15s 0:12:45 -
|
||||
Rule sol88 1988 only - Oct 10 11:47:00s 0:13:00 -
|
||||
Rule sol88 1988 only - Oct 11 11:46:45s 0:13:15 -
|
||||
Rule sol88 1988 only - Oct 12 11:46:30s 0:13:30 -
|
||||
Rule sol88 1988 only - Oct 13 11:46:15s 0:13:45 -
|
||||
Rule sol88 1988 only - Oct 14 11:46:00s 0:14:00 -
|
||||
Rule sol88 1988 only - Oct 15 11:45:45s 0:14:15 -
|
||||
Rule sol88 1988 only - Oct 16 11:45:35s 0:14:25 -
|
||||
Rule sol88 1988 only - Oct 17 11:45:20s 0:14:40 -
|
||||
Rule sol88 1988 only - Oct 18 11:45:10s 0:14:50 -
|
||||
Rule sol88 1988 only - Oct 19 11:45:00s 0:15:00 -
|
||||
Rule sol88 1988 only - Oct 20 11:44:45s 0:15:15 -
|
||||
Rule sol88 1988 only - Oct 21 11:44:40s 0:15:20 -
|
||||
Rule sol88 1988 only - Oct 22 11:44:30s 0:15:30 -
|
||||
Rule sol88 1988 only - Oct 23 11:44:20s 0:15:40 -
|
||||
Rule sol88 1988 only - Oct 24 11:44:10s 0:15:50 -
|
||||
Rule sol88 1988 only - Oct 25 11:44:05s 0:15:55 -
|
||||
Rule sol88 1988 only - Oct 26 11:44:00s 0:16:00 -
|
||||
Rule sol88 1988 only - Oct 27 11:43:55s 0:16:05 -
|
||||
Rule sol88 1988 only - Oct 28 11:43:50s 0:16:10 -
|
||||
Rule sol88 1988 only - Oct 29 11:43:45s 0:16:15 -
|
||||
Rule sol88 1988 only - Oct 30 11:43:40s 0:16:20 -
|
||||
Rule sol88 1988 only - Oct 31 11:43:40s 0:16:20 -
|
||||
Rule sol88 1988 only - Nov 1 11:43:35s 0:16:25 -
|
||||
Rule sol88 1988 only - Nov 2 11:43:35s 0:16:25 -
|
||||
Rule sol88 1988 only - Nov 3 11:43:35s 0:16:25 -
|
||||
Rule sol88 1988 only - Nov 4 11:43:35s 0:16:25 -
|
||||
Rule sol88 1988 only - Nov 5 11:43:40s 0:16:20 -
|
||||
Rule sol88 1988 only - Nov 6 11:43:40s 0:16:20 -
|
||||
Rule sol88 1988 only - Nov 7 11:43:45s 0:16:15 -
|
||||
Rule sol88 1988 only - Nov 8 11:43:45s 0:16:15 -
|
||||
Rule sol88 1988 only - Nov 9 11:43:50s 0:16:10 -
|
||||
Rule sol88 1988 only - Nov 10 11:44:00s 0:16:00 -
|
||||
Rule sol88 1988 only - Nov 11 11:44:05s 0:15:55 -
|
||||
Rule sol88 1988 only - Nov 12 11:44:10s 0:15:50 -
|
||||
Rule sol88 1988 only - Nov 13 11:44:20s 0:15:40 -
|
||||
Rule sol88 1988 only - Nov 14 11:44:30s 0:15:30 -
|
||||
Rule sol88 1988 only - Nov 15 11:44:40s 0:15:20 -
|
||||
Rule sol88 1988 only - Nov 16 11:44:50s 0:15:10 -
|
||||
Rule sol88 1988 only - Nov 17 11:45:00s 0:15:00 -
|
||||
Rule sol88 1988 only - Nov 18 11:45:15s 0:14:45 -
|
||||
Rule sol88 1988 only - Nov 19 11:45:25s 0:14:35 -
|
||||
Rule sol88 1988 only - Nov 20 11:45:40s 0:14:20 -
|
||||
Rule sol88 1988 only - Nov 21 11:45:55s 0:14:05 -
|
||||
Rule sol88 1988 only - Nov 22 11:46:10s 0:13:50 -
|
||||
Rule sol88 1988 only - Nov 23 11:46:30s 0:13:30 -
|
||||
Rule sol88 1988 only - Nov 24 11:46:45s 0:13:15 -
|
||||
Rule sol88 1988 only - Nov 25 11:47:05s 0:12:55 -
|
||||
Rule sol88 1988 only - Nov 26 11:47:20s 0:12:40 -
|
||||
Rule sol88 1988 only - Nov 27 11:47:40s 0:12:20 -
|
||||
Rule sol88 1988 only - Nov 28 11:48:00s 0:12:00 -
|
||||
Rule sol88 1988 only - Nov 29 11:48:25s 0:11:35 -
|
||||
Rule sol88 1988 only - Nov 30 11:48:45s 0:11:15 -
|
||||
Rule sol88 1988 only - Dec 1 11:49:05s 0:10:55 -
|
||||
Rule sol88 1988 only - Dec 2 11:49:30s 0:10:30 -
|
||||
Rule sol88 1988 only - Dec 3 11:49:55s 0:10:05 -
|
||||
Rule sol88 1988 only - Dec 4 11:50:15s 0:09:45 -
|
||||
Rule sol88 1988 only - Dec 5 11:50:40s 0:09:20 -
|
||||
Rule sol88 1988 only - Dec 6 11:51:05s 0:08:55 -
|
||||
Rule sol88 1988 only - Dec 7 11:51:35s 0:08:25 -
|
||||
Rule sol88 1988 only - Dec 8 11:52:00s 0:08:00 -
|
||||
Rule sol88 1988 only - Dec 9 11:52:25s 0:07:35 -
|
||||
Rule sol88 1988 only - Dec 10 11:52:55s 0:07:05 -
|
||||
Rule sol88 1988 only - Dec 11 11:53:20s 0:06:40 -
|
||||
Rule sol88 1988 only - Dec 12 11:53:50s 0:06:10 -
|
||||
Rule sol88 1988 only - Dec 13 11:54:15s 0:05:45 -
|
||||
Rule sol88 1988 only - Dec 14 11:54:45s 0:05:15 -
|
||||
Rule sol88 1988 only - Dec 15 11:55:15s 0:04:45 -
|
||||
Rule sol88 1988 only - Dec 16 11:55:45s 0:04:15 -
|
||||
Rule sol88 1988 only - Dec 17 11:56:15s 0:03:45 -
|
||||
Rule sol88 1988 only - Dec 18 11:56:40s 0:03:20 -
|
||||
Rule sol88 1988 only - Dec 19 11:57:10s 0:02:50 -
|
||||
Rule sol88 1988 only - Dec 20 11:57:40s 0:02:20 -
|
||||
Rule sol88 1988 only - Dec 21 11:58:10s 0:01:50 -
|
||||
Rule sol88 1988 only - Dec 22 11:58:40s 0:01:20 -
|
||||
Rule sol88 1988 only - Dec 23 11:59:10s 0:00:50 -
|
||||
Rule sol88 1988 only - Dec 24 11:59:40s 0:00:20 -
|
||||
Rule sol88 1988 only - Dec 25 12:00:10s -0:00:10 -
|
||||
Rule sol88 1988 only - Dec 26 12:00:40s -0:00:40 -
|
||||
Rule sol88 1988 only - Dec 27 12:01:10s -0:01:10 -
|
||||
Rule sol88 1988 only - Dec 28 12:01:40s -0:01:40 -
|
||||
Rule sol88 1988 only - Dec 29 12:02:10s -0:02:10 -
|
||||
Rule sol88 1988 only - Dec 30 12:02:35s -0:02:35 -
|
||||
Rule sol88 1988 only - Dec 31 12:03:05s -0:03:05 -
|
||||
|
||||
# Riyadh is at about 46 degrees 46 minutes East: 3 hrs, 7 mins, 4 secs
|
||||
# Before and after 1988, we'll operate on local mean solar time.
|
||||
|
||||
# Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
|
||||
Zone Asia/Riyadh88 3:07:04 - zzz 1988
|
||||
3:07:04 sol88 zzz 1989
|
||||
3:07:04 - zzz
|
||||
# For backward compatibility...
|
||||
Link Asia/Riyadh88 Mideast/Riyadh88
|
395
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/solar89
vendored
Normal file
395
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/solar89
vendored
Normal file
|
@ -0,0 +1,395 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# Apparent noon times below are for Riyadh; they're a bit off for other places.
|
||||
# Times were computed using a formula provided by the U. S. Naval Observatory:
|
||||
# eqt = -105.8 * sin(l) + 596.2 * sin(2 * l) + 4.4 * sin(3 * l)
|
||||
# -12.7 * sin(4 * l) - 429.0 * cos(l) - 2.1 * cos (2 * l)
|
||||
# + 19.3 * cos(3 * l);
|
||||
# where l is the "mean longitude of the Sun" given by
|
||||
# l = 279.642 degrees + 0.985647 * d
|
||||
# and d is the interval in days from January 0, 0 hours Universal Time
|
||||
# (equaling the day of the year plus the fraction of a day from zero hours).
|
||||
# The accuracy of the formula is plus or minus three seconds.
|
||||
#
|
||||
# Rounding to the nearest five seconds results in fewer than
|
||||
# 256 different "time types"--a limit that's faced because time types are
|
||||
# stored on disk as unsigned chars.
|
||||
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule sol89 1989 only - Jan 1 12:03:35s -0:03:35 -
|
||||
Rule sol89 1989 only - Jan 2 12:04:05s -0:04:05 -
|
||||
Rule sol89 1989 only - Jan 3 12:04:30s -0:04:30 -
|
||||
Rule sol89 1989 only - Jan 4 12:05:00s -0:05:00 -
|
||||
Rule sol89 1989 only - Jan 5 12:05:25s -0:05:25 -
|
||||
Rule sol89 1989 only - Jan 6 12:05:50s -0:05:50 -
|
||||
Rule sol89 1989 only - Jan 7 12:06:15s -0:06:15 -
|
||||
Rule sol89 1989 only - Jan 8 12:06:45s -0:06:45 -
|
||||
Rule sol89 1989 only - Jan 9 12:07:10s -0:07:10 -
|
||||
Rule sol89 1989 only - Jan 10 12:07:35s -0:07:35 -
|
||||
Rule sol89 1989 only - Jan 11 12:07:55s -0:07:55 -
|
||||
Rule sol89 1989 only - Jan 12 12:08:20s -0:08:20 -
|
||||
Rule sol89 1989 only - Jan 13 12:08:45s -0:08:45 -
|
||||
Rule sol89 1989 only - Jan 14 12:09:05s -0:09:05 -
|
||||
Rule sol89 1989 only - Jan 15 12:09:25s -0:09:25 -
|
||||
Rule sol89 1989 only - Jan 16 12:09:45s -0:09:45 -
|
||||
Rule sol89 1989 only - Jan 17 12:10:05s -0:10:05 -
|
||||
Rule sol89 1989 only - Jan 18 12:10:25s -0:10:25 -
|
||||
Rule sol89 1989 only - Jan 19 12:10:45s -0:10:45 -
|
||||
Rule sol89 1989 only - Jan 20 12:11:05s -0:11:05 -
|
||||
Rule sol89 1989 only - Jan 21 12:11:20s -0:11:20 -
|
||||
Rule sol89 1989 only - Jan 22 12:11:35s -0:11:35 -
|
||||
Rule sol89 1989 only - Jan 23 12:11:55s -0:11:55 -
|
||||
Rule sol89 1989 only - Jan 24 12:12:10s -0:12:10 -
|
||||
Rule sol89 1989 only - Jan 25 12:12:20s -0:12:20 -
|
||||
Rule sol89 1989 only - Jan 26 12:12:35s -0:12:35 -
|
||||
Rule sol89 1989 only - Jan 27 12:12:50s -0:12:50 -
|
||||
Rule sol89 1989 only - Jan 28 12:13:00s -0:13:00 -
|
||||
Rule sol89 1989 only - Jan 29 12:13:10s -0:13:10 -
|
||||
Rule sol89 1989 only - Jan 30 12:13:20s -0:13:20 -
|
||||
Rule sol89 1989 only - Jan 31 12:13:30s -0:13:30 -
|
||||
Rule sol89 1989 only - Feb 1 12:13:40s -0:13:40 -
|
||||
Rule sol89 1989 only - Feb 2 12:13:45s -0:13:45 -
|
||||
Rule sol89 1989 only - Feb 3 12:13:55s -0:13:55 -
|
||||
Rule sol89 1989 only - Feb 4 12:14:00s -0:14:00 -
|
||||
Rule sol89 1989 only - Feb 5 12:14:05s -0:14:05 -
|
||||
Rule sol89 1989 only - Feb 6 12:14:10s -0:14:10 -
|
||||
Rule sol89 1989 only - Feb 7 12:14:10s -0:14:10 -
|
||||
Rule sol89 1989 only - Feb 8 12:14:15s -0:14:15 -
|
||||
Rule sol89 1989 only - Feb 9 12:14:15s -0:14:15 -
|
||||
Rule sol89 1989 only - Feb 10 12:14:20s -0:14:20 -
|
||||
Rule sol89 1989 only - Feb 11 12:14:20s -0:14:20 -
|
||||
Rule sol89 1989 only - Feb 12 12:14:20s -0:14:20 -
|
||||
Rule sol89 1989 only - Feb 13 12:14:15s -0:14:15 -
|
||||
Rule sol89 1989 only - Feb 14 12:14:15s -0:14:15 -
|
||||
Rule sol89 1989 only - Feb 15 12:14:10s -0:14:10 -
|
||||
Rule sol89 1989 only - Feb 16 12:14:10s -0:14:10 -
|
||||
Rule sol89 1989 only - Feb 17 12:14:05s -0:14:05 -
|
||||
Rule sol89 1989 only - Feb 18 12:14:00s -0:14:00 -
|
||||
Rule sol89 1989 only - Feb 19 12:13:55s -0:13:55 -
|
||||
Rule sol89 1989 only - Feb 20 12:13:50s -0:13:50 -
|
||||
Rule sol89 1989 only - Feb 21 12:13:40s -0:13:40 -
|
||||
Rule sol89 1989 only - Feb 22 12:13:35s -0:13:35 -
|
||||
Rule sol89 1989 only - Feb 23 12:13:25s -0:13:25 -
|
||||
Rule sol89 1989 only - Feb 24 12:13:15s -0:13:15 -
|
||||
Rule sol89 1989 only - Feb 25 12:13:05s -0:13:05 -
|
||||
Rule sol89 1989 only - Feb 26 12:12:55s -0:12:55 -
|
||||
Rule sol89 1989 only - Feb 27 12:12:45s -0:12:45 -
|
||||
Rule sol89 1989 only - Feb 28 12:12:35s -0:12:35 -
|
||||
Rule sol89 1989 only - Mar 1 12:12:25s -0:12:25 -
|
||||
Rule sol89 1989 only - Mar 2 12:12:10s -0:12:10 -
|
||||
Rule sol89 1989 only - Mar 3 12:12:00s -0:12:00 -
|
||||
Rule sol89 1989 only - Mar 4 12:11:45s -0:11:45 -
|
||||
Rule sol89 1989 only - Mar 5 12:11:35s -0:11:35 -
|
||||
Rule sol89 1989 only - Mar 6 12:11:20s -0:11:20 -
|
||||
Rule sol89 1989 only - Mar 7 12:11:05s -0:11:05 -
|
||||
Rule sol89 1989 only - Mar 8 12:10:50s -0:10:50 -
|
||||
Rule sol89 1989 only - Mar 9 12:10:35s -0:10:35 -
|
||||
Rule sol89 1989 only - Mar 10 12:10:20s -0:10:20 -
|
||||
Rule sol89 1989 only - Mar 11 12:10:05s -0:10:05 -
|
||||
Rule sol89 1989 only - Mar 12 12:09:50s -0:09:50 -
|
||||
Rule sol89 1989 only - Mar 13 12:09:30s -0:09:30 -
|
||||
Rule sol89 1989 only - Mar 14 12:09:15s -0:09:15 -
|
||||
Rule sol89 1989 only - Mar 15 12:09:00s -0:09:00 -
|
||||
Rule sol89 1989 only - Mar 16 12:08:40s -0:08:40 -
|
||||
Rule sol89 1989 only - Mar 17 12:08:25s -0:08:25 -
|
||||
Rule sol89 1989 only - Mar 18 12:08:05s -0:08:05 -
|
||||
Rule sol89 1989 only - Mar 19 12:07:50s -0:07:50 -
|
||||
Rule sol89 1989 only - Mar 20 12:07:30s -0:07:30 -
|
||||
Rule sol89 1989 only - Mar 21 12:07:15s -0:07:15 -
|
||||
Rule sol89 1989 only - Mar 22 12:06:55s -0:06:55 -
|
||||
Rule sol89 1989 only - Mar 23 12:06:35s -0:06:35 -
|
||||
Rule sol89 1989 only - Mar 24 12:06:20s -0:06:20 -
|
||||
Rule sol89 1989 only - Mar 25 12:06:00s -0:06:00 -
|
||||
Rule sol89 1989 only - Mar 26 12:05:40s -0:05:40 -
|
||||
Rule sol89 1989 only - Mar 27 12:05:25s -0:05:25 -
|
||||
Rule sol89 1989 only - Mar 28 12:05:05s -0:05:05 -
|
||||
Rule sol89 1989 only - Mar 29 12:04:50s -0:04:50 -
|
||||
Rule sol89 1989 only - Mar 30 12:04:30s -0:04:30 -
|
||||
Rule sol89 1989 only - Mar 31 12:04:10s -0:04:10 -
|
||||
Rule sol89 1989 only - Apr 1 12:03:55s -0:03:55 -
|
||||
Rule sol89 1989 only - Apr 2 12:03:35s -0:03:35 -
|
||||
Rule sol89 1989 only - Apr 3 12:03:20s -0:03:20 -
|
||||
Rule sol89 1989 only - Apr 4 12:03:00s -0:03:00 -
|
||||
Rule sol89 1989 only - Apr 5 12:02:45s -0:02:45 -
|
||||
Rule sol89 1989 only - Apr 6 12:02:25s -0:02:25 -
|
||||
Rule sol89 1989 only - Apr 7 12:02:10s -0:02:10 -
|
||||
Rule sol89 1989 only - Apr 8 12:01:50s -0:01:50 -
|
||||
Rule sol89 1989 only - Apr 9 12:01:35s -0:01:35 -
|
||||
Rule sol89 1989 only - Apr 10 12:01:20s -0:01:20 -
|
||||
Rule sol89 1989 only - Apr 11 12:01:05s -0:01:05 -
|
||||
Rule sol89 1989 only - Apr 12 12:00:50s -0:00:50 -
|
||||
Rule sol89 1989 only - Apr 13 12:00:35s -0:00:35 -
|
||||
Rule sol89 1989 only - Apr 14 12:00:20s -0:00:20 -
|
||||
Rule sol89 1989 only - Apr 15 12:00:05s -0:00:05 -
|
||||
Rule sol89 1989 only - Apr 16 11:59:50s 0:00:10 -
|
||||
Rule sol89 1989 only - Apr 17 11:59:35s 0:00:25 -
|
||||
Rule sol89 1989 only - Apr 18 11:59:20s 0:00:40 -
|
||||
Rule sol89 1989 only - Apr 19 11:59:10s 0:00:50 -
|
||||
Rule sol89 1989 only - Apr 20 11:58:55s 0:01:05 -
|
||||
Rule sol89 1989 only - Apr 21 11:58:45s 0:01:15 -
|
||||
Rule sol89 1989 only - Apr 22 11:58:30s 0:01:30 -
|
||||
Rule sol89 1989 only - Apr 23 11:58:20s 0:01:40 -
|
||||
Rule sol89 1989 only - Apr 24 11:58:10s 0:01:50 -
|
||||
Rule sol89 1989 only - Apr 25 11:58:00s 0:02:00 -
|
||||
Rule sol89 1989 only - Apr 26 11:57:50s 0:02:10 -
|
||||
Rule sol89 1989 only - Apr 27 11:57:40s 0:02:20 -
|
||||
Rule sol89 1989 only - Apr 28 11:57:30s 0:02:30 -
|
||||
Rule sol89 1989 only - Apr 29 11:57:20s 0:02:40 -
|
||||
Rule sol89 1989 only - Apr 30 11:57:15s 0:02:45 -
|
||||
Rule sol89 1989 only - May 1 11:57:05s 0:02:55 -
|
||||
Rule sol89 1989 only - May 2 11:57:00s 0:03:00 -
|
||||
Rule sol89 1989 only - May 3 11:56:50s 0:03:10 -
|
||||
Rule sol89 1989 only - May 4 11:56:45s 0:03:15 -
|
||||
Rule sol89 1989 only - May 5 11:56:40s 0:03:20 -
|
||||
Rule sol89 1989 only - May 6 11:56:35s 0:03:25 -
|
||||
Rule sol89 1989 only - May 7 11:56:30s 0:03:30 -
|
||||
Rule sol89 1989 only - May 8 11:56:30s 0:03:30 -
|
||||
Rule sol89 1989 only - May 9 11:56:25s 0:03:35 -
|
||||
Rule sol89 1989 only - May 10 11:56:25s 0:03:35 -
|
||||
Rule sol89 1989 only - May 11 11:56:20s 0:03:40 -
|
||||
Rule sol89 1989 only - May 12 11:56:20s 0:03:40 -
|
||||
Rule sol89 1989 only - May 13 11:56:20s 0:03:40 -
|
||||
Rule sol89 1989 only - May 14 11:56:20s 0:03:40 -
|
||||
Rule sol89 1989 only - May 15 11:56:20s 0:03:40 -
|
||||
Rule sol89 1989 only - May 16 11:56:20s 0:03:40 -
|
||||
Rule sol89 1989 only - May 17 11:56:20s 0:03:40 -
|
||||
Rule sol89 1989 only - May 18 11:56:25s 0:03:35 -
|
||||
Rule sol89 1989 only - May 19 11:56:25s 0:03:35 -
|
||||
Rule sol89 1989 only - May 20 11:56:30s 0:03:30 -
|
||||
Rule sol89 1989 only - May 21 11:56:35s 0:03:25 -
|
||||
Rule sol89 1989 only - May 22 11:56:35s 0:03:25 -
|
||||
Rule sol89 1989 only - May 23 11:56:40s 0:03:20 -
|
||||
Rule sol89 1989 only - May 24 11:56:45s 0:03:15 -
|
||||
Rule sol89 1989 only - May 25 11:56:55s 0:03:05 -
|
||||
Rule sol89 1989 only - May 26 11:57:00s 0:03:00 -
|
||||
Rule sol89 1989 only - May 27 11:57:05s 0:02:55 -
|
||||
Rule sol89 1989 only - May 28 11:57:15s 0:02:45 -
|
||||
Rule sol89 1989 only - May 29 11:57:20s 0:02:40 -
|
||||
Rule sol89 1989 only - May 30 11:57:30s 0:02:30 -
|
||||
Rule sol89 1989 only - May 31 11:57:35s 0:02:25 -
|
||||
Rule sol89 1989 only - Jun 1 11:57:45s 0:02:15 -
|
||||
Rule sol89 1989 only - Jun 2 11:57:55s 0:02:05 -
|
||||
Rule sol89 1989 only - Jun 3 11:58:05s 0:01:55 -
|
||||
Rule sol89 1989 only - Jun 4 11:58:15s 0:01:45 -
|
||||
Rule sol89 1989 only - Jun 5 11:58:25s 0:01:35 -
|
||||
Rule sol89 1989 only - Jun 6 11:58:35s 0:01:25 -
|
||||
Rule sol89 1989 only - Jun 7 11:58:45s 0:01:15 -
|
||||
Rule sol89 1989 only - Jun 8 11:59:00s 0:01:00 -
|
||||
Rule sol89 1989 only - Jun 9 11:59:10s 0:00:50 -
|
||||
Rule sol89 1989 only - Jun 10 11:59:20s 0:00:40 -
|
||||
Rule sol89 1989 only - Jun 11 11:59:35s 0:00:25 -
|
||||
Rule sol89 1989 only - Jun 12 11:59:45s 0:00:15 -
|
||||
Rule sol89 1989 only - Jun 13 12:00:00s 0:00:00 -
|
||||
Rule sol89 1989 only - Jun 14 12:00:10s -0:00:10 -
|
||||
Rule sol89 1989 only - Jun 15 12:00:25s -0:00:25 -
|
||||
Rule sol89 1989 only - Jun 16 12:00:35s -0:00:35 -
|
||||
Rule sol89 1989 only - Jun 17 12:00:50s -0:00:50 -
|
||||
Rule sol89 1989 only - Jun 18 12:01:05s -0:01:05 -
|
||||
Rule sol89 1989 only - Jun 19 12:01:15s -0:01:15 -
|
||||
Rule sol89 1989 only - Jun 20 12:01:30s -0:01:30 -
|
||||
Rule sol89 1989 only - Jun 21 12:01:40s -0:01:40 -
|
||||
Rule sol89 1989 only - Jun 22 12:01:55s -0:01:55 -
|
||||
Rule sol89 1989 only - Jun 23 12:02:10s -0:02:10 -
|
||||
Rule sol89 1989 only - Jun 24 12:02:20s -0:02:20 -
|
||||
Rule sol89 1989 only - Jun 25 12:02:35s -0:02:35 -
|
||||
Rule sol89 1989 only - Jun 26 12:02:45s -0:02:45 -
|
||||
Rule sol89 1989 only - Jun 27 12:03:00s -0:03:00 -
|
||||
Rule sol89 1989 only - Jun 28 12:03:10s -0:03:10 -
|
||||
Rule sol89 1989 only - Jun 29 12:03:25s -0:03:25 -
|
||||
Rule sol89 1989 only - Jun 30 12:03:35s -0:03:35 -
|
||||
Rule sol89 1989 only - Jul 1 12:03:45s -0:03:45 -
|
||||
Rule sol89 1989 only - Jul 2 12:04:00s -0:04:00 -
|
||||
Rule sol89 1989 only - Jul 3 12:04:10s -0:04:10 -
|
||||
Rule sol89 1989 only - Jul 4 12:04:20s -0:04:20 -
|
||||
Rule sol89 1989 only - Jul 5 12:04:30s -0:04:30 -
|
||||
Rule sol89 1989 only - Jul 6 12:04:40s -0:04:40 -
|
||||
Rule sol89 1989 only - Jul 7 12:04:50s -0:04:50 -
|
||||
Rule sol89 1989 only - Jul 8 12:05:00s -0:05:00 -
|
||||
Rule sol89 1989 only - Jul 9 12:05:10s -0:05:10 -
|
||||
Rule sol89 1989 only - Jul 10 12:05:20s -0:05:20 -
|
||||
Rule sol89 1989 only - Jul 11 12:05:25s -0:05:25 -
|
||||
Rule sol89 1989 only - Jul 12 12:05:35s -0:05:35 -
|
||||
Rule sol89 1989 only - Jul 13 12:05:40s -0:05:40 -
|
||||
Rule sol89 1989 only - Jul 14 12:05:50s -0:05:50 -
|
||||
Rule sol89 1989 only - Jul 15 12:05:55s -0:05:55 -
|
||||
Rule sol89 1989 only - Jul 16 12:06:00s -0:06:00 -
|
||||
Rule sol89 1989 only - Jul 17 12:06:05s -0:06:05 -
|
||||
Rule sol89 1989 only - Jul 18 12:06:10s -0:06:10 -
|
||||
Rule sol89 1989 only - Jul 19 12:06:15s -0:06:15 -
|
||||
Rule sol89 1989 only - Jul 20 12:06:20s -0:06:20 -
|
||||
Rule sol89 1989 only - Jul 21 12:06:20s -0:06:20 -
|
||||
Rule sol89 1989 only - Jul 22 12:06:25s -0:06:25 -
|
||||
Rule sol89 1989 only - Jul 23 12:06:25s -0:06:25 -
|
||||
Rule sol89 1989 only - Jul 24 12:06:30s -0:06:30 -
|
||||
Rule sol89 1989 only - Jul 25 12:06:30s -0:06:30 -
|
||||
Rule sol89 1989 only - Jul 26 12:06:30s -0:06:30 -
|
||||
Rule sol89 1989 only - Jul 27 12:06:30s -0:06:30 -
|
||||
Rule sol89 1989 only - Jul 28 12:06:30s -0:06:30 -
|
||||
Rule sol89 1989 only - Jul 29 12:06:25s -0:06:25 -
|
||||
Rule sol89 1989 only - Jul 30 12:06:25s -0:06:25 -
|
||||
Rule sol89 1989 only - Jul 31 12:06:20s -0:06:20 -
|
||||
Rule sol89 1989 only - Aug 1 12:06:20s -0:06:20 -
|
||||
Rule sol89 1989 only - Aug 2 12:06:15s -0:06:15 -
|
||||
Rule sol89 1989 only - Aug 3 12:06:10s -0:06:10 -
|
||||
Rule sol89 1989 only - Aug 4 12:06:05s -0:06:05 -
|
||||
Rule sol89 1989 only - Aug 5 12:06:00s -0:06:00 -
|
||||
Rule sol89 1989 only - Aug 6 12:05:50s -0:05:50 -
|
||||
Rule sol89 1989 only - Aug 7 12:05:45s -0:05:45 -
|
||||
Rule sol89 1989 only - Aug 8 12:05:35s -0:05:35 -
|
||||
Rule sol89 1989 only - Aug 9 12:05:30s -0:05:30 -
|
||||
Rule sol89 1989 only - Aug 10 12:05:20s -0:05:20 -
|
||||
Rule sol89 1989 only - Aug 11 12:05:10s -0:05:10 -
|
||||
Rule sol89 1989 only - Aug 12 12:05:00s -0:05:00 -
|
||||
Rule sol89 1989 only - Aug 13 12:04:50s -0:04:50 -
|
||||
Rule sol89 1989 only - Aug 14 12:04:40s -0:04:40 -
|
||||
Rule sol89 1989 only - Aug 15 12:04:30s -0:04:30 -
|
||||
Rule sol89 1989 only - Aug 16 12:04:15s -0:04:15 -
|
||||
Rule sol89 1989 only - Aug 17 12:04:05s -0:04:05 -
|
||||
Rule sol89 1989 only - Aug 18 12:03:50s -0:03:50 -
|
||||
Rule sol89 1989 only - Aug 19 12:03:35s -0:03:35 -
|
||||
Rule sol89 1989 only - Aug 20 12:03:25s -0:03:25 -
|
||||
Rule sol89 1989 only - Aug 21 12:03:10s -0:03:10 -
|
||||
Rule sol89 1989 only - Aug 22 12:02:55s -0:02:55 -
|
||||
Rule sol89 1989 only - Aug 23 12:02:40s -0:02:40 -
|
||||
Rule sol89 1989 only - Aug 24 12:02:20s -0:02:20 -
|
||||
Rule sol89 1989 only - Aug 25 12:02:05s -0:02:05 -
|
||||
Rule sol89 1989 only - Aug 26 12:01:50s -0:01:50 -
|
||||
Rule sol89 1989 only - Aug 27 12:01:30s -0:01:30 -
|
||||
Rule sol89 1989 only - Aug 28 12:01:15s -0:01:15 -
|
||||
Rule sol89 1989 only - Aug 29 12:00:55s -0:00:55 -
|
||||
Rule sol89 1989 only - Aug 30 12:00:40s -0:00:40 -
|
||||
Rule sol89 1989 only - Aug 31 12:00:20s -0:00:20 -
|
||||
Rule sol89 1989 only - Sep 1 12:00:00s 0:00:00 -
|
||||
Rule sol89 1989 only - Sep 2 11:59:45s 0:00:15 -
|
||||
Rule sol89 1989 only - Sep 3 11:59:25s 0:00:35 -
|
||||
Rule sol89 1989 only - Sep 4 11:59:05s 0:00:55 -
|
||||
Rule sol89 1989 only - Sep 5 11:58:45s 0:01:15 -
|
||||
Rule sol89 1989 only - Sep 6 11:58:25s 0:01:35 -
|
||||
Rule sol89 1989 only - Sep 7 11:58:05s 0:01:55 -
|
||||
Rule sol89 1989 only - Sep 8 11:57:45s 0:02:15 -
|
||||
Rule sol89 1989 only - Sep 9 11:57:20s 0:02:40 -
|
||||
Rule sol89 1989 only - Sep 10 11:57:00s 0:03:00 -
|
||||
Rule sol89 1989 only - Sep 11 11:56:40s 0:03:20 -
|
||||
Rule sol89 1989 only - Sep 12 11:56:20s 0:03:40 -
|
||||
Rule sol89 1989 only - Sep 13 11:56:00s 0:04:00 -
|
||||
Rule sol89 1989 only - Sep 14 11:55:35s 0:04:25 -
|
||||
Rule sol89 1989 only - Sep 15 11:55:15s 0:04:45 -
|
||||
Rule sol89 1989 only - Sep 16 11:54:55s 0:05:05 -
|
||||
Rule sol89 1989 only - Sep 17 11:54:35s 0:05:25 -
|
||||
Rule sol89 1989 only - Sep 18 11:54:10s 0:05:50 -
|
||||
Rule sol89 1989 only - Sep 19 11:53:50s 0:06:10 -
|
||||
Rule sol89 1989 only - Sep 20 11:53:30s 0:06:30 -
|
||||
Rule sol89 1989 only - Sep 21 11:53:10s 0:06:50 -
|
||||
Rule sol89 1989 only - Sep 22 11:52:45s 0:07:15 -
|
||||
Rule sol89 1989 only - Sep 23 11:52:25s 0:07:35 -
|
||||
Rule sol89 1989 only - Sep 24 11:52:05s 0:07:55 -
|
||||
Rule sol89 1989 only - Sep 25 11:51:45s 0:08:15 -
|
||||
Rule sol89 1989 only - Sep 26 11:51:25s 0:08:35 -
|
||||
Rule sol89 1989 only - Sep 27 11:51:05s 0:08:55 -
|
||||
Rule sol89 1989 only - Sep 28 11:50:40s 0:09:20 -
|
||||
Rule sol89 1989 only - Sep 29 11:50:20s 0:09:40 -
|
||||
Rule sol89 1989 only - Sep 30 11:50:00s 0:10:00 -
|
||||
Rule sol89 1989 only - Oct 1 11:49:45s 0:10:15 -
|
||||
Rule sol89 1989 only - Oct 2 11:49:25s 0:10:35 -
|
||||
Rule sol89 1989 only - Oct 3 11:49:05s 0:10:55 -
|
||||
Rule sol89 1989 only - Oct 4 11:48:45s 0:11:15 -
|
||||
Rule sol89 1989 only - Oct 5 11:48:30s 0:11:30 -
|
||||
Rule sol89 1989 only - Oct 6 11:48:10s 0:11:50 -
|
||||
Rule sol89 1989 only - Oct 7 11:47:50s 0:12:10 -
|
||||
Rule sol89 1989 only - Oct 8 11:47:35s 0:12:25 -
|
||||
Rule sol89 1989 only - Oct 9 11:47:20s 0:12:40 -
|
||||
Rule sol89 1989 only - Oct 10 11:47:00s 0:13:00 -
|
||||
Rule sol89 1989 only - Oct 11 11:46:45s 0:13:15 -
|
||||
Rule sol89 1989 only - Oct 12 11:46:30s 0:13:30 -
|
||||
Rule sol89 1989 only - Oct 13 11:46:15s 0:13:45 -
|
||||
Rule sol89 1989 only - Oct 14 11:46:00s 0:14:00 -
|
||||
Rule sol89 1989 only - Oct 15 11:45:50s 0:14:10 -
|
||||
Rule sol89 1989 only - Oct 16 11:45:35s 0:14:25 -
|
||||
Rule sol89 1989 only - Oct 17 11:45:20s 0:14:40 -
|
||||
Rule sol89 1989 only - Oct 18 11:45:10s 0:14:50 -
|
||||
Rule sol89 1989 only - Oct 19 11:45:00s 0:15:00 -
|
||||
Rule sol89 1989 only - Oct 20 11:44:50s 0:15:10 -
|
||||
Rule sol89 1989 only - Oct 21 11:44:40s 0:15:20 -
|
||||
Rule sol89 1989 only - Oct 22 11:44:30s 0:15:30 -
|
||||
Rule sol89 1989 only - Oct 23 11:44:20s 0:15:40 -
|
||||
Rule sol89 1989 only - Oct 24 11:44:10s 0:15:50 -
|
||||
Rule sol89 1989 only - Oct 25 11:44:05s 0:15:55 -
|
||||
Rule sol89 1989 only - Oct 26 11:44:00s 0:16:00 -
|
||||
Rule sol89 1989 only - Oct 27 11:43:50s 0:16:10 -
|
||||
Rule sol89 1989 only - Oct 28 11:43:45s 0:16:15 -
|
||||
Rule sol89 1989 only - Oct 29 11:43:40s 0:16:20 -
|
||||
Rule sol89 1989 only - Oct 30 11:43:40s 0:16:20 -
|
||||
Rule sol89 1989 only - Oct 31 11:43:35s 0:16:25 -
|
||||
Rule sol89 1989 only - Nov 1 11:43:35s 0:16:25 -
|
||||
Rule sol89 1989 only - Nov 2 11:43:35s 0:16:25 -
|
||||
Rule sol89 1989 only - Nov 3 11:43:30s 0:16:30 -
|
||||
Rule sol89 1989 only - Nov 4 11:43:35s 0:16:25 -
|
||||
Rule sol89 1989 only - Nov 5 11:43:35s 0:16:25 -
|
||||
Rule sol89 1989 only - Nov 6 11:43:35s 0:16:25 -
|
||||
Rule sol89 1989 only - Nov 7 11:43:40s 0:16:20 -
|
||||
Rule sol89 1989 only - Nov 8 11:43:45s 0:16:15 -
|
||||
Rule sol89 1989 only - Nov 9 11:43:50s 0:16:10 -
|
||||
Rule sol89 1989 only - Nov 10 11:43:55s 0:16:05 -
|
||||
Rule sol89 1989 only - Nov 11 11:44:00s 0:16:00 -
|
||||
Rule sol89 1989 only - Nov 12 11:44:05s 0:15:55 -
|
||||
Rule sol89 1989 only - Nov 13 11:44:15s 0:15:45 -
|
||||
Rule sol89 1989 only - Nov 14 11:44:25s 0:15:35 -
|
||||
Rule sol89 1989 only - Nov 15 11:44:35s 0:15:25 -
|
||||
Rule sol89 1989 only - Nov 16 11:44:45s 0:15:15 -
|
||||
Rule sol89 1989 only - Nov 17 11:44:55s 0:15:05 -
|
||||
Rule sol89 1989 only - Nov 18 11:45:10s 0:14:50 -
|
||||
Rule sol89 1989 only - Nov 19 11:45:20s 0:14:40 -
|
||||
Rule sol89 1989 only - Nov 20 11:45:35s 0:14:25 -
|
||||
Rule sol89 1989 only - Nov 21 11:45:50s 0:14:10 -
|
||||
Rule sol89 1989 only - Nov 22 11:46:05s 0:13:55 -
|
||||
Rule sol89 1989 only - Nov 23 11:46:25s 0:13:35 -
|
||||
Rule sol89 1989 only - Nov 24 11:46:40s 0:13:20 -
|
||||
Rule sol89 1989 only - Nov 25 11:47:00s 0:13:00 -
|
||||
Rule sol89 1989 only - Nov 26 11:47:20s 0:12:40 -
|
||||
Rule sol89 1989 only - Nov 27 11:47:35s 0:12:25 -
|
||||
Rule sol89 1989 only - Nov 28 11:47:55s 0:12:05 -
|
||||
Rule sol89 1989 only - Nov 29 11:48:20s 0:11:40 -
|
||||
Rule sol89 1989 only - Nov 30 11:48:40s 0:11:20 -
|
||||
Rule sol89 1989 only - Dec 1 11:49:00s 0:11:00 -
|
||||
Rule sol89 1989 only - Dec 2 11:49:25s 0:10:35 -
|
||||
Rule sol89 1989 only - Dec 3 11:49:50s 0:10:10 -
|
||||
Rule sol89 1989 only - Dec 4 11:50:15s 0:09:45 -
|
||||
Rule sol89 1989 only - Dec 5 11:50:35s 0:09:25 -
|
||||
Rule sol89 1989 only - Dec 6 11:51:00s 0:09:00 -
|
||||
Rule sol89 1989 only - Dec 7 11:51:30s 0:08:30 -
|
||||
Rule sol89 1989 only - Dec 8 11:51:55s 0:08:05 -
|
||||
Rule sol89 1989 only - Dec 9 11:52:20s 0:07:40 -
|
||||
Rule sol89 1989 only - Dec 10 11:52:50s 0:07:10 -
|
||||
Rule sol89 1989 only - Dec 11 11:53:15s 0:06:45 -
|
||||
Rule sol89 1989 only - Dec 12 11:53:45s 0:06:15 -
|
||||
Rule sol89 1989 only - Dec 13 11:54:10s 0:05:50 -
|
||||
Rule sol89 1989 only - Dec 14 11:54:40s 0:05:20 -
|
||||
Rule sol89 1989 only - Dec 15 11:55:10s 0:04:50 -
|
||||
Rule sol89 1989 only - Dec 16 11:55:40s 0:04:20 -
|
||||
Rule sol89 1989 only - Dec 17 11:56:05s 0:03:55 -
|
||||
Rule sol89 1989 only - Dec 18 11:56:35s 0:03:25 -
|
||||
Rule sol89 1989 only - Dec 19 11:57:05s 0:02:55 -
|
||||
Rule sol89 1989 only - Dec 20 11:57:35s 0:02:25 -
|
||||
Rule sol89 1989 only - Dec 21 11:58:05s 0:01:55 -
|
||||
Rule sol89 1989 only - Dec 22 11:58:35s 0:01:25 -
|
||||
Rule sol89 1989 only - Dec 23 11:59:05s 0:00:55 -
|
||||
Rule sol89 1989 only - Dec 24 11:59:35s 0:00:25 -
|
||||
Rule sol89 1989 only - Dec 25 12:00:05s -0:00:05 -
|
||||
Rule sol89 1989 only - Dec 26 12:00:35s -0:00:35 -
|
||||
Rule sol89 1989 only - Dec 27 12:01:05s -0:01:05 -
|
||||
Rule sol89 1989 only - Dec 28 12:01:35s -0:01:35 -
|
||||
Rule sol89 1989 only - Dec 29 12:02:00s -0:02:00 -
|
||||
Rule sol89 1989 only - Dec 30 12:02:30s -0:02:30 -
|
||||
Rule sol89 1989 only - Dec 31 12:03:00s -0:03:00 -
|
||||
|
||||
# Riyadh is at about 46 degrees 46 minutes East: 3 hrs, 7 mins, 4 secs
|
||||
# Before and after 1989, we'll operate on local mean solar time.
|
||||
|
||||
# Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
|
||||
Zone Asia/Riyadh89 3:07:04 - zzz 1989
|
||||
3:07:04 sol89 zzz 1990
|
||||
3:07:04 - zzz
|
||||
# For backward compatibility...
|
||||
Link Asia/Riyadh89 Mideast/Riyadh89
|
1711
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/southamerica
vendored
Normal file
1711
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/southamerica
vendored
Normal file
File diff suppressed because it is too large
Load diff
38
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/systemv
vendored
Normal file
38
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/systemv
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
|
||||
# Old rules, should the need arise.
|
||||
# No attempt is made to handle Newfoundland, since it cannot be expressed
|
||||
# using the System V "TZ" scheme (half-hour offset), or anything outside
|
||||
# North America (no support for non-standard DST start/end dates), nor
|
||||
# the changes in the DST rules in the US after 1976 (which occurred after
|
||||
# the old rules were written).
|
||||
#
|
||||
# If you need the old rules, uncomment ## lines.
|
||||
# Compile this *without* leap second correction for true conformance.
|
||||
|
||||
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
|
||||
Rule SystemV min 1973 - Apr lastSun 2:00 1:00 D
|
||||
Rule SystemV min 1973 - Oct lastSun 2:00 0 S
|
||||
Rule SystemV 1974 only - Jan 6 2:00 1:00 D
|
||||
Rule SystemV 1974 only - Nov lastSun 2:00 0 S
|
||||
Rule SystemV 1975 only - Feb 23 2:00 1:00 D
|
||||
Rule SystemV 1975 only - Oct lastSun 2:00 0 S
|
||||
Rule SystemV 1976 max - Apr lastSun 2:00 1:00 D
|
||||
Rule SystemV 1976 max - Oct lastSun 2:00 0 S
|
||||
|
||||
# Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
|
||||
## Zone SystemV/AST4ADT -4:00 SystemV A%sT
|
||||
## Zone SystemV/EST5EDT -5:00 SystemV E%sT
|
||||
## Zone SystemV/CST6CDT -6:00 SystemV C%sT
|
||||
## Zone SystemV/MST7MDT -7:00 SystemV M%sT
|
||||
## Zone SystemV/PST8PDT -8:00 SystemV P%sT
|
||||
## Zone SystemV/YST9YDT -9:00 SystemV Y%sT
|
||||
## Zone SystemV/AST4 -4:00 - AST
|
||||
## Zone SystemV/EST5 -5:00 - EST
|
||||
## Zone SystemV/CST6 -6:00 - CST
|
||||
## Zone SystemV/MST7 -7:00 - MST
|
||||
## Zone SystemV/PST8 -8:00 - PST
|
||||
## Zone SystemV/YST9 -9:00 - YST
|
||||
## Zone SystemV/HST10 -10:00 - HST
|
38
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/yearistype.sh
vendored
Normal file
38
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/yearistype.sh
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
#! /bin/sh
|
||||
|
||||
: 'This file is in the public domain, so clarified as of'
|
||||
: '2006-07-17 by Arthur David Olson.'
|
||||
|
||||
case $#-$1 in
|
||||
2-|2-0*|2-*[!0-9]*)
|
||||
echo "$0: wild year - $1" >&2
|
||||
exit 1 ;;
|
||||
esac
|
||||
|
||||
case $#-$2 in
|
||||
2-even)
|
||||
case $1 in
|
||||
*[24680]) exit 0 ;;
|
||||
*) exit 1 ;;
|
||||
esac ;;
|
||||
2-nonpres|2-nonuspres)
|
||||
case $1 in
|
||||
*[02468][048]|*[13579][26]) exit 1 ;;
|
||||
*) exit 0 ;;
|
||||
esac ;;
|
||||
2-odd)
|
||||
case $1 in
|
||||
*[13579]) exit 0 ;;
|
||||
*) exit 1 ;;
|
||||
esac ;;
|
||||
2-uspres)
|
||||
case $1 in
|
||||
*[02468][048]|*[13579][26]) exit 0 ;;
|
||||
*) exit 1 ;;
|
||||
esac ;;
|
||||
2-*)
|
||||
echo "$0: wild type - $2" >&2 ;;
|
||||
esac
|
||||
|
||||
echo "$0: usage is $0 year even|odd|uspres|nonpres|nonuspres" >&2
|
||||
exit 1
|
441
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/zone.tab
vendored
Normal file
441
src/core_plugins/timelion/bower_components/flot/examples/axes-time-zones/tz/zone.tab
vendored
Normal file
|
@ -0,0 +1,441 @@
|
|||
# <pre>
|
||||
# This file is in the public domain, so clarified as of
|
||||
# 2009-05-17 by Arthur David Olson.
|
||||
#
|
||||
# TZ zone descriptions
|
||||
#
|
||||
# From Paul Eggert (1996-08-05):
|
||||
#
|
||||
# This file contains a table with the following columns:
|
||||
# 1. ISO 3166 2-character country code. See the file `iso3166.tab'.
|
||||
# 2. Latitude and longitude of the zone's principal location
|
||||
# in ISO 6709 sign-degrees-minutes-seconds format,
|
||||
# either +-DDMM+-DDDMM or +-DDMMSS+-DDDMMSS,
|
||||
# first latitude (+ is north), then longitude (+ is east).
|
||||
# 3. Zone name used in value of TZ environment variable.
|
||||
# 4. Comments; present if and only if the country has multiple rows.
|
||||
#
|
||||
# Columns are separated by a single tab.
|
||||
# The table is sorted first by country, then an order within the country that
|
||||
# (1) makes some geographical sense, and
|
||||
# (2) puts the most populous zones first, where that does not contradict (1).
|
||||
#
|
||||
# Lines beginning with `#' are comments.
|
||||
#
|
||||
#country-
|
||||
#code coordinates TZ comments
|
||||
AD +4230+00131 Europe/Andorra
|
||||
AE +2518+05518 Asia/Dubai
|
||||
AF +3431+06912 Asia/Kabul
|
||||
AG +1703-06148 America/Antigua
|
||||
AI +1812-06304 America/Anguilla
|
||||
AL +4120+01950 Europe/Tirane
|
||||
AM +4011+04430 Asia/Yerevan
|
||||
AO -0848+01314 Africa/Luanda
|
||||
AQ -7750+16636 Antarctica/McMurdo McMurdo Station, Ross Island
|
||||
AQ -9000+00000 Antarctica/South_Pole Amundsen-Scott Station, South Pole
|
||||
AQ -6734-06808 Antarctica/Rothera Rothera Station, Adelaide Island
|
||||
AQ -6448-06406 Antarctica/Palmer Palmer Station, Anvers Island
|
||||
AQ -6736+06253 Antarctica/Mawson Mawson Station, Holme Bay
|
||||
AQ -6835+07758 Antarctica/Davis Davis Station, Vestfold Hills
|
||||
AQ -6617+11031 Antarctica/Casey Casey Station, Bailey Peninsula
|
||||
AQ -7824+10654 Antarctica/Vostok Vostok Station, Lake Vostok
|
||||
AQ -6640+14001 Antarctica/DumontDUrville Dumont-d'Urville Station, Terre Adelie
|
||||
AQ -690022+0393524 Antarctica/Syowa Syowa Station, E Ongul I
|
||||
AQ -5430+15857 Antarctica/Macquarie Macquarie Island Station, Macquarie Island
|
||||
AR -3436-05827 America/Argentina/Buenos_Aires Buenos Aires (BA, CF)
|
||||
AR -3124-06411 America/Argentina/Cordoba most locations (CB, CC, CN, ER, FM, MN, SE, SF)
|
||||
AR -2447-06525 America/Argentina/Salta (SA, LP, NQ, RN)
|
||||
AR -2411-06518 America/Argentina/Jujuy Jujuy (JY)
|
||||
AR -2649-06513 America/Argentina/Tucuman Tucuman (TM)
|
||||
AR -2828-06547 America/Argentina/Catamarca Catamarca (CT), Chubut (CH)
|
||||
AR -2926-06651 America/Argentina/La_Rioja La Rioja (LR)
|
||||
AR -3132-06831 America/Argentina/San_Juan San Juan (SJ)
|
||||
AR -3253-06849 America/Argentina/Mendoza Mendoza (MZ)
|
||||
AR -3319-06621 America/Argentina/San_Luis San Luis (SL)
|
||||
AR -5138-06913 America/Argentina/Rio_Gallegos Santa Cruz (SC)
|
||||
AR -5448-06818 America/Argentina/Ushuaia Tierra del Fuego (TF)
|
||||
AS -1416-17042 Pacific/Pago_Pago
|
||||
AT +4813+01620 Europe/Vienna
|
||||
AU -3133+15905 Australia/Lord_Howe Lord Howe Island
|
||||
AU -4253+14719 Australia/Hobart Tasmania - most locations
|
||||
AU -3956+14352 Australia/Currie Tasmania - King Island
|
||||
AU -3749+14458 Australia/Melbourne Victoria
|
||||
AU -3352+15113 Australia/Sydney New South Wales - most locations
|
||||
AU -3157+14127 Australia/Broken_Hill New South Wales - Yancowinna
|
||||
AU -2728+15302 Australia/Brisbane Queensland - most locations
|
||||
AU -2016+14900 Australia/Lindeman Queensland - Holiday Islands
|
||||
AU -3455+13835 Australia/Adelaide South Australia
|
||||
AU -1228+13050 Australia/Darwin Northern Territory
|
||||
AU -3157+11551 Australia/Perth Western Australia - most locations
|
||||
AU -3143+12852 Australia/Eucla Western Australia - Eucla area
|
||||
AW +1230-06958 America/Aruba
|
||||
AX +6006+01957 Europe/Mariehamn
|
||||
AZ +4023+04951 Asia/Baku
|
||||
BA +4352+01825 Europe/Sarajevo
|
||||
BB +1306-05937 America/Barbados
|
||||
BD +2343+09025 Asia/Dhaka
|
||||
BE +5050+00420 Europe/Brussels
|
||||
BF +1222-00131 Africa/Ouagadougou
|
||||
BG +4241+02319 Europe/Sofia
|
||||
BH +2623+05035 Asia/Bahrain
|
||||
BI -0323+02922 Africa/Bujumbura
|
||||
BJ +0629+00237 Africa/Porto-Novo
|
||||
BL +1753-06251 America/St_Barthelemy
|
||||
BM +3217-06446 Atlantic/Bermuda
|
||||
BN +0456+11455 Asia/Brunei
|
||||
BO -1630-06809 America/La_Paz
|
||||
BQ +120903-0681636 America/Kralendijk
|
||||
BR -0351-03225 America/Noronha Atlantic islands
|
||||
BR -0127-04829 America/Belem Amapa, E Para
|
||||
BR -0343-03830 America/Fortaleza NE Brazil (MA, PI, CE, RN, PB)
|
||||
BR -0803-03454 America/Recife Pernambuco
|
||||
BR -0712-04812 America/Araguaina Tocantins
|
||||
BR -0940-03543 America/Maceio Alagoas, Sergipe
|
||||
BR -1259-03831 America/Bahia Bahia
|
||||
BR -2332-04637 America/Sao_Paulo S & SE Brazil (GO, DF, MG, ES, RJ, SP, PR, SC, RS)
|
||||
BR -2027-05437 America/Campo_Grande Mato Grosso do Sul
|
||||
BR -1535-05605 America/Cuiaba Mato Grosso
|
||||
BR -0226-05452 America/Santarem W Para
|
||||
BR -0846-06354 America/Porto_Velho Rondonia
|
||||
BR +0249-06040 America/Boa_Vista Roraima
|
||||
BR -0308-06001 America/Manaus E Amazonas
|
||||
BR -0640-06952 America/Eirunepe W Amazonas
|
||||
BR -0958-06748 America/Rio_Branco Acre
|
||||
BS +2505-07721 America/Nassau
|
||||
BT +2728+08939 Asia/Thimphu
|
||||
BW -2439+02555 Africa/Gaborone
|
||||
BY +5354+02734 Europe/Minsk
|
||||
BZ +1730-08812 America/Belize
|
||||
CA +4734-05243 America/St_Johns Newfoundland Time, including SE Labrador
|
||||
CA +4439-06336 America/Halifax Atlantic Time - Nova Scotia (most places), PEI
|
||||
CA +4612-05957 America/Glace_Bay Atlantic Time - Nova Scotia - places that did not observe DST 1966-1971
|
||||
CA +4606-06447 America/Moncton Atlantic Time - New Brunswick
|
||||
CA +5320-06025 America/Goose_Bay Atlantic Time - Labrador - most locations
|
||||
CA +5125-05707 America/Blanc-Sablon Atlantic Standard Time - Quebec - Lower North Shore
|
||||
CA +4531-07334 America/Montreal Eastern Time - Quebec - most locations
|
||||
CA +4339-07923 America/Toronto Eastern Time - Ontario - most locations
|
||||
CA +4901-08816 America/Nipigon Eastern Time - Ontario & Quebec - places that did not observe DST 1967-1973
|
||||
CA +4823-08915 America/Thunder_Bay Eastern Time - Thunder Bay, Ontario
|
||||
CA +6344-06828 America/Iqaluit Eastern Time - east Nunavut - most locations
|
||||
CA +6608-06544 America/Pangnirtung Eastern Time - Pangnirtung, Nunavut
|
||||
CA +744144-0944945 America/Resolute Central Standard Time - Resolute, Nunavut
|
||||
CA +484531-0913718 America/Atikokan Eastern Standard Time - Atikokan, Ontario and Southampton I, Nunavut
|
||||
CA +624900-0920459 America/Rankin_Inlet Central Time - central Nunavut
|
||||
CA +4953-09709 America/Winnipeg Central Time - Manitoba & west Ontario
|
||||
CA +4843-09434 America/Rainy_River Central Time - Rainy River & Fort Frances, Ontario
|
||||
CA +5024-10439 America/Regina Central Standard Time - Saskatchewan - most locations
|
||||
CA +5017-10750 America/Swift_Current Central Standard Time - Saskatchewan - midwest
|
||||
CA +5333-11328 America/Edmonton Mountain Time - Alberta, east British Columbia & west Saskatchewan
|
||||
CA +690650-1050310 America/Cambridge_Bay Mountain Time - west Nunavut
|
||||
CA +6227-11421 America/Yellowknife Mountain Time - central Northwest Territories
|
||||
CA +682059-1334300 America/Inuvik Mountain Time - west Northwest Territories
|
||||
CA +4906-11631 America/Creston Mountain Standard Time - Creston, British Columbia
|
||||
CA +5946-12014 America/Dawson_Creek Mountain Standard Time - Dawson Creek & Fort Saint John, British Columbia
|
||||
CA +4916-12307 America/Vancouver Pacific Time - west British Columbia
|
||||
CA +6043-13503 America/Whitehorse Pacific Time - south Yukon
|
||||
CA +6404-13925 America/Dawson Pacific Time - north Yukon
|
||||
CC -1210+09655 Indian/Cocos
|
||||
CD -0418+01518 Africa/Kinshasa west Dem. Rep. of Congo
|
||||
CD -1140+02728 Africa/Lubumbashi east Dem. Rep. of Congo
|
||||
CF +0422+01835 Africa/Bangui
|
||||
CG -0416+01517 Africa/Brazzaville
|
||||
CH +4723+00832 Europe/Zurich
|
||||
CI +0519-00402 Africa/Abidjan
|
||||
CK -2114-15946 Pacific/Rarotonga
|
||||
CL -3327-07040 America/Santiago most locations
|
||||
CL -2709-10926 Pacific/Easter Easter Island & Sala y Gomez
|
||||
CM +0403+00942 Africa/Douala
|
||||
CN +3114+12128 Asia/Shanghai east China - Beijing, Guangdong, Shanghai, etc.
|
||||
CN +4545+12641 Asia/Harbin Heilongjiang (except Mohe), Jilin
|
||||
CN +2934+10635 Asia/Chongqing central China - Sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.
|
||||
CN +4348+08735 Asia/Urumqi most of Tibet & Xinjiang
|
||||
CN +3929+07559 Asia/Kashgar west Tibet & Xinjiang
|
||||
CO +0436-07405 America/Bogota
|
||||
CR +0956-08405 America/Costa_Rica
|
||||
CU +2308-08222 America/Havana
|
||||
CV +1455-02331 Atlantic/Cape_Verde
|
||||
CW +1211-06900 America/Curacao
|
||||
CX -1025+10543 Indian/Christmas
|
||||
CY +3510+03322 Asia/Nicosia
|
||||
CZ +5005+01426 Europe/Prague
|
||||
DE +5230+01322 Europe/Berlin
|
||||
DJ +1136+04309 Africa/Djibouti
|
||||
DK +5540+01235 Europe/Copenhagen
|
||||
DM +1518-06124 America/Dominica
|
||||
DO +1828-06954 America/Santo_Domingo
|
||||
DZ +3647+00303 Africa/Algiers
|
||||
EC -0210-07950 America/Guayaquil mainland
|
||||
EC -0054-08936 Pacific/Galapagos Galapagos Islands
|
||||
EE +5925+02445 Europe/Tallinn
|
||||
EG +3003+03115 Africa/Cairo
|
||||
EH +2709-01312 Africa/El_Aaiun
|
||||
ER +1520+03853 Africa/Asmara
|
||||
ES +4024-00341 Europe/Madrid mainland
|
||||
ES +3553-00519 Africa/Ceuta Ceuta & Melilla
|
||||
ES +2806-01524 Atlantic/Canary Canary Islands
|
||||
ET +0902+03842 Africa/Addis_Ababa
|
||||
FI +6010+02458 Europe/Helsinki
|
||||
FJ -1808+17825 Pacific/Fiji
|
||||
FK -5142-05751 Atlantic/Stanley
|
||||
FM +0725+15147 Pacific/Chuuk Chuuk (Truk) and Yap
|
||||
FM +0658+15813 Pacific/Pohnpei Pohnpei (Ponape)
|
||||
FM +0519+16259 Pacific/Kosrae Kosrae
|
||||
FO +6201-00646 Atlantic/Faroe
|
||||
FR +4852+00220 Europe/Paris
|
||||
GA +0023+00927 Africa/Libreville
|
||||
GB +513030-0000731 Europe/London
|
||||
GD +1203-06145 America/Grenada
|
||||
GE +4143+04449 Asia/Tbilisi
|
||||
GF +0456-05220 America/Cayenne
|
||||
GG +4927-00232 Europe/Guernsey
|
||||
GH +0533-00013 Africa/Accra
|
||||
GI +3608-00521 Europe/Gibraltar
|
||||
GL +6411-05144 America/Godthab most locations
|
||||
GL +7646-01840 America/Danmarkshavn east coast, north of Scoresbysund
|
||||
GL +7029-02158 America/Scoresbysund Scoresbysund / Ittoqqortoormiit
|
||||
GL +7634-06847 America/Thule Thule / Pituffik
|
||||
GM +1328-01639 Africa/Banjul
|
||||
GN +0931-01343 Africa/Conakry
|
||||
GP +1614-06132 America/Guadeloupe
|
||||
GQ +0345+00847 Africa/Malabo
|
||||
GR +3758+02343 Europe/Athens
|
||||
GS -5416-03632 Atlantic/South_Georgia
|
||||
GT +1438-09031 America/Guatemala
|
||||
GU +1328+14445 Pacific/Guam
|
||||
GW +1151-01535 Africa/Bissau
|
||||
GY +0648-05810 America/Guyana
|
||||
HK +2217+11409 Asia/Hong_Kong
|
||||
HN +1406-08713 America/Tegucigalpa
|
||||
HR +4548+01558 Europe/Zagreb
|
||||
HT +1832-07220 America/Port-au-Prince
|
||||
HU +4730+01905 Europe/Budapest
|
||||
ID -0610+10648 Asia/Jakarta Java & Sumatra
|
||||
ID -0002+10920 Asia/Pontianak west & central Borneo
|
||||
ID -0507+11924 Asia/Makassar east & south Borneo, Sulawesi (Celebes), Bali, Nusa Tengarra, west Timor
|
||||
ID -0232+14042 Asia/Jayapura west New Guinea (Irian Jaya) & Malukus (Moluccas)
|
||||
IE +5320-00615 Europe/Dublin
|
||||
IL +3146+03514 Asia/Jerusalem
|
||||
IM +5409-00428 Europe/Isle_of_Man
|
||||
IN +2232+08822 Asia/Kolkata
|
||||
IO -0720+07225 Indian/Chagos
|
||||
IQ +3321+04425 Asia/Baghdad
|
||||
IR +3540+05126 Asia/Tehran
|
||||
IS +6409-02151 Atlantic/Reykjavik
|
||||
IT +4154+01229 Europe/Rome
|
||||
JE +4912-00207 Europe/Jersey
|
||||
JM +1800-07648 America/Jamaica
|
||||
JO +3157+03556 Asia/Amman
|
||||
JP +353916+1394441 Asia/Tokyo
|
||||
KE -0117+03649 Africa/Nairobi
|
||||
KG +4254+07436 Asia/Bishkek
|
||||
KH +1133+10455 Asia/Phnom_Penh
|
||||
KI +0125+17300 Pacific/Tarawa Gilbert Islands
|
||||
KI -0308-17105 Pacific/Enderbury Phoenix Islands
|
||||
KI +0152-15720 Pacific/Kiritimati Line Islands
|
||||
KM -1141+04316 Indian/Comoro
|
||||
KN +1718-06243 America/St_Kitts
|
||||
KP +3901+12545 Asia/Pyongyang
|
||||
KR +3733+12658 Asia/Seoul
|
||||
KW +2920+04759 Asia/Kuwait
|
||||
KY +1918-08123 America/Cayman
|
||||
KZ +4315+07657 Asia/Almaty most locations
|
||||
KZ +4448+06528 Asia/Qyzylorda Qyzylorda (Kyzylorda, Kzyl-Orda)
|
||||
KZ +5017+05710 Asia/Aqtobe Aqtobe (Aktobe)
|
||||
KZ +4431+05016 Asia/Aqtau Atyrau (Atirau, Gur'yev), Mangghystau (Mankistau)
|
||||
KZ +5113+05121 Asia/Oral West Kazakhstan
|
||||
LA +1758+10236 Asia/Vientiane
|
||||
LB +3353+03530 Asia/Beirut
|
||||
LC +1401-06100 America/St_Lucia
|
||||
LI +4709+00931 Europe/Vaduz
|
||||
LK +0656+07951 Asia/Colombo
|
||||
LR +0618-01047 Africa/Monrovia
|
||||
LS -2928+02730 Africa/Maseru
|
||||
LT +5441+02519 Europe/Vilnius
|
||||
LU +4936+00609 Europe/Luxembourg
|
||||
LV +5657+02406 Europe/Riga
|
||||
LY +3254+01311 Africa/Tripoli
|
||||
MA +3339-00735 Africa/Casablanca
|
||||
MC +4342+00723 Europe/Monaco
|
||||
MD +4700+02850 Europe/Chisinau
|
||||
ME +4226+01916 Europe/Podgorica
|
||||
MF +1804-06305 America/Marigot
|
||||
MG -1855+04731 Indian/Antananarivo
|
||||
MH +0709+17112 Pacific/Majuro most locations
|
||||
MH +0905+16720 Pacific/Kwajalein Kwajalein
|
||||
MK +4159+02126 Europe/Skopje
|
||||
ML +1239-00800 Africa/Bamako
|
||||
MM +1647+09610 Asia/Rangoon
|
||||
MN +4755+10653 Asia/Ulaanbaatar most locations
|
||||
MN +4801+09139 Asia/Hovd Bayan-Olgiy, Govi-Altai, Hovd, Uvs, Zavkhan
|
||||
MN +4804+11430 Asia/Choibalsan Dornod, Sukhbaatar
|
||||
MO +2214+11335 Asia/Macau
|
||||
MP +1512+14545 Pacific/Saipan
|
||||
MQ +1436-06105 America/Martinique
|
||||
MR +1806-01557 Africa/Nouakchott
|
||||
MS +1643-06213 America/Montserrat
|
||||
MT +3554+01431 Europe/Malta
|
||||
MU -2010+05730 Indian/Mauritius
|
||||
MV +0410+07330 Indian/Maldives
|
||||
MW -1547+03500 Africa/Blantyre
|
||||
MX +1924-09909 America/Mexico_City Central Time - most locations
|
||||
MX +2105-08646 America/Cancun Central Time - Quintana Roo
|
||||
MX +2058-08937 America/Merida Central Time - Campeche, Yucatan
|
||||
MX +2540-10019 America/Monterrey Mexican Central Time - Coahuila, Durango, Nuevo Leon, Tamaulipas away from US border
|
||||
MX +2550-09730 America/Matamoros US Central Time - Coahuila, Durango, Nuevo Leon, Tamaulipas near US border
|
||||
MX +2313-10625 America/Mazatlan Mountain Time - S Baja, Nayarit, Sinaloa
|
||||
MX +2838-10605 America/Chihuahua Mexican Mountain Time - Chihuahua away from US border
|
||||
MX +2934-10425 America/Ojinaga US Mountain Time - Chihuahua near US border
|
||||
MX +2904-11058 America/Hermosillo Mountain Standard Time - Sonora
|
||||
MX +3232-11701 America/Tijuana US Pacific Time - Baja California near US border
|
||||
MX +3018-11452 America/Santa_Isabel Mexican Pacific Time - Baja California away from US border
|
||||
MX +2048-10515 America/Bahia_Banderas Mexican Central Time - Bahia de Banderas
|
||||
MY +0310+10142 Asia/Kuala_Lumpur peninsular Malaysia
|
||||
MY +0133+11020 Asia/Kuching Sabah & Sarawak
|
||||
MZ -2558+03235 Africa/Maputo
|
||||
NA -2234+01706 Africa/Windhoek
|
||||
NC -2216+16627 Pacific/Noumea
|
||||
NE +1331+00207 Africa/Niamey
|
||||
NF -2903+16758 Pacific/Norfolk
|
||||
NG +0627+00324 Africa/Lagos
|
||||
NI +1209-08617 America/Managua
|
||||
NL +5222+00454 Europe/Amsterdam
|
||||
NO +5955+01045 Europe/Oslo
|
||||
NP +2743+08519 Asia/Kathmandu
|
||||
NR -0031+16655 Pacific/Nauru
|
||||
NU -1901-16955 Pacific/Niue
|
||||
NZ -3652+17446 Pacific/Auckland most locations
|
||||
NZ -4357-17633 Pacific/Chatham Chatham Islands
|
||||
OM +2336+05835 Asia/Muscat
|
||||
PA +0858-07932 America/Panama
|
||||
PE -1203-07703 America/Lima
|
||||
PF -1732-14934 Pacific/Tahiti Society Islands
|
||||
PF -0900-13930 Pacific/Marquesas Marquesas Islands
|
||||
PF -2308-13457 Pacific/Gambier Gambier Islands
|
||||
PG -0930+14710 Pacific/Port_Moresby
|
||||
PH +1435+12100 Asia/Manila
|
||||
PK +2452+06703 Asia/Karachi
|
||||
PL +5215+02100 Europe/Warsaw
|
||||
PM +4703-05620 America/Miquelon
|
||||
PN -2504-13005 Pacific/Pitcairn
|
||||
PR +182806-0660622 America/Puerto_Rico
|
||||
PS +3130+03428 Asia/Gaza Gaza Strip
|
||||
PS +313200+0350542 Asia/Hebron West Bank
|
||||
PT +3843-00908 Europe/Lisbon mainland
|
||||
PT +3238-01654 Atlantic/Madeira Madeira Islands
|
||||
PT +3744-02540 Atlantic/Azores Azores
|
||||
PW +0720+13429 Pacific/Palau
|
||||
PY -2516-05740 America/Asuncion
|
||||
QA +2517+05132 Asia/Qatar
|
||||
RE -2052+05528 Indian/Reunion
|
||||
RO +4426+02606 Europe/Bucharest
|
||||
RS +4450+02030 Europe/Belgrade
|
||||
RU +5443+02030 Europe/Kaliningrad Moscow-01 - Kaliningrad
|
||||
RU +5545+03735 Europe/Moscow Moscow+00 - west Russia
|
||||
RU +4844+04425 Europe/Volgograd Moscow+00 - Caspian Sea
|
||||
RU +5312+05009 Europe/Samara Moscow+00 - Samara, Udmurtia
|
||||
RU +5651+06036 Asia/Yekaterinburg Moscow+02 - Urals
|
||||
RU +5500+07324 Asia/Omsk Moscow+03 - west Siberia
|
||||
RU +5502+08255 Asia/Novosibirsk Moscow+03 - Novosibirsk
|
||||
RU +5345+08707 Asia/Novokuznetsk Moscow+03 - Novokuznetsk
|
||||
RU +5601+09250 Asia/Krasnoyarsk Moscow+04 - Yenisei River
|
||||
RU +5216+10420 Asia/Irkutsk Moscow+05 - Lake Baikal
|
||||
RU +6200+12940 Asia/Yakutsk Moscow+06 - Lena River
|
||||
RU +4310+13156 Asia/Vladivostok Moscow+07 - Amur River
|
||||
RU +4658+14242 Asia/Sakhalin Moscow+07 - Sakhalin Island
|
||||
RU +5934+15048 Asia/Magadan Moscow+08 - Magadan
|
||||
RU +5301+15839 Asia/Kamchatka Moscow+08 - Kamchatka
|
||||
RU +6445+17729 Asia/Anadyr Moscow+08 - Bering Sea
|
||||
RW -0157+03004 Africa/Kigali
|
||||
SA +2438+04643 Asia/Riyadh
|
||||
SB -0932+16012 Pacific/Guadalcanal
|
||||
SC -0440+05528 Indian/Mahe
|
||||
SD +1536+03232 Africa/Khartoum
|
||||
SE +5920+01803 Europe/Stockholm
|
||||
SG +0117+10351 Asia/Singapore
|
||||
SH -1555-00542 Atlantic/St_Helena
|
||||
SI +4603+01431 Europe/Ljubljana
|
||||
SJ +7800+01600 Arctic/Longyearbyen
|
||||
SK +4809+01707 Europe/Bratislava
|
||||
SL +0830-01315 Africa/Freetown
|
||||
SM +4355+01228 Europe/San_Marino
|
||||
SN +1440-01726 Africa/Dakar
|
||||
SO +0204+04522 Africa/Mogadishu
|
||||
SR +0550-05510 America/Paramaribo
|
||||
SS +0451+03136 Africa/Juba
|
||||
ST +0020+00644 Africa/Sao_Tome
|
||||
SV +1342-08912 America/El_Salvador
|
||||
SX +180305-0630250 America/Lower_Princes
|
||||
SY +3330+03618 Asia/Damascus
|
||||
SZ -2618+03106 Africa/Mbabane
|
||||
TC +2128-07108 America/Grand_Turk
|
||||
TD +1207+01503 Africa/Ndjamena
|
||||
TF -492110+0701303 Indian/Kerguelen
|
||||
TG +0608+00113 Africa/Lome
|
||||
TH +1345+10031 Asia/Bangkok
|
||||
TJ +3835+06848 Asia/Dushanbe
|
||||
TK -0922-17114 Pacific/Fakaofo
|
||||
TL -0833+12535 Asia/Dili
|
||||
TM +3757+05823 Asia/Ashgabat
|
||||
TN +3648+01011 Africa/Tunis
|
||||
TO -2110-17510 Pacific/Tongatapu
|
||||
TR +4101+02858 Europe/Istanbul
|
||||
TT +1039-06131 America/Port_of_Spain
|
||||
TV -0831+17913 Pacific/Funafuti
|
||||
TW +2503+12130 Asia/Taipei
|
||||
TZ -0648+03917 Africa/Dar_es_Salaam
|
||||
UA +5026+03031 Europe/Kiev most locations
|
||||
UA +4837+02218 Europe/Uzhgorod Ruthenia
|
||||
UA +4750+03510 Europe/Zaporozhye Zaporozh'ye, E Lugansk / Zaporizhia, E Luhansk
|
||||
UA +4457+03406 Europe/Simferopol central Crimea
|
||||
UG +0019+03225 Africa/Kampala
|
||||
UM +1645-16931 Pacific/Johnston Johnston Atoll
|
||||
UM +2813-17722 Pacific/Midway Midway Islands
|
||||
UM +1917+16637 Pacific/Wake Wake Island
|
||||
US +404251-0740023 America/New_York Eastern Time
|
||||
US +421953-0830245 America/Detroit Eastern Time - Michigan - most locations
|
||||
US +381515-0854534 America/Kentucky/Louisville Eastern Time - Kentucky - Louisville area
|
||||
US +364947-0845057 America/Kentucky/Monticello Eastern Time - Kentucky - Wayne County
|
||||
US +394606-0860929 America/Indiana/Indianapolis Eastern Time - Indiana - most locations
|
||||
US +384038-0873143 America/Indiana/Vincennes Eastern Time - Indiana - Daviess, Dubois, Knox & Martin Counties
|
||||
US +410305-0863611 America/Indiana/Winamac Eastern Time - Indiana - Pulaski County
|
||||
US +382232-0862041 America/Indiana/Marengo Eastern Time - Indiana - Crawford County
|
||||
US +382931-0871643 America/Indiana/Petersburg Eastern Time - Indiana - Pike County
|
||||
US +384452-0850402 America/Indiana/Vevay Eastern Time - Indiana - Switzerland County
|
||||
US +415100-0873900 America/Chicago Central Time
|
||||
US +375711-0864541 America/Indiana/Tell_City Central Time - Indiana - Perry County
|
||||
US +411745-0863730 America/Indiana/Knox Central Time - Indiana - Starke County
|
||||
US +450628-0873651 America/Menominee Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee Counties
|
||||
US +470659-1011757 America/North_Dakota/Center Central Time - North Dakota - Oliver County
|
||||
US +465042-1012439 America/North_Dakota/New_Salem Central Time - North Dakota - Morton County (except Mandan area)
|
||||
US +471551-1014640 America/North_Dakota/Beulah Central Time - North Dakota - Mercer County
|
||||
US +394421-1045903 America/Denver Mountain Time
|
||||
US +433649-1161209 America/Boise Mountain Time - south Idaho & east Oregon
|
||||
US +364708-1084111 America/Shiprock Mountain Time - Navajo
|
||||
US +332654-1120424 America/Phoenix Mountain Standard Time - Arizona
|
||||
US +340308-1181434 America/Los_Angeles Pacific Time
|
||||
US +611305-1495401 America/Anchorage Alaska Time
|
||||
US +581807-1342511 America/Juneau Alaska Time - Alaska panhandle
|
||||
US +571035-1351807 America/Sitka Alaska Time - southeast Alaska panhandle
|
||||
US +593249-1394338 America/Yakutat Alaska Time - Alaska panhandle neck
|
||||
US +643004-1652423 America/Nome Alaska Time - west Alaska
|
||||
US +515248-1763929 America/Adak Aleutian Islands
|
||||
US +550737-1313435 America/Metlakatla Metlakatla Time - Annette Island
|
||||
US +211825-1575130 Pacific/Honolulu Hawaii
|
||||
UY -3453-05611 America/Montevideo
|
||||
UZ +3940+06648 Asia/Samarkand west Uzbekistan
|
||||
UZ +4120+06918 Asia/Tashkent east Uzbekistan
|
||||
VA +415408+0122711 Europe/Vatican
|
||||
VC +1309-06114 America/St_Vincent
|
||||
VE +1030-06656 America/Caracas
|
||||
VG +1827-06437 America/Tortola
|
||||
VI +1821-06456 America/St_Thomas
|
||||
VN +1045+10640 Asia/Ho_Chi_Minh
|
||||
VU -1740+16825 Pacific/Efate
|
||||
WF -1318-17610 Pacific/Wallis
|
||||
WS -1350-17144 Pacific/Apia
|
||||
YE +1245+04512 Asia/Aden
|
||||
YT -1247+04514 Indian/Mayotte
|
||||
ZA -2615+02800 Africa/Johannesburg
|
||||
ZM -1525+02817 Africa/Lusaka
|
||||
ZW -1750+03103 Africa/Harare
|
137
src/core_plugins/timelion/bower_components/flot/examples/axes-time/index.html
vendored
Normal file
137
src/core_plugins/timelion/bower_components/flot/examples/axes-time/index.html
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
src/core_plugins/timelion/bower_components/flot/examples/background.png
vendored
Normal file
BIN
src/core_plugins/timelion/bower_components/flot/examples/background.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 231 B |
91
src/core_plugins/timelion/bower_components/flot/examples/basic-options/index.html
vendored
Normal file
91
src/core_plugins/timelion/bower_components/flot/examples/basic-options/index.html
vendored
Normal file
|
@ -0,0 +1,91 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Basic Options</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function () {
|
||||
|
||||
var d1 = [];
|
||||
for (var i = 0; i < Math.PI * 2; i += 0.25) {
|
||||
d1.push([i, Math.sin(i)]);
|
||||
}
|
||||
|
||||
var d2 = [];
|
||||
for (var i = 0; i < Math.PI * 2; i += 0.25) {
|
||||
d2.push([i, Math.cos(i)]);
|
||||
}
|
||||
|
||||
var d3 = [];
|
||||
for (var i = 0; i < Math.PI * 2; i += 0.1) {
|
||||
d3.push([i, Math.tan(i)]);
|
||||
}
|
||||
|
||||
$.plot("#placeholder", [
|
||||
{ label: "sin(x)", data: d1 },
|
||||
{ label: "cos(x)", data: d2 },
|
||||
{ label: "tan(x)", data: d3 }
|
||||
], {
|
||||
series: {
|
||||
lines: { show: true },
|
||||
points: { show: true }
|
||||
},
|
||||
xaxis: {
|
||||
ticks: [
|
||||
0, [ Math.PI/2, "\u03c0/2" ], [ Math.PI, "\u03c0" ],
|
||||
[ Math.PI * 3/2, "3\u03c0/2" ], [ Math.PI * 2, "2\u03c0" ]
|
||||
]
|
||||
},
|
||||
yaxis: {
|
||||
ticks: 10,
|
||||
min: -2,
|
||||
max: 2,
|
||||
tickDecimals: 3
|
||||
},
|
||||
grid: {
|
||||
backgroundColor: { colors: [ "#fff", "#eee" ] },
|
||||
borderWidth: {
|
||||
top: 1,
|
||||
right: 1,
|
||||
bottom: 2,
|
||||
left: 2
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Basic Options</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>There are plenty of options you can set to control the precise looks of your plot. You can control the ticks on the axes, the legend, the graph type, etc.</p>
|
||||
|
||||
<p>Flot goes to great lengths to provide sensible defaults so that you don't have to customize much for a good-looking result.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
57
src/core_plugins/timelion/bower_components/flot/examples/basic-usage/index.html
vendored
Normal file
57
src/core_plugins/timelion/bower_components/flot/examples/basic-usage/index.html
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Basic Usage</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var d1 = [];
|
||||
for (var i = 0; i < 14; i += 0.5) {
|
||||
d1.push([i, Math.sin(i)]);
|
||||
}
|
||||
|
||||
var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
|
||||
|
||||
// A null signifies separate line segments
|
||||
|
||||
var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
|
||||
|
||||
$.plot("#placeholder", [ d1, d2, d3 ]);
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Basic Usage</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>You don't have to do much to get an attractive plot. Create a placeholder, make sure it has dimensions (so Flot knows at what size to draw the plot), then call the plot function with your data.</p>
|
||||
|
||||
<p>The axes are automatically scaled.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
75
src/core_plugins/timelion/bower_components/flot/examples/canvas/index.html
vendored
Normal file
75
src/core_plugins/timelion/bower_components/flot/examples/canvas/index.html
vendored
Normal file
File diff suppressed because one or more lines are too long
64
src/core_plugins/timelion/bower_components/flot/examples/categories/index.html
vendored
Normal file
64
src/core_plugins/timelion/bower_components/flot/examples/categories/index.html
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Categories</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.categories.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var data = [ ["January", 10], ["February", 8], ["March", 4], ["April", 13], ["May", 17], ["June", 9] ];
|
||||
|
||||
$.plot("#placeholder", [ data ], {
|
||||
series: {
|
||||
bars: {
|
||||
show: true,
|
||||
barWidth: 0.6,
|
||||
align: "center"
|
||||
}
|
||||
},
|
||||
xaxis: {
|
||||
mode: "categories",
|
||||
tickLength: 0
|
||||
}
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Categories</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>With the categories plugin you can plot categories/textual data easily.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
97
src/core_plugins/timelion/bower_components/flot/examples/examples.css
vendored
Normal file
97
src/core_plugins/timelion/bower_components/flot/examples/examples.css
vendored
Normal file
|
@ -0,0 +1,97 @@
|
|||
* { padding: 0; margin: 0; vertical-align: top; }
|
||||
|
||||
body {
|
||||
background: url(background.png) repeat-x;
|
||||
font: 18px/1.5em "proxima-nova", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
a { color: #069; }
|
||||
a:hover { color: #28b; }
|
||||
|
||||
h2 {
|
||||
margin-top: 15px;
|
||||
font: normal 32px "omnes-pro", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-left: 30px;
|
||||
font: normal 26px "omnes-pro", Helvetica, Arial, sans-serif;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
button {
|
||||
font-size: 18px;
|
||||
padding: 1px 7px;
|
||||
}
|
||||
|
||||
input {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
input[type=checkbox] {
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
#header {
|
||||
position: relative;
|
||||
width: 900px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#header h2 {
|
||||
margin-left: 10px;
|
||||
vertical-align: middle;
|
||||
font-size: 42px;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 880px;
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin-top: 25px;
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.demo-container {
|
||||
box-sizing: border-box;
|
||||
width: 850px;
|
||||
height: 450px;
|
||||
padding: 20px 15px 15px 15px;
|
||||
margin: 15px auto 30px auto;
|
||||
border: 1px solid #ddd;
|
||||
background: #fff;
|
||||
background: linear-gradient(#f6f6f6 0, #fff 50px);
|
||||
background: -o-linear-gradient(#f6f6f6 0, #fff 50px);
|
||||
background: -ms-linear-gradient(#f6f6f6 0, #fff 50px);
|
||||
background: -moz-linear-gradient(#f6f6f6 0, #fff 50px);
|
||||
background: -webkit-linear-gradient(#f6f6f6 0, #fff 50px);
|
||||
box-shadow: 0 3px 10px rgba(0,0,0,0.15);
|
||||
-o-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
|
||||
-ms-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
|
||||
-moz-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
|
||||
-webkit-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.demo-placeholder {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 14px;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
.legend table {
|
||||
border-spacing: 5px;
|
||||
}
|
BIN
src/core_plugins/timelion/bower_components/flot/examples/image/hs-2004-27-a-large-web.jpg
vendored
Normal file
BIN
src/core_plugins/timelion/bower_components/flot/examples/image/hs-2004-27-a-large-web.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
69
src/core_plugins/timelion/bower_components/flot/examples/image/index.html
vendored
Normal file
69
src/core_plugins/timelion/bower_components/flot/examples/image/index.html
vendored
Normal file
|
@ -0,0 +1,69 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Image Plots</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.image.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var data = [[["hs-2004-27-a-large-web.jpg", -10, -10, 10, 10]]];
|
||||
|
||||
var options = {
|
||||
series: {
|
||||
images: {
|
||||
show: true
|
||||
}
|
||||
},
|
||||
xaxis: {
|
||||
min: -8,
|
||||
max: 4
|
||||
},
|
||||
yaxis: {
|
||||
min: -8,
|
||||
max: 4
|
||||
}
|
||||
};
|
||||
|
||||
$.plot.image.loadDataImages(data, options, function () {
|
||||
$.plot("#placeholder", data, options);
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Image Plots</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container" style="width:600px;height:600px;">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>The Cat's Eye Nebula (<a href="http://hubblesite.org/gallery/album/nebula/pr2004027a/">picture from Hubble</a>).</p>
|
||||
|
||||
<p>With the image plugin, you can plot static images against a set of axes. This is for useful for adding ticks to complex prerendered visualizations. Instead of inputting data points, you specify the images and where their two opposite corners are supposed to be in plot space.</p>
|
||||
|
||||
<p>Images represent a little further complication because you need to make sure they are loaded before you can use them (Flot skips incomplete images). The plugin comes with a couple of helpers for doing that.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
80
src/core_plugins/timelion/bower_components/flot/examples/index.html
vendored
Normal file
80
src/core_plugins/timelion/bower_components/flot/examples/index.html
vendored
Normal file
|
@ -0,0 +1,80 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples</title>
|
||||
<link href="examples.css" rel="stylesheet" type="text/css">
|
||||
<style>
|
||||
|
||||
h3 {
|
||||
margin-top: 30px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script language="javascript" type="text/javascript" src="../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Flot Examples</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<p>Here are some examples for <a href="http://www.flotcharts.org">Flot</a>, the Javascript charting library for jQuery:</p>
|
||||
|
||||
<h3>Basic Usage</h3>
|
||||
|
||||
<ul>
|
||||
<li><a href="basic-usage/index.html">Basic example</a></li>
|
||||
<li><a href="series-types/index.html">Different graph types</a> and <a href="categories/index.html">simple categories/textual data</a></li>
|
||||
<li><a href="basic-options/index.html">Setting various options</a> and <a href="annotating/index.html">annotating a chart</a></li>
|
||||
<li><a href="ajax/index.html">Updating graphs with AJAX</a> and <a href="realtime/index.html">real-time updates</a></li>
|
||||
</ul>
|
||||
|
||||
<h3>Interactivity</h3>
|
||||
|
||||
<ul>
|
||||
<li><a href="series-toggle/index.html">Turning series on/off</a></li>
|
||||
<li><a href="selection/index.html">Rectangular selection support and zooming</a> and <a href="zooming/index.html">zooming with overview</a> (both with selection plugin)</li>
|
||||
<li><a href="interacting/index.html">Interacting with the data points</a></li>
|
||||
<li><a href="navigate/index.html">Panning and zooming</a> (with navigation plugin)</li>
|
||||
<li><a href="resize/index.html">Automatically redraw when window is resized</a> (with resize plugin)</li>
|
||||
</ul>
|
||||
|
||||
<h3>Additional Features</h3>
|
||||
|
||||
<ul>
|
||||
<li><a href="symbols/index.html">Using other symbols than circles for points</a> (with symbol plugin)</li>
|
||||
<li><a href="axes-time/index.html">Plotting time series</a>, <a href="visitors/index.html">visitors per day with zooming and weekends</a> (with selection plugin) and <a href="axes-time-zones/index.html">time zone support</a></li>
|
||||
<li><a href="axes-multiple/index.html">Multiple axes</a> and <a href="axes-interacting/index.html">interacting with the axes</a></li>
|
||||
<li><a href="threshold/index.html">Thresholding the data</a> (with threshold plugin)</li>
|
||||
<li><a href="stacking/index.html">Stacked charts</a> (with stacking plugin)</li>
|
||||
<li><a href="percentiles/index.html">Using filled areas to plot percentiles</a> (with fillbetween plugin)</li>
|
||||
<li><a href="tracking/index.html">Tracking curves with crosshair</a> (with crosshair plugin)</li>
|
||||
<li><a href="image/index.html">Plotting prerendered images</a> (with image plugin)</li>
|
||||
<li><a href="series-errorbars/index.html">Plotting error bars</a> (with errorbars plugin)</li>
|
||||
<li><a href="series-pie/index.html">Pie charts</a> (with pie plugin)</li>
|
||||
<li><a href="canvas/index.html">Rendering text with canvas instead of HTML</a> (with canvas plugin)</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2013 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
118
src/core_plugins/timelion/bower_components/flot/examples/interacting/index.html
vendored
Normal file
118
src/core_plugins/timelion/bower_components/flot/examples/interacting/index.html
vendored
Normal file
|
@ -0,0 +1,118 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Interactivity</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var sin = [],
|
||||
cos = [];
|
||||
|
||||
for (var i = 0; i < 14; i += 0.5) {
|
||||
sin.push([i, Math.sin(i)]);
|
||||
cos.push([i, Math.cos(i)]);
|
||||
}
|
||||
|
||||
var plot = $.plot("#placeholder", [
|
||||
{ data: sin, label: "sin(x)"},
|
||||
{ data: cos, label: "cos(x)"}
|
||||
], {
|
||||
series: {
|
||||
lines: {
|
||||
show: true
|
||||
},
|
||||
points: {
|
||||
show: true
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
hoverable: true,
|
||||
clickable: true
|
||||
},
|
||||
yaxis: {
|
||||
min: -1.2,
|
||||
max: 1.2
|
||||
}
|
||||
});
|
||||
|
||||
$("<div id='tooltip'></div>").css({
|
||||
position: "absolute",
|
||||
display: "none",
|
||||
border: "1px solid #fdd",
|
||||
padding: "2px",
|
||||
"background-color": "#fee",
|
||||
opacity: 0.80
|
||||
}).appendTo("body");
|
||||
|
||||
$("#placeholder").bind("plothover", function (event, pos, item) {
|
||||
|
||||
if ($("#enablePosition:checked").length > 0) {
|
||||
var str = "(" + pos.x.toFixed(2) + ", " + pos.y.toFixed(2) + ")";
|
||||
$("#hoverdata").text(str);
|
||||
}
|
||||
|
||||
if ($("#enableTooltip:checked").length > 0) {
|
||||
if (item) {
|
||||
var x = item.datapoint[0].toFixed(2),
|
||||
y = item.datapoint[1].toFixed(2);
|
||||
|
||||
$("#tooltip").html(item.series.label + " of " + x + " = " + y)
|
||||
.css({top: item.pageY+5, left: item.pageX+5})
|
||||
.fadeIn(200);
|
||||
} else {
|
||||
$("#tooltip").hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("#placeholder").bind("plotclick", function (event, pos, item) {
|
||||
if (item) {
|
||||
$("#clickdata").text(" - click point " + item.dataIndex + " in " + item.series.label);
|
||||
plot.highlight(item.series, item.datapoint);
|
||||
}
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<h2>Interactivity</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>One of the goals of Flot is to support user interactions. Try pointing and clicking on the points.</p>
|
||||
|
||||
<p>
|
||||
<label><input id="enablePosition" type="checkbox" checked="checked"></input>Show mouse position</label>
|
||||
<span id="hoverdata"></span>
|
||||
<span id="clickdata"></span>
|
||||
</p>
|
||||
|
||||
<p>A tooltip is easy to build with a bit of jQuery code and the data returned from the plot.</p>
|
||||
|
||||
<p><label><input id="enableTooltip" type="checkbox" checked="checked"></input>Enable tooltip</label></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
BIN
src/core_plugins/timelion/bower_components/flot/examples/navigate/arrow-down.gif
vendored
Normal file
BIN
src/core_plugins/timelion/bower_components/flot/examples/navigate/arrow-down.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 916 B |
BIN
src/core_plugins/timelion/bower_components/flot/examples/navigate/arrow-left.gif
vendored
Normal file
BIN
src/core_plugins/timelion/bower_components/flot/examples/navigate/arrow-left.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 891 B |
BIN
src/core_plugins/timelion/bower_components/flot/examples/navigate/arrow-right.gif
vendored
Normal file
BIN
src/core_plugins/timelion/bower_components/flot/examples/navigate/arrow-right.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 897 B |
BIN
src/core_plugins/timelion/bower_components/flot/examples/navigate/arrow-up.gif
vendored
Normal file
BIN
src/core_plugins/timelion/bower_components/flot/examples/navigate/arrow-up.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 916 B |
153
src/core_plugins/timelion/bower_components/flot/examples/navigate/index.html
vendored
Normal file
153
src/core_plugins/timelion/bower_components/flot/examples/navigate/index.html
vendored
Normal file
|
@ -0,0 +1,153 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Navigation</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
|
||||
#placeholder .button {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#placeholder div.button {
|
||||
font-size: smaller;
|
||||
color: #999;
|
||||
background-color: #eee;
|
||||
padding: 2px;
|
||||
}
|
||||
.message {
|
||||
padding-left: 50px;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.navigate.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
// generate data set from a parametric function with a fractal look
|
||||
|
||||
function sumf(f, t, m) {
|
||||
var res = 0;
|
||||
for (var i = 1; i < m; ++i) {
|
||||
res += f(i * i * t) / (i * i);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
var d1 = [];
|
||||
for (var t = 0; t <= 2 * Math.PI; t += 0.01) {
|
||||
d1.push([sumf(Math.cos, t, 10), sumf(Math.sin, t, 10)]);
|
||||
}
|
||||
|
||||
var data = [ d1 ],
|
||||
placeholder = $("#placeholder");
|
||||
|
||||
var plot = $.plot(placeholder, data, {
|
||||
series: {
|
||||
lines: {
|
||||
show: true
|
||||
},
|
||||
shadowSize: 0
|
||||
},
|
||||
xaxis: {
|
||||
zoomRange: [0.1, 10],
|
||||
panRange: [-10, 10]
|
||||
},
|
||||
yaxis: {
|
||||
zoomRange: [0.1, 10],
|
||||
panRange: [-10, 10]
|
||||
},
|
||||
zoom: {
|
||||
interactive: true
|
||||
},
|
||||
pan: {
|
||||
interactive: true
|
||||
}
|
||||
});
|
||||
|
||||
// show pan/zoom messages to illustrate events
|
||||
|
||||
placeholder.bind("plotpan", function (event, plot) {
|
||||
var axes = plot.getAxes();
|
||||
$(".message").html("Panning to x: " + axes.xaxis.min.toFixed(2)
|
||||
+ " – " + axes.xaxis.max.toFixed(2)
|
||||
+ " and y: " + axes.yaxis.min.toFixed(2)
|
||||
+ " – " + axes.yaxis.max.toFixed(2));
|
||||
});
|
||||
|
||||
placeholder.bind("plotzoom", function (event, plot) {
|
||||
var axes = plot.getAxes();
|
||||
$(".message").html("Zooming to x: " + axes.xaxis.min.toFixed(2)
|
||||
+ " – " + axes.xaxis.max.toFixed(2)
|
||||
+ " and y: " + axes.yaxis.min.toFixed(2)
|
||||
+ " – " + axes.yaxis.max.toFixed(2));
|
||||
});
|
||||
|
||||
// add zoom out button
|
||||
|
||||
$("<div class='button' style='right:20px;top:20px'>zoom out</div>")
|
||||
.appendTo(placeholder)
|
||||
.click(function (event) {
|
||||
event.preventDefault();
|
||||
plot.zoomOut();
|
||||
});
|
||||
|
||||
// and add panning buttons
|
||||
|
||||
// little helper for taking the repetitive work out of placing
|
||||
// panning arrows
|
||||
|
||||
function addArrow(dir, right, top, offset) {
|
||||
$("<img class='button' src='arrow-" + dir + ".gif' style='right:" + right + "px;top:" + top + "px'>")
|
||||
.appendTo(placeholder)
|
||||
.click(function (e) {
|
||||
e.preventDefault();
|
||||
plot.pan(offset);
|
||||
});
|
||||
}
|
||||
|
||||
addArrow("left", 55, 60, { left: -100 });
|
||||
addArrow("right", 25, 60, { left: 100 });
|
||||
addArrow("up", 40, 45, { top: -100 });
|
||||
addArrow("down", 40, 75, { top: 100 });
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Navigation</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p class="message"></p>
|
||||
|
||||
<p>With the navigate plugin it is easy to add panning and zooming. Drag to pan, double click to zoom (or use the mouse scrollwheel).</p>
|
||||
|
||||
<p>The plugin fires events (useful for synchronizing several plots) and adds a couple of public methods so you can easily build a little user interface around it, like the little buttons at the top right in the plot.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
79
src/core_plugins/timelion/bower_components/flot/examples/percentiles/index.html
vendored
Normal file
79
src/core_plugins/timelion/bower_components/flot/examples/percentiles/index.html
vendored
Normal file
|
@ -0,0 +1,79 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Percentiles</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.fillbetween.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var males = {"15%": [[2, 88.0], [3, 93.3], [4, 102.0], [5, 108.5], [6, 115.7], [7, 115.6], [8, 124.6], [9, 130.3], [10, 134.3], [11, 141.4], [12, 146.5], [13, 151.7], [14, 159.9], [15, 165.4], [16, 167.8], [17, 168.7], [18, 169.5], [19, 168.0]], "90%": [[2, 96.8], [3, 105.2], [4, 113.9], [5, 120.8], [6, 127.0], [7, 133.1], [8, 139.1], [9, 143.9], [10, 151.3], [11, 161.1], [12, 164.8], [13, 173.5], [14, 179.0], [15, 182.0], [16, 186.9], [17, 185.2], [18, 186.3], [19, 186.6]], "25%": [[2, 89.2], [3, 94.9], [4, 104.4], [5, 111.4], [6, 117.5], [7, 120.2], [8, 127.1], [9, 132.9], [10, 136.8], [11, 144.4], [12, 149.5], [13, 154.1], [14, 163.1], [15, 169.2], [16, 170.4], [17, 171.2], [18, 172.4], [19, 170.8]], "10%": [[2, 86.9], [3, 92.6], [4, 99.9], [5, 107.0], [6, 114.0], [7, 113.5], [8, 123.6], [9, 129.2], [10, 133.0], [11, 140.6], [12, 145.2], [13, 149.7], [14, 158.4], [15, 163.5], [16, 166.9], [17, 167.5], [18, 167.1], [19, 165.3]], "mean": [[2, 91.9], [3, 98.5], [4, 107.1], [5, 114.4], [6, 120.6], [7, 124.7], [8, 131.1], [9, 136.8], [10, 142.3], [11, 150.0], [12, 154.7], [13, 161.9], [14, 168.7], [15, 173.6], [16, 175.9], [17, 176.6], [18, 176.8], [19, 176.7]], "75%": [[2, 94.5], [3, 102.1], [4, 110.8], [5, 117.9], [6, 124.0], [7, 129.3], [8, 134.6], [9, 141.4], [10, 147.0], [11, 156.1], [12, 160.3], [13, 168.3], [14, 174.7], [15, 178.0], [16, 180.2], [17, 181.7], [18, 181.3], [19, 182.5]], "85%": [[2, 96.2], [3, 103.8], [4, 111.8], [5, 119.6], [6, 125.6], [7, 131.5], [8, 138.0], [9, 143.3], [10, 149.3], [11, 159.8], [12, 162.5], [13, 171.3], [14, 177.5], [15, 180.2], [16, 183.8], [17, 183.4], [18, 183.5], [19, 185.5]], "50%": [[2, 91.9], [3, 98.2], [4, 106.8], [5, 114.6], [6, 120.8], [7, 125.2], [8, 130.3], [9, 137.1], [10, 141.5], [11, 149.4], [12, 153.9], [13, 162.2], [14, 169.0], [15, 174.8], [16, 176.0], [17, 176.8], [18, 176.4], [19, 177.4]]};
|
||||
|
||||
var females = {"15%": [[2, 84.8], [3, 93.7], [4, 100.6], [5, 105.8], [6, 113.3], [7, 119.3], [8, 124.3], [9, 131.4], [10, 136.9], [11, 143.8], [12, 149.4], [13, 151.2], [14, 152.3], [15, 155.9], [16, 154.7], [17, 157.0], [18, 156.1], [19, 155.4]], "90%": [[2, 95.6], [3, 104.1], [4, 111.9], [5, 119.6], [6, 127.6], [7, 133.1], [8, 138.7], [9, 147.1], [10, 152.8], [11, 161.3], [12, 166.6], [13, 167.9], [14, 169.3], [15, 170.1], [16, 172.4], [17, 169.2], [18, 171.1], [19, 172.4]], "25%": [[2, 87.2], [3, 95.9], [4, 101.9], [5, 107.4], [6, 114.8], [7, 121.4], [8, 126.8], [9, 133.4], [10, 138.6], [11, 146.2], [12, 152.0], [13, 153.8], [14, 155.7], [15, 158.4], [16, 157.0], [17, 158.5], [18, 158.4], [19, 158.1]], "10%": [[2, 84.0], [3, 91.9], [4, 99.2], [5, 105.2], [6, 112.7], [7, 118.0], [8, 123.3], [9, 130.2], [10, 135.0], [11, 141.1], [12, 148.3], [13, 150.0], [14, 150.7], [15, 154.3], [16, 153.6], [17, 155.6], [18, 154.7], [19, 153.1]], "mean": [[2, 90.2], [3, 98.3], [4, 105.2], [5, 112.2], [6, 119.0], [7, 125.8], [8, 131.3], [9, 138.6], [10, 144.2], [11, 151.3], [12, 156.7], [13, 158.6], [14, 160.5], [15, 162.1], [16, 162.9], [17, 162.2], [18, 163.0], [19, 163.1]], "75%": [[2, 93.2], [3, 101.5], [4, 107.9], [5, 116.6], [6, 122.8], [7, 129.3], [8, 135.2], [9, 143.7], [10, 148.7], [11, 156.9], [12, 160.8], [13, 163.0], [14, 165.0], [15, 165.8], [16, 168.7], [17, 166.2], [18, 167.6], [19, 168.0]], "85%": [[2, 94.5], [3, 102.8], [4, 110.4], [5, 119.0], [6, 125.7], [7, 131.5], [8, 137.9], [9, 146.0], [10, 151.3], [11, 159.9], [12, 164.0], [13, 166.5], [14, 167.5], [15, 168.5], [16, 171.5], [17, 168.0], [18, 169.8], [19, 170.3]], "50%": [[2, 90.2], [3, 98.1], [4, 105.2], [5, 111.7], [6, 118.2], [7, 125.6], [8, 130.5], [9, 138.3], [10, 143.7], [11, 151.4], [12, 156.7], [13, 157.7], [14, 161.0], [15, 162.0], [16, 162.8], [17, 162.2], [18, 162.8], [19, 163.3]]};
|
||||
|
||||
var dataset = [
|
||||
{ label: "Female mean", data: females["mean"], lines: { show: true }, color: "rgb(255,50,50)" },
|
||||
{ id: "f15%", data: females["15%"], lines: { show: true, lineWidth: 0, fill: false }, color: "rgb(255,50,50)" },
|
||||
{ id: "f25%", data: females["25%"], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: "rgb(255,50,50)", fillBetween: "f15%" },
|
||||
{ id: "f50%", data: females["50%"], lines: { show: true, lineWidth: 0.5, fill: 0.4, shadowSize: 0 }, color: "rgb(255,50,50)", fillBetween: "f25%" },
|
||||
{ id: "f75%", data: females["75%"], lines: { show: true, lineWidth: 0, fill: 0.4 }, color: "rgb(255,50,50)", fillBetween: "f50%" },
|
||||
{ id: "f85%", data: females["85%"], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: "rgb(255,50,50)", fillBetween: "f75%" },
|
||||
|
||||
{ label: "Male mean", data: males["mean"], lines: { show: true }, color: "rgb(50,50,255)" },
|
||||
{ id: "m15%", data: males["15%"], lines: { show: true, lineWidth: 0, fill: false }, color: "rgb(50,50,255)" },
|
||||
{ id: "m25%", data: males["25%"], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: "rgb(50,50,255)", fillBetween: "m15%" },
|
||||
{ id: "m50%", data: males["50%"], lines: { show: true, lineWidth: 0.5, fill: 0.4, shadowSize: 0 }, color: "rgb(50,50,255)", fillBetween: "m25%" },
|
||||
{ id: "m75%", data: males["75%"], lines: { show: true, lineWidth: 0, fill: 0.4 }, color: "rgb(50,50,255)", fillBetween: "m50%" },
|
||||
{ id: "m85%", data: males["85%"], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: "rgb(50,50,255)", fillBetween: "m75%" }
|
||||
];
|
||||
|
||||
$.plot($("#placeholder"), dataset, {
|
||||
xaxis: {
|
||||
tickDecimals: 0
|
||||
},
|
||||
yaxis: {
|
||||
tickFormatter: function (v) {
|
||||
return v + " cm";
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
position: "se"
|
||||
}
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Percentiles</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>Height in centimeters of individuals from the US (2003-2006) as function of age in years (source: <a href="http://www.cdc.gov/nchs/data/nhsr/nhsr010.pdf">CDC</a>). The 15%-85%, 25%-75% and 50% percentiles are indicated.</p>
|
||||
|
||||
<p>For each point of a filled curve, you can specify an arbitrary bottom. As this example illustrates, this can be useful for plotting percentiles. If you have the data sets available without appropriate fill bottoms, you can use the fillbetween plugin to compute the data point bottoms automatically.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
122
src/core_plugins/timelion/bower_components/flot/examples/realtime/index.html
vendored
Normal file
122
src/core_plugins/timelion/bower_components/flot/examples/realtime/index.html
vendored
Normal file
|
@ -0,0 +1,122 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Real-time updates</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
// We use an inline data source in the example, usually data would
|
||||
// be fetched from a server
|
||||
|
||||
var data = [],
|
||||
totalPoints = 300;
|
||||
|
||||
function getRandomData() {
|
||||
|
||||
if (data.length > 0)
|
||||
data = data.slice(1);
|
||||
|
||||
// Do a random walk
|
||||
|
||||
while (data.length < totalPoints) {
|
||||
|
||||
var prev = data.length > 0 ? data[data.length - 1] : 50,
|
||||
y = prev + Math.random() * 10 - 5;
|
||||
|
||||
if (y < 0) {
|
||||
y = 0;
|
||||
} else if (y > 100) {
|
||||
y = 100;
|
||||
}
|
||||
|
||||
data.push(y);
|
||||
}
|
||||
|
||||
// Zip the generated y values with the x values
|
||||
|
||||
var res = [];
|
||||
for (var i = 0; i < data.length; ++i) {
|
||||
res.push([i, data[i]])
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
// Set up the control widget
|
||||
|
||||
var updateInterval = 30;
|
||||
$("#updateInterval").val(updateInterval).change(function () {
|
||||
var v = $(this).val();
|
||||
if (v && !isNaN(+v)) {
|
||||
updateInterval = +v;
|
||||
if (updateInterval < 1) {
|
||||
updateInterval = 1;
|
||||
} else if (updateInterval > 2000) {
|
||||
updateInterval = 2000;
|
||||
}
|
||||
$(this).val("" + updateInterval);
|
||||
}
|
||||
});
|
||||
|
||||
var plot = $.plot("#placeholder", [ getRandomData() ], {
|
||||
series: {
|
||||
shadowSize: 0 // Drawing is faster without shadows
|
||||
},
|
||||
yaxis: {
|
||||
min: 0,
|
||||
max: 100
|
||||
},
|
||||
xaxis: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
function update() {
|
||||
|
||||
plot.setData([getRandomData()]);
|
||||
|
||||
// Since the axes don't change, we don't need to call plot.setupGrid()
|
||||
|
||||
plot.draw();
|
||||
setTimeout(update, updateInterval);
|
||||
}
|
||||
|
||||
update();
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Real-time updates</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>You can update a chart periodically to get a real-time effect by using a timer to insert the new data in the plot and redraw it.</p>
|
||||
|
||||
<p>Time between updates: <input id="updateInterval" type="text" value="" style="text-align: right; width:5em"> milliseconds</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
76
src/core_plugins/timelion/bower_components/flot/examples/resize/index.html
vendored
Normal file
76
src/core_plugins/timelion/bower_components/flot/examples/resize/index.html
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Resizing</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<link href="../shared/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../shared/jquery-ui/jquery-ui.min.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.resize.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var d1 = [];
|
||||
for (var i = 0; i < 14; i += 0.5) {
|
||||
d1.push([i, Math.sin(i)]);
|
||||
}
|
||||
|
||||
var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
|
||||
var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
|
||||
|
||||
var placeholder = $("#placeholder");
|
||||
var plot = $.plot(placeholder, [d1, d2, d3]);
|
||||
|
||||
// The plugin includes a jQuery plugin for adding resize events to any
|
||||
// element. Add a callback so we can display the placeholder size.
|
||||
|
||||
placeholder.resize(function () {
|
||||
$(".message").text("Placeholder is now "
|
||||
+ $(this).width() + "x" + $(this).height()
|
||||
+ " pixels");
|
||||
});
|
||||
|
||||
$(".demo-container").resizable({
|
||||
maxWidth: 900,
|
||||
maxHeight: 500,
|
||||
minWidth: 450,
|
||||
minHeight: 250
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Resizing</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p class="message"></p>
|
||||
|
||||
<p>Sometimes it makes more sense to just let the plot take up the available space. In that case, we need to redraw the plot each time the placeholder changes its size. If you include the resize plugin, this is handled automatically.</p>
|
||||
|
||||
<p>Drag the bottom and right sides of the plot to resize it.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
152
src/core_plugins/timelion/bower_components/flot/examples/selection/index.html
vendored
Normal file
152
src/core_plugins/timelion/bower_components/flot/examples/selection/index.html
vendored
Normal file
|
@ -0,0 +1,152 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Selection</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.selection.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
// Shim allowing us to get the state of the check-box on jQuery versions
|
||||
// prior to 1.6, when prop was added. The reason we don't just use attr
|
||||
// is because it doesn't work in jQuery versions 1.9.x and later.
|
||||
|
||||
// TODO: Remove this once Flot's minimum supported jQuery reaches 1.6.
|
||||
if (typeof $.fn.prop != 'function') {
|
||||
$.fn.prop = $.fn.attr;
|
||||
}
|
||||
|
||||
var data = [{
|
||||
label: "United States",
|
||||
data: [[1990, 18.9], [1991, 18.7], [1992, 18.4], [1993, 19.3], [1994, 19.5], [1995, 19.3], [1996, 19.4], [1997, 20.2], [1998, 19.8], [1999, 19.9], [2000, 20.4], [2001, 20.1], [2002, 20.0], [2003, 19.8], [2004, 20.4]]
|
||||
}, {
|
||||
label: "Russia",
|
||||
data: [[1992, 13.4], [1993, 12.2], [1994, 10.6], [1995, 10.2], [1996, 10.1], [1997, 9.7], [1998, 9.5], [1999, 9.7], [2000, 9.9], [2001, 9.9], [2002, 9.9], [2003, 10.3], [2004, 10.5]]
|
||||
}, {
|
||||
label: "United Kingdom",
|
||||
data: [[1990, 10.0], [1991, 11.3], [1992, 9.9], [1993, 9.6], [1994, 9.5], [1995, 9.5], [1996, 9.9], [1997, 9.3], [1998, 9.2], [1999, 9.2], [2000, 9.5], [2001, 9.6], [2002, 9.3], [2003, 9.4], [2004, 9.79]]
|
||||
}, {
|
||||
label: "Germany",
|
||||
data: [[1990, 12.4], [1991, 11.2], [1992, 10.8], [1993, 10.5], [1994, 10.4], [1995, 10.2], [1996, 10.5], [1997, 10.2], [1998, 10.1], [1999, 9.6], [2000, 9.7], [2001, 10.0], [2002, 9.7], [2003, 9.8], [2004, 9.79]]
|
||||
}, {
|
||||
label: "Denmark",
|
||||
data: [[1990, 9.7], [1991, 12.1], [1992, 10.3], [1993, 11.3], [1994, 11.7], [1995, 10.6], [1996, 12.8], [1997, 10.8], [1998, 10.3], [1999, 9.4], [2000, 8.7], [2001, 9.0], [2002, 8.9], [2003, 10.1], [2004, 9.80]]
|
||||
}, {
|
||||
label: "Sweden",
|
||||
data: [[1990, 5.8], [1991, 6.0], [1992, 5.9], [1993, 5.5], [1994, 5.7], [1995, 5.3], [1996, 6.1], [1997, 5.4], [1998, 5.4], [1999, 5.1], [2000, 5.2], [2001, 5.4], [2002, 6.2], [2003, 5.9], [2004, 5.89]]
|
||||
}, {
|
||||
label: "Norway",
|
||||
data: [[1990, 8.3], [1991, 8.3], [1992, 7.8], [1993, 8.3], [1994, 8.4], [1995, 5.9], [1996, 6.4], [1997, 6.7], [1998, 6.9], [1999, 7.6], [2000, 7.4], [2001, 8.1], [2002, 12.5], [2003, 9.9], [2004, 19.0]]
|
||||
}];
|
||||
|
||||
var options = {
|
||||
series: {
|
||||
lines: {
|
||||
show: true
|
||||
},
|
||||
points: {
|
||||
show: true
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
noColumns: 2
|
||||
},
|
||||
xaxis: {
|
||||
tickDecimals: 0
|
||||
},
|
||||
yaxis: {
|
||||
min: 0
|
||||
},
|
||||
selection: {
|
||||
mode: "x"
|
||||
}
|
||||
};
|
||||
|
||||
var placeholder = $("#placeholder");
|
||||
|
||||
placeholder.bind("plotselected", function (event, ranges) {
|
||||
|
||||
$("#selection").text(ranges.xaxis.from.toFixed(1) + " to " + ranges.xaxis.to.toFixed(1));
|
||||
|
||||
var zoom = $("#zoom").prop("checked");
|
||||
|
||||
if (zoom) {
|
||||
$.each(plot.getXAxes(), function(_, axis) {
|
||||
var opts = axis.options;
|
||||
opts.min = ranges.xaxis.from;
|
||||
opts.max = ranges.xaxis.to;
|
||||
});
|
||||
plot.setupGrid();
|
||||
plot.draw();
|
||||
plot.clearSelection();
|
||||
}
|
||||
});
|
||||
|
||||
placeholder.bind("plotunselected", function (event) {
|
||||
$("#selection").text("");
|
||||
});
|
||||
|
||||
var plot = $.plot(placeholder, data, options);
|
||||
|
||||
$("#clearSelection").click(function () {
|
||||
plot.clearSelection();
|
||||
});
|
||||
|
||||
$("#setSelection").click(function () {
|
||||
plot.setSelection({
|
||||
xaxis: {
|
||||
from: 1994,
|
||||
to: 1995
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Selection</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>1000 kg. CO<sub>2</sub> emissions per year per capita for various countries (source: <a href="http://en.wikipedia.org/wiki/List_of_countries_by_carbon_dioxide_emissions_per_capita">Wikipedia</a>).</p>
|
||||
|
||||
<p>Flot supports selections through the selection plugin. You can enable rectangular selection or one-dimensional selection if the user should only be able to select on one axis. Try left-click and drag on the plot above where selection on the x axis is enabled.</p>
|
||||
|
||||
<p>You selected: <span id="selection"></span></p>
|
||||
|
||||
<p>The plot command returns a plot object you can use to control the selection. Click the buttons below.</p>
|
||||
|
||||
<p>
|
||||
<button id="clearSelection">Clear selection</button>
|
||||
<button id="setSelection">Select year 1994</button>
|
||||
</p>
|
||||
|
||||
<p>Selections are really useful for zooming. Just replot the chart with min and max values for the axes set to the values in the "plotselected" event triggered. Enable the checkbox below and select a region again.</p>
|
||||
|
||||
<p><label><input id="zoom" type="checkbox"></input>Zoom to selection.</label></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
150
src/core_plugins/timelion/bower_components/flot/examples/series-errorbars/index.html
vendored
Normal file
150
src/core_plugins/timelion/bower_components/flot/examples/series-errorbars/index.html
vendored
Normal file
|
@ -0,0 +1,150 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Error Bars</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.errorbars.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.navigate.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
function drawArrow(ctx, x, y, radius){
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(x + radius, y + radius);
|
||||
ctx.lineTo(x, y);
|
||||
ctx.lineTo(x - radius, y + radius);
|
||||
ctx.stroke();
|
||||
}
|
||||
|
||||
function drawSemiCircle(ctx, x, y, radius){
|
||||
ctx.beginPath();
|
||||
ctx.arc(x, y, radius, 0, Math.PI, false);
|
||||
ctx.moveTo(x - radius, y);
|
||||
ctx.lineTo(x + radius, y);
|
||||
ctx.stroke();
|
||||
}
|
||||
|
||||
var data1 = [
|
||||
[1,1,.5,.1,.3],
|
||||
[2,2,.3,.5,.2],
|
||||
[3,3,.9,.5,.2],
|
||||
[1.5,-.05,.5,.1,.3],
|
||||
[3.15,1.,.5,.1,.3],
|
||||
[2.5,-1.,.5,.1,.3]
|
||||
];
|
||||
|
||||
var data1_points = {
|
||||
show: true,
|
||||
radius: 5,
|
||||
fillColor: "blue",
|
||||
errorbars: "xy",
|
||||
xerr: {show: true, asymmetric: true, upperCap: "-", lowerCap: "-"},
|
||||
yerr: {show: true, color: "red", upperCap: "-"}
|
||||
};
|
||||
|
||||
var data2 = [
|
||||
[.7,3,.2,.4],
|
||||
[1.5,2.2,.3,.4],
|
||||
[2.3,1,.5,.2]
|
||||
];
|
||||
|
||||
var data2_points = {
|
||||
show: true,
|
||||
radius: 5,
|
||||
errorbars: "y",
|
||||
yerr: {show:true, asymmetric:true, upperCap: drawArrow, lowerCap: drawSemiCircle}
|
||||
};
|
||||
|
||||
var data3 = [
|
||||
[1,2,.4],
|
||||
[2,0.5,.3],
|
||||
[2.7,2,.5]
|
||||
];
|
||||
|
||||
var data3_points = {
|
||||
//do not show points
|
||||
radius: 0,
|
||||
errorbars: "y",
|
||||
yerr: {show:true, upperCap: "-", lowerCap: "-", radius: 5}
|
||||
};
|
||||
|
||||
var data4 = [
|
||||
[1.3, 1],
|
||||
[1.75, 2.5],
|
||||
[2.5, 0.5]
|
||||
];
|
||||
|
||||
var data4_errors = [0.1, 0.4, 0.2];
|
||||
for (var i = 0; i < data4.length; i++) {
|
||||
data4_errors[i] = data4[i].concat(data4_errors[i])
|
||||
}
|
||||
|
||||
var data = [
|
||||
{color: "blue", points: data1_points, data: data1, label: "data1"},
|
||||
{color: "red", points: data2_points, data: data2, label: "data2"},
|
||||
{color: "green", lines: {show: true}, points: data3_points, data: data3, label: "data3"},
|
||||
// bars with errors
|
||||
{color: "orange", bars: {show: true, align: "center", barWidth: 0.25}, data: data4, label: "data4"},
|
||||
{color: "orange", points: data3_points, data: data4_errors}
|
||||
];
|
||||
|
||||
$.plot($("#placeholder"), data , {
|
||||
legend: {
|
||||
position: "sw",
|
||||
show: true
|
||||
},
|
||||
series: {
|
||||
lines: {
|
||||
show: false
|
||||
}
|
||||
},
|
||||
xaxis: {
|
||||
min: 0.6,
|
||||
max: 3.1
|
||||
},
|
||||
yaxis: {
|
||||
min: 0,
|
||||
max: 3.5
|
||||
},
|
||||
zoom: {
|
||||
interactive: true
|
||||
},
|
||||
pan: {
|
||||
interactive: true
|
||||
}
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Error Bars</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>With the errorbars plugin you can plot error bars to show standard deviation and other useful statistical properties.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
818
src/core_plugins/timelion/bower_components/flot/examples/series-pie/index.html
vendored
Normal file
818
src/core_plugins/timelion/bower_components/flot/examples/series-pie/index.html
vendored
Normal file
|
@ -0,0 +1,818 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Pie Charts</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
|
||||
.demo-container {
|
||||
position: relative;
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
#placeholder {
|
||||
width: 550px;
|
||||
}
|
||||
|
||||
#menu {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 625px;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#menu button {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
padding: 3px 0 2px 0;
|
||||
margin-bottom: 4px;
|
||||
background: #eee;
|
||||
border: 1px solid #999;
|
||||
border-radius: 2px;
|
||||
font-size: 16px;
|
||||
-o-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
|
||||
-ms-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
|
||||
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.15);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#description {
|
||||
margin: 15px 10px 20px 10px;
|
||||
}
|
||||
|
||||
#code {
|
||||
display: block;
|
||||
width: 870px;
|
||||
padding: 15px;
|
||||
margin: 10px auto;
|
||||
border: 1px dashed #999;
|
||||
background-color: #f8f8f8;
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
ul {
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
ul li {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
ul.options li {
|
||||
list-style: none;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
ul li i {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.pie.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
// Example Data
|
||||
|
||||
//var data = [
|
||||
// { label: "Series1", data: 10},
|
||||
// { label: "Series2", data: 30},
|
||||
// { label: "Series3", data: 90},
|
||||
// { label: "Series4", data: 70},
|
||||
// { label: "Series5", data: 80},
|
||||
// { label: "Series6", data: 110}
|
||||
//];
|
||||
|
||||
//var data = [
|
||||
// { label: "Series1", data: [[1,10]]},
|
||||
// { label: "Series2", data: [[1,30]]},
|
||||
// { label: "Series3", data: [[1,90]]},
|
||||
// { label: "Series4", data: [[1,70]]},
|
||||
// { label: "Series5", data: [[1,80]]},
|
||||
// { label: "Series6", data: [[1,0]]}
|
||||
//];
|
||||
|
||||
//var data = [
|
||||
// { label: "Series A", data: 0.2063},
|
||||
// { label: "Series B", data: 38888}
|
||||
//];
|
||||
|
||||
// Randomly Generated Data
|
||||
|
||||
var data = [],
|
||||
series = Math.floor(Math.random() * 6) + 3;
|
||||
|
||||
for (var i = 0; i < series; i++) {
|
||||
data[i] = {
|
||||
label: "Series" + (i + 1),
|
||||
data: Math.floor(Math.random() * 100) + 1
|
||||
}
|
||||
}
|
||||
|
||||
var placeholder = $("#placeholder");
|
||||
|
||||
$("#example-1").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Default pie chart");
|
||||
$("#description").text("The default pie chart with no options set.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true",
|
||||
" }",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-2").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Default without legend");
|
||||
$("#description").text("The default pie chart when the legend is disabled. Since the labels would normally be outside the container, the chart is resized to fit.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-3").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Custom Label Formatter");
|
||||
$("#description").text("Added a semi-transparent background to the labels and a custom labelFormatter function.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true,
|
||||
radius: 1,
|
||||
label: {
|
||||
show: true,
|
||||
radius: 1,
|
||||
formatter: labelFormatter,
|
||||
background: {
|
||||
opacity: 0.8
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true,",
|
||||
" radius: 1,",
|
||||
" label: {",
|
||||
" show: true,",
|
||||
" radius: 1,",
|
||||
" formatter: labelFormatter,",
|
||||
" background: {",
|
||||
" opacity: 0.8",
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-4").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Label Radius");
|
||||
$("#description").text("Slightly more transparent label backgrounds and adjusted the radius values to place them within the pie.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true,
|
||||
radius: 1,
|
||||
label: {
|
||||
show: true,
|
||||
radius: 3/4,
|
||||
formatter: labelFormatter,
|
||||
background: {
|
||||
opacity: 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true,",
|
||||
" radius: 1,",
|
||||
" label: {",
|
||||
" show: true,",
|
||||
" radius: 3/4,",
|
||||
" formatter: labelFormatter,",
|
||||
" background: {",
|
||||
" opacity: 0.5",
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-5").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Label Styles #1");
|
||||
$("#description").text("Semi-transparent, black-colored label background.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true,
|
||||
radius: 1,
|
||||
label: {
|
||||
show: true,
|
||||
radius: 3/4,
|
||||
formatter: labelFormatter,
|
||||
background: {
|
||||
opacity: 0.5,
|
||||
color: "#000"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: { ",
|
||||
" show: true,",
|
||||
" radius: 1,",
|
||||
" label: {",
|
||||
" show: true,",
|
||||
" radius: 3/4,",
|
||||
" formatter: labelFormatter,",
|
||||
" background: { ",
|
||||
" opacity: 0.5,",
|
||||
" color: '#000'",
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-6").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Label Styles #2");
|
||||
$("#description").text("Semi-transparent, black-colored label background placed at pie edge.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true,
|
||||
radius: 3/4,
|
||||
label: {
|
||||
show: true,
|
||||
radius: 3/4,
|
||||
formatter: labelFormatter,
|
||||
background: {
|
||||
opacity: 0.5,
|
||||
color: "#000"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true,",
|
||||
" radius: 3/4,",
|
||||
" label: {",
|
||||
" show: true,",
|
||||
" radius: 3/4,",
|
||||
" formatter: labelFormatter,",
|
||||
" background: {",
|
||||
" opacity: 0.5,",
|
||||
" color: '#000'",
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-7").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Hidden Labels");
|
||||
$("#description").text("Labels can be hidden if the slice is less than a given percentage of the pie (10% in this case).");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true,
|
||||
radius: 1,
|
||||
label: {
|
||||
show: true,
|
||||
radius: 2/3,
|
||||
formatter: labelFormatter,
|
||||
threshold: 0.1
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true,",
|
||||
" radius: 1,",
|
||||
" label: {",
|
||||
" show: true,",
|
||||
" radius: 2/3,",
|
||||
" formatter: labelFormatter,",
|
||||
" threshold: 0.1",
|
||||
" }",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-8").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Combined Slice");
|
||||
$("#description").text("Multiple slices less than a given percentage (5% in this case) of the pie can be combined into a single, larger slice.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true,
|
||||
combine: {
|
||||
color: "#999",
|
||||
threshold: 0.05
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true,",
|
||||
" combine: {",
|
||||
" color: '#999',",
|
||||
" threshold: 0.1",
|
||||
" }",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-9").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Rectangular Pie");
|
||||
$("#description").text("The radius can also be set to a specific size (even larger than the container itself).");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true,
|
||||
radius: 500,
|
||||
label: {
|
||||
show: true,
|
||||
formatter: labelFormatter,
|
||||
threshold: 0.1
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true,",
|
||||
" radius: 500,",
|
||||
" label: {",
|
||||
" show: true,",
|
||||
" formatter: labelFormatter,",
|
||||
" threshold: 0.1",
|
||||
" }",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-10").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Tilted Pie");
|
||||
$("#description").text("The pie can be tilted at an angle.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true,
|
||||
radius: 1,
|
||||
tilt: 0.5,
|
||||
label: {
|
||||
show: true,
|
||||
radius: 1,
|
||||
formatter: labelFormatter,
|
||||
background: {
|
||||
opacity: 0.8
|
||||
}
|
||||
},
|
||||
combine: {
|
||||
color: "#999",
|
||||
threshold: 0.1
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true,",
|
||||
" radius: 1,",
|
||||
" tilt: 0.5,",
|
||||
" label: {",
|
||||
" show: true,",
|
||||
" radius: 1,",
|
||||
" formatter: labelFormatter,",
|
||||
" background: {",
|
||||
" opacity: 0.8",
|
||||
" }",
|
||||
" },",
|
||||
" combine: {",
|
||||
" color: '#999',",
|
||||
" threshold: 0.1",
|
||||
" }",
|
||||
" }",
|
||||
" },",
|
||||
" legend: {",
|
||||
" show: false",
|
||||
" }",
|
||||
"});",
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-11").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Donut Hole");
|
||||
$("#description").text("A donut hole can be added.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
innerRadius: 0.5,
|
||||
show: true
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" innerRadius: 0.5,",
|
||||
" show: true",
|
||||
" }",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
});
|
||||
|
||||
$("#example-12").click(function() {
|
||||
|
||||
placeholder.unbind();
|
||||
|
||||
$("#title").text("Interactivity");
|
||||
$("#description").text("The pie can be made interactive with hover and click events.");
|
||||
|
||||
$.plot(placeholder, data, {
|
||||
series: {
|
||||
pie: {
|
||||
show: true
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
hoverable: true,
|
||||
clickable: true
|
||||
}
|
||||
});
|
||||
|
||||
setCode([
|
||||
"$.plot('#placeholder', data, {",
|
||||
" series: {",
|
||||
" pie: {",
|
||||
" show: true",
|
||||
" }",
|
||||
" },",
|
||||
" grid: {",
|
||||
" hoverable: true,",
|
||||
" clickable: true",
|
||||
" }",
|
||||
"});"
|
||||
]);
|
||||
|
||||
placeholder.bind("plothover", function(event, pos, obj) {
|
||||
|
||||
if (!obj) {
|
||||
return;
|
||||
}
|
||||
|
||||
var percent = parseFloat(obj.series.percent).toFixed(2);
|
||||
$("#hover").html("<span style='font-weight:bold; color:" + obj.series.color + "'>" + obj.series.label + " (" + percent + "%)</span>");
|
||||
});
|
||||
|
||||
placeholder.bind("plotclick", function(event, pos, obj) {
|
||||
|
||||
if (!obj) {
|
||||
return;
|
||||
}
|
||||
|
||||
percent = parseFloat(obj.series.percent).toFixed(2);
|
||||
alert("" + obj.series.label + ": " + percent + "%");
|
||||
});
|
||||
});
|
||||
|
||||
// Show the initial default chart
|
||||
|
||||
$("#example-1").click();
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
// A custom label formatter used by several of the plots
|
||||
|
||||
function labelFormatter(label, series) {
|
||||
return "<div style='font-size:8pt; text-align:center; padding:2px; color:white;'>" + label + "<br/>" + Math.round(series.percent) + "%</div>";
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
function setCode(lines) {
|
||||
$("#code").text(lines.join("\n"));
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Pie Charts</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<h3 id="title"></h3>
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
<div id="menu">
|
||||
<button id="example-1">Default Options</button>
|
||||
<button id="example-2">Without Legend</button>
|
||||
<button id="example-3">Label Formatter</button>
|
||||
<button id="example-4">Label Radius</button>
|
||||
<button id="example-5">Label Styles #1</button>
|
||||
<button id="example-6">Label Styles #2</button>
|
||||
<button id="example-7">Hidden Labels</button>
|
||||
<button id="example-8">Combined Slice</button>
|
||||
<button id="example-9">Rectangular Pie</button>
|
||||
<button id="example-10">Tilted Pie</button>
|
||||
<button id="example-11">Donut Hole</button>
|
||||
<button id="example-12">Interactivity</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p id="description"></p>
|
||||
|
||||
<h3>Source Code</h3>
|
||||
<pre><code id="code"></code></pre>
|
||||
|
||||
<br/>
|
||||
|
||||
<h2>Pie Options</h2>
|
||||
|
||||
<ul class="options">
|
||||
<li style="border-bottom: 1px dotted #ccc;"><b>option:</b> <i>default value</i> - Description of option</li>
|
||||
<li><b>show:</b> <i>false</i> - Enable the plugin and draw as a pie.</li>
|
||||
<li><b>radius:</b> <i>'auto'</i> - Sets the radius of the pie. If value is between 0 and 1 (inclusive) then it will use that as a percentage of the available space (size of the container), otherwise it will use the value as a direct pixel length. If set to 'auto', it will be set to 1 if the legend is enabled and 3/4 if not.</li>
|
||||
<li><b>innerRadius:</b> <i>0</i> - Sets the radius of the donut hole. If value is between 0 and 1 (inclusive) then it will use that as a percentage of the radius, otherwise it will use the value as a direct pixel length.</li>
|
||||
<li><b>startAngle:</b> <i>3/2</i> - Factor of PI used for the starting angle (in radians) It can range between 0 and 2 (where 0 and 2 have the same result).</li>
|
||||
<li><b>tilt:</b> <i>1</i> - Percentage of tilt ranging from 0 and 1, where 1 has no change (fully vertical) and 0 is completely flat (fully horizontal -- in which case nothing actually gets drawn).</li>
|
||||
<li><b>shadow:</b> <ul>
|
||||
<li><b>top:</b> <i>5</i> - Vertical distance in pixel of the tilted pie shadow.</li>
|
||||
<li><b>left:</b> <i>15</i> - Horizontal distance in pixel of the tilted pie shadow.</li>
|
||||
<li><b>alpha:</b> <i>0.02</i> - Alpha value of the tilted pie shadow.</li>
|
||||
</ul>
|
||||
<li><b>offset:</b> <ul>
|
||||
<li><b>top:</b> <i>0</i> - Pixel distance to move the pie up and down (relative to the center).</li>
|
||||
<li><b>left:</b> <i>'auto'</i> - Pixel distance to move the pie left and right (relative to the center).</li>
|
||||
</ul>
|
||||
<li><b>stroke:</b> <ul>
|
||||
<li><b>color:</b> <i>'#FFF'</i> - Color of the border of each slice. Hexadecimal color definitions are prefered (other formats may or may not work).</li>
|
||||
<li><b>width:</b> <i>1</i> - Pixel width of the border of each slice.</li>
|
||||
</ul>
|
||||
<li><b>label:</b> <ul>
|
||||
<li><b>show:</b> <i>'auto'</i> - Enable/Disable the labels. This can be set to true, false, or 'auto'. When set to 'auto', it will be set to false if the legend is enabled and true if not.</li>
|
||||
<li><b>radius:</b> <i>1</i> - Sets the radius at which to place the labels. If value is between 0 and 1 (inclusive) then it will use that as a percentage of the available space (size of the container), otherwise it will use the value as a direct pixel length.</li>
|
||||
<li><b>threshold:</b> <i>0</i> - Hides the labels of any pie slice that is smaller than the specified percentage (ranging from 0 to 1) i.e. a value of '0.03' will hide all slices 3% or less of the total.</li>
|
||||
<li><b>formatter:</b> <i>[function]</i> - This function specifies how the positioned labels should be formatted, and is applied after the legend's labelFormatter function. The labels can also still be styled using the class "pieLabel" (i.e. ".pieLabel" or "#graph1 .pieLabel").</li>
|
||||
<li><b>radius:</b> <i>1</i> - Sets the radius at which to place the labels. If value is between 0 and 1 (inclusive) then it will use that as a percentage of the available space (size of the container), otherwise it will use the value as a direct pixel length.</li>
|
||||
<li><b>background:</b> <ul>
|
||||
<li><b>color:</b> <i>null</i> - Backgound color of the positioned labels. If null, the plugin will automatically use the color of the slice.</li>
|
||||
<li><b>opacity:</b> <i>0</i> - Opacity of the background for the positioned labels. Acceptable values range from 0 to 1, where 0 is completely transparent and 1 is completely opaque.</li>
|
||||
</ul>
|
||||
</ul>
|
||||
<li><b>combine:</b> <ul>
|
||||
<li><b>threshold:</b> <i>0</i> - Combines all slices that are smaller than the specified percentage (ranging from 0 to 1) i.e. a value of '0.03' will combine all slices 3% or less into one slice).</li>
|
||||
<li><b>color:</b> <i>null</i> - Backgound color of the positioned labels. If null, the plugin will automatically use the color of the first slice to be combined.</li>
|
||||
<li><b>label:</b> <i>'Other'</i> - Label text for the combined slice.</li>
|
||||
</ul>
|
||||
<li><b>highlight:</b> <ul>
|
||||
<li><b>opacity:</b> <i>0.5</i> - Opacity of the highlight overlay on top of the current pie slice. Currently this just uses a white overlay, but support for changing the color of the overlay will also be added at a later date.
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<h2>Changes/Features</h2>
|
||||
<ul>
|
||||
<li style="list-style: none;"><i>v1.0 - November 20th, 2009 - Brian Medendorp</i></li>
|
||||
<li>The pie plug-in is now part of the Flot repository! This should make it a lot easier to deal with.</li>
|
||||
<li>Added a new option (innerRadius) to add a "donut hole" to the center of the pie, based on comtributions from Anthony Aragues. I was a little reluctant to add this feature because it doesn't work very well with the shadow created for the tilted pie, but figured it was worthwhile for non-tilted pies. Also, excanvas apparently doesn't support compositing, so it will fall back to using the stroke color to fill in the center (but I recommend setting the stroke color to the background color anyway).</li>
|
||||
<li>Changed the lineJoin for the border of the pie slices to use the 'round' option. This should make the center of the pie look better, particularly when there are numerous thin slices.</li>
|
||||
<li>Included a bug fix submitted by btburnett3 to display a slightly smaller slice in the event that the slice is 100% and being rendered with Internet Explorer. I haven't experienced this bug myself, but it doesn't seem to hurt anything so I've included it.</li>
|
||||
<li>The tilt value is now used when calculating the maximum radius of the pie in relation to the height of the container. This should prevent the pie from being smaller than it needed to in some cases, as well as reducing the amount of extra white space generated above and below the pie.</li>
|
||||
<li><b>Hover and Click functionality are now availabe!</b><ul>
|
||||
<li>Thanks to btburnett3 for the original hover functionality and Anthony Aragues for the modification that makes it compatable with excanvas, this was a huge help!</li>
|
||||
<li>Added a new option (highlight opacity) to modify the highlight created when mousing over a slice. Currently this just uses a white overlay, but an option to change the hightlight color will be added when the appropriate functionality becomes available.
|
||||
<li>I had a major setback that required me to practically rebuild the hover/click events from scratch one piece at a time (I discovered that it only worked with a single pie on a page at a time), but the end result ended up being virtually identical to the original, so I'm not quite sure what exactly made it work.</li>
|
||||
<li><span style="color: red;">Warning:</span> There are some minor issues with using this functionality in conjuction with some of the other more advanced features (tilt and donut). When using a donut hole, the inner portion still triggers the events even though that portion of the pie is no longer visible. When tilted, the interactive portions still use the original, untilted version of the pie when determining mouse position (this is because the isPointInPath function apparently doesn't work with transformations), however hover and click both work this way, so the appropriate slice is still highlighted when clicking, and it isn't as noticable of a problem.</li>
|
||||
</ul></li>
|
||||
<li>Included a bug fix submitted by Xavi Ivars to fix array issues when other javascript libraries are included in addition to jQuery</li>
|
||||
<br/>
|
||||
<li style="list-style: none;"><i>v0.4 - July 1st, 2009 - Brian Medendorp</i></li>
|
||||
<li>Each series will now be shown in the legend, even if it's value is zero. The series will not get a positioned label because it will overlap with the other labels present and often makes them unreadable.</li>
|
||||
<li>Data can now be passed in using the standard Flot method using an array of datapoints, the pie plugin will simply use the first y-value that it finds for each series in this case. The plugin uses this datastructure internally, but you can still use the old method of passing in a single numerical value for each series (the plugin will convert it as necessary). This should make it easier to transition from other types of graphs (such as a stacked bar graph) to a pie.</li>
|
||||
<li>The pie can now be tilted at an angle with a new "tilt" option. Acceptable values range from 0-1, where 1 has no change (fully vertical) and 0 is completely flat (fully horizontal -- in which case nothing actually gets drawn). If the plugin determines that it will fit within the canvas, a drop shadow will be drawn under the tilted pie (this also requires a tilt value of 0.8 or less).</li>
|
||||
<br/>
|
||||
<li style="list-style: none;"><i>v0.3.2 - June 25th, 2009 - Brian Medendorp</i></li>
|
||||
<li>Fixed a bug that was causing the pie to be shifted too far left or right when the legend is showing in some cases.</li>
|
||||
<br/>
|
||||
<li style="list-style: none;"><i>v0.3.1 - June 24th, 2009 - Brian Medendorp</i></li>
|
||||
<li>Fixed a bug that was causing nothing to be drawn and generating a javascript error if any of the data values were set to zero.</li>
|
||||
<br/>
|
||||
<li style="list-style: none;"><i>v0.3 - June 23rd, 2009 - Brian Medendorp</i></li>
|
||||
<li>The legend now works without any modifications! Because of changes made to flot and the plugin system (thanks Ole Laursen!) I was able to simplify a number of things and am now able to use the legend without the direct access hack that was required in the previous version.</li>
|
||||
<br/>
|
||||
<li style="list-style: none;"><i>v0.2 - June 22nd, 2009 - Brian Medendorp</i></li>
|
||||
<li>The legend now works but only if you make the necessary changes to jquery.flot.js. Because of this, I changed the default values for pie.radius and pie.label.show to new 'auto' settings that change the default behavior of the size and labels depending on whether the legend functionality is available or not.</li>
|
||||
<br/>
|
||||
<li style="list-style: none;"><i>v0.1 - June 18th, 2009 - Brian Medendorp</i></li>
|
||||
<li>Rewrote the entire pie code into a flot plugin (since that is now an option), so it should be much easier to use and the code is cleaned up a bit. However, the (standard flot) legend is no longer available because the only way to prevent the grid lines from being displayed also prevents the legend from being displayed. Hopefully this can be fixed at a later date.</li>
|
||||
<li>Restructured and combined some of the options. It should be much easier to deal with now.</li>
|
||||
<li>Added the ability to change the starting point of the pie (still defaults to the top).</li>
|
||||
<li>Modified the default options to show the labels to compensate for the lack of a legend.</li>
|
||||
<li>Modified this page to use a random dataset. <span style="color: red">Note: you may need to refresh the page to see the effects of some of the examples.</span></li>
|
||||
<br/>
|
||||
<li style="list-style: none;"><i>May 21st, 2009 - Brian Medendorp</i></li>
|
||||
<li>Merged original pie modifications by Sergey Nosenko into the latest SVN version <i>(as of May 15th, 2009)</i> so that it will work with ie8.</li>
|
||||
<li>Pie graph will now be centered in the canvas unless moved because of the legend or manually via the options. Additionally it prevents the pie from being moved beyond the edge of the canvas.</li>
|
||||
<li>Modified the code related to the labelFormatter option to apply flot's legend labelFormatter first. This is so that the labels will be consistent, but still provide extra formatting for the positioned labels (such as adding the percentage value).</li>
|
||||
<li>Positioned labels now have their backgrounds applied as a seperate element (much like the legend background) so that the opacity value can be set independently from the label itself (foreground). Additionally, the background color defaults to that of the matching slice.</li>
|
||||
<li>As long as the labelOffset and radiusLimit are not set to hard values, the pie will be shrunk if the labels will extend outside the edge of the canvas</li>
|
||||
<li>Added new options "radiusLimitFactor" and "radiusLimit" which limits how large the (visual) radius of the pie is in relation to the full radius (as calculated from the canvas dimensions) or a hard-pixel value (respectively). This allows for pushing the labels "outside" the pie.</li>
|
||||
<li>Added a new option "labelHidePercent" that does not show the positioned labels of slices smaller than the specified percentage. This is to help prevent a bunch of overlapping labels from small slices.</li>
|
||||
<li>Added a new option "sliceCombinePercent" that combines all slices smaller than the specified percentage into one larger slice. This is to help make the pie more attractive when there are a number of tiny slices. The options "sliceCombineColor" and "sliceCombineLabel" have also been added to change the color and name of the new slice if desired.</li>
|
||||
<li>Tested in Firefox (3.0.10, 3.5b4), Internet Explorer (6.0.2900, 7.0.5730, 8.0.6001), Chrome (1.0.154), Opera (9.64), and Safari (3.1.1, 4 beta 5528.16).
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
121
src/core_plugins/timelion/bower_components/flot/examples/series-toggle/index.html
vendored
Normal file
121
src/core_plugins/timelion/bower_components/flot/examples/series-toggle/index.html
vendored
Normal file
|
@ -0,0 +1,121 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Toggling Series</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var datasets = {
|
||||
"usa": {
|
||||
label: "USA",
|
||||
data: [[1988, 483994], [1989, 479060], [1990, 457648], [1991, 401949], [1992, 424705], [1993, 402375], [1994, 377867], [1995, 357382], [1996, 337946], [1997, 336185], [1998, 328611], [1999, 329421], [2000, 342172], [2001, 344932], [2002, 387303], [2003, 440813], [2004, 480451], [2005, 504638], [2006, 528692]]
|
||||
},
|
||||
"russia": {
|
||||
label: "Russia",
|
||||
data: [[1988, 218000], [1989, 203000], [1990, 171000], [1992, 42500], [1993, 37600], [1994, 36600], [1995, 21700], [1996, 19200], [1997, 21300], [1998, 13600], [1999, 14000], [2000, 19100], [2001, 21300], [2002, 23600], [2003, 25100], [2004, 26100], [2005, 31100], [2006, 34700]]
|
||||
},
|
||||
"uk": {
|
||||
label: "UK",
|
||||
data: [[1988, 62982], [1989, 62027], [1990, 60696], [1991, 62348], [1992, 58560], [1993, 56393], [1994, 54579], [1995, 50818], [1996, 50554], [1997, 48276], [1998, 47691], [1999, 47529], [2000, 47778], [2001, 48760], [2002, 50949], [2003, 57452], [2004, 60234], [2005, 60076], [2006, 59213]]
|
||||
},
|
||||
"germany": {
|
||||
label: "Germany",
|
||||
data: [[1988, 55627], [1989, 55475], [1990, 58464], [1991, 55134], [1992, 52436], [1993, 47139], [1994, 43962], [1995, 43238], [1996, 42395], [1997, 40854], [1998, 40993], [1999, 41822], [2000, 41147], [2001, 40474], [2002, 40604], [2003, 40044], [2004, 38816], [2005, 38060], [2006, 36984]]
|
||||
},
|
||||
"denmark": {
|
||||
label: "Denmark",
|
||||
data: [[1988, 3813], [1989, 3719], [1990, 3722], [1991, 3789], [1992, 3720], [1993, 3730], [1994, 3636], [1995, 3598], [1996, 3610], [1997, 3655], [1998, 3695], [1999, 3673], [2000, 3553], [2001, 3774], [2002, 3728], [2003, 3618], [2004, 3638], [2005, 3467], [2006, 3770]]
|
||||
},
|
||||
"sweden": {
|
||||
label: "Sweden",
|
||||
data: [[1988, 6402], [1989, 6474], [1990, 6605], [1991, 6209], [1992, 6035], [1993, 6020], [1994, 6000], [1995, 6018], [1996, 3958], [1997, 5780], [1998, 5954], [1999, 6178], [2000, 6411], [2001, 5993], [2002, 5833], [2003, 5791], [2004, 5450], [2005, 5521], [2006, 5271]]
|
||||
},
|
||||
"norway": {
|
||||
label: "Norway",
|
||||
data: [[1988, 4382], [1989, 4498], [1990, 4535], [1991, 4398], [1992, 4766], [1993, 4441], [1994, 4670], [1995, 4217], [1996, 4275], [1997, 4203], [1998, 4482], [1999, 4506], [2000, 4358], [2001, 4385], [2002, 5269], [2003, 5066], [2004, 5194], [2005, 4887], [2006, 4891]]
|
||||
}
|
||||
};
|
||||
|
||||
// hard-code color indices to prevent them from shifting as
|
||||
// countries are turned on/off
|
||||
|
||||
var i = 0;
|
||||
$.each(datasets, function(key, val) {
|
||||
val.color = i;
|
||||
++i;
|
||||
});
|
||||
|
||||
// insert checkboxes
|
||||
var choiceContainer = $("#choices");
|
||||
$.each(datasets, function(key, val) {
|
||||
choiceContainer.append("<br/><input type='checkbox' name='" + key +
|
||||
"' checked='checked' id='id" + key + "'></input>" +
|
||||
"<label for='id" + key + "'>"
|
||||
+ val.label + "</label>");
|
||||
});
|
||||
|
||||
choiceContainer.find("input").click(plotAccordingToChoices);
|
||||
|
||||
function plotAccordingToChoices() {
|
||||
|
||||
var data = [];
|
||||
|
||||
choiceContainer.find("input:checked").each(function () {
|
||||
var key = $(this).attr("name");
|
||||
if (key && datasets[key]) {
|
||||
data.push(datasets[key]);
|
||||
}
|
||||
});
|
||||
|
||||
if (data.length > 0) {
|
||||
$.plot("#placeholder", data, {
|
||||
yaxis: {
|
||||
min: 0
|
||||
},
|
||||
xaxis: {
|
||||
tickDecimals: 0
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
plotAccordingToChoices();
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Toggling Series</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder" style="float:left; width:675px;"></div>
|
||||
<p id="choices" style="float:right; width:135px;"></p>
|
||||
</div>
|
||||
|
||||
<p>This example shows military budgets for various countries in constant (2005) million US dollars (source: <a href="http://www.sipri.org/">SIPRI</a>).</p>
|
||||
|
||||
<p>Since all data is available client-side, it's pretty easy to make the plot interactive. Try turning countries on and off with the checkboxes next to the plot.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
90
src/core_plugins/timelion/bower_components/flot/examples/series-types/index.html
vendored
Normal file
90
src/core_plugins/timelion/bower_components/flot/examples/series-types/index.html
vendored
Normal file
|
@ -0,0 +1,90 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Series Types</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var d1 = [];
|
||||
for (var i = 0; i < 14; i += 0.5) {
|
||||
d1.push([i, Math.sin(i)]);
|
||||
}
|
||||
|
||||
var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
|
||||
|
||||
var d3 = [];
|
||||
for (var i = 0; i < 14; i += 0.5) {
|
||||
d3.push([i, Math.cos(i)]);
|
||||
}
|
||||
|
||||
var d4 = [];
|
||||
for (var i = 0; i < 14; i += 0.1) {
|
||||
d4.push([i, Math.sqrt(i * 10)]);
|
||||
}
|
||||
|
||||
var d5 = [];
|
||||
for (var i = 0; i < 14; i += 0.5) {
|
||||
d5.push([i, Math.sqrt(i)]);
|
||||
}
|
||||
|
||||
var d6 = [];
|
||||
for (var i = 0; i < 14; i += 0.5 + Math.random()) {
|
||||
d6.push([i, Math.sqrt(2*i + Math.sin(i) + 5)]);
|
||||
}
|
||||
|
||||
$.plot("#placeholder", [{
|
||||
data: d1,
|
||||
lines: { show: true, fill: true }
|
||||
}, {
|
||||
data: d2,
|
||||
bars: { show: true }
|
||||
}, {
|
||||
data: d3,
|
||||
points: { show: true }
|
||||
}, {
|
||||
data: d4,
|
||||
lines: { show: true }
|
||||
}, {
|
||||
data: d5,
|
||||
lines: { show: true },
|
||||
points: { show: true }
|
||||
}, {
|
||||
data: d6,
|
||||
lines: { show: true, steps: true }
|
||||
}]);
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Series Types</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>Flot supports lines, points, filled areas, bars and any combinations of these, in the same plot and even on the same data series.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
6
src/core_plugins/timelion/bower_components/flot/examples/shared/jquery-ui/jquery-ui.min.css
vendored
Normal file
6
src/core_plugins/timelion/bower_components/flot/examples/shared/jquery-ui/jquery-ui.min.css
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
/*! jQuery UI - v1.10.0 - 2013-01-26
|
||||
* http://jqueryui.com
|
||||
* Includes: jquery.ui.core.css, jquery.ui.resizable.css
|
||||
* Copyright (c) 2013 jQuery Foundation and other contributors Licensed MIT */
|
||||
|
||||
.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}
|
107
src/core_plugins/timelion/bower_components/flot/examples/stacking/index.html
vendored
Normal file
107
src/core_plugins/timelion/bower_components/flot/examples/stacking/index.html
vendored
Normal file
|
@ -0,0 +1,107 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Stacking</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.stack.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var d1 = [];
|
||||
for (var i = 0; i <= 10; i += 1) {
|
||||
d1.push([i, parseInt(Math.random() * 30)]);
|
||||
}
|
||||
|
||||
var d2 = [];
|
||||
for (var i = 0; i <= 10; i += 1) {
|
||||
d2.push([i, parseInt(Math.random() * 30)]);
|
||||
}
|
||||
|
||||
var d3 = [];
|
||||
for (var i = 0; i <= 10; i += 1) {
|
||||
d3.push([i, parseInt(Math.random() * 30)]);
|
||||
}
|
||||
|
||||
var stack = 0,
|
||||
bars = true,
|
||||
lines = false,
|
||||
steps = false;
|
||||
|
||||
function plotWithOptions() {
|
||||
$.plot("#placeholder", [ d1, d2, d3 ], {
|
||||
series: {
|
||||
stack: stack,
|
||||
lines: {
|
||||
show: lines,
|
||||
fill: true,
|
||||
steps: steps
|
||||
},
|
||||
bars: {
|
||||
show: bars,
|
||||
barWidth: 0.6
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
plotWithOptions();
|
||||
|
||||
$(".stackControls button").click(function (e) {
|
||||
e.preventDefault();
|
||||
stack = $(this).text() == "With stacking" ? true : null;
|
||||
plotWithOptions();
|
||||
});
|
||||
|
||||
$(".graphControls button").click(function (e) {
|
||||
e.preventDefault();
|
||||
bars = $(this).text().indexOf("Bars") != -1;
|
||||
lines = $(this).text().indexOf("Lines") != -1;
|
||||
steps = $(this).text().indexOf("steps") != -1;
|
||||
plotWithOptions();
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Stacking</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>With the stack plugin, you can have Flot stack the series. This is useful if you wish to display both a total and the constituents it is made of. The only requirement is that you provide the input sorted on x.</p>
|
||||
|
||||
<p class="stackControls">
|
||||
<button>With stacking</button>
|
||||
<button>Without stacking</button>
|
||||
</p>
|
||||
|
||||
<p class="graphControls">
|
||||
<button>Bars</button>
|
||||
<button>Lines</button>
|
||||
<button>Lines with steps</button>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
76
src/core_plugins/timelion/bower_components/flot/examples/symbols/index.html
vendored
Normal file
76
src/core_plugins/timelion/bower_components/flot/examples/symbols/index.html
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Symbols</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.symbol.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
function generate(offset, amplitude) {
|
||||
|
||||
var res = [];
|
||||
var start = 0, end = 10;
|
||||
|
||||
for (var i = 0; i <= 50; ++i) {
|
||||
var x = start + i / 50 * (end - start);
|
||||
res.push([x, amplitude * Math.sin(x + offset)]);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
var data = [
|
||||
{ data: generate(2, 1.8), points: { symbol: "circle" } },
|
||||
{ data: generate(3, 1.5), points: { symbol: "square" } },
|
||||
{ data: generate(4, 0.9), points: { symbol: "diamond" } },
|
||||
{ data: generate(6, 1.4), points: { symbol: "triangle" } },
|
||||
{ data: generate(7, 1.1), points: { symbol: "cross" } }
|
||||
];
|
||||
|
||||
$.plot("#placeholder", data, {
|
||||
series: {
|
||||
points: {
|
||||
show: true,
|
||||
radius: 3
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
hoverable: true
|
||||
}
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Symbols</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>Points can be marked in several ways, with circles being the built-in default. For other point types, you can define a callback function to draw the symbol. Some common symbols are available in the symbol plugin.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
76
src/core_plugins/timelion/bower_components/flot/examples/threshold/index.html
vendored
Normal file
76
src/core_plugins/timelion/bower_components/flot/examples/threshold/index.html
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Thresholds</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.threshold.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var d1 = [];
|
||||
for (var i = 0; i <= 60; i += 1) {
|
||||
d1.push([i, parseInt(Math.random() * 30 - 10)]);
|
||||
}
|
||||
|
||||
function plotWithOptions(t) {
|
||||
$.plot("#placeholder", [{
|
||||
data: d1,
|
||||
color: "rgb(30, 180, 20)",
|
||||
threshold: {
|
||||
below: t,
|
||||
color: "rgb(200, 20, 30)"
|
||||
},
|
||||
lines: {
|
||||
steps: true
|
||||
}
|
||||
}]);
|
||||
}
|
||||
|
||||
plotWithOptions(0);
|
||||
|
||||
$(".controls button").click(function (e) {
|
||||
e.preventDefault();
|
||||
var t = parseFloat($(this).text().replace("Threshold at ", ""));
|
||||
plotWithOptions(t);
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Thresholds</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>With the threshold plugin, you can apply a specific color to the part of a data series below a threshold. This is can be useful for highlighting negative values, e.g. when displaying net results or what's in stock.</p>
|
||||
|
||||
<p class="controls">
|
||||
<button>Threshold at 5</button>
|
||||
<button>Threshold at 0</button>
|
||||
<button>Threshold at -2.5</button>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
135
src/core_plugins/timelion/bower_components/flot/examples/tracking/index.html
vendored
Normal file
135
src/core_plugins/timelion/bower_components/flot/examples/tracking/index.html
vendored
Normal file
|
@ -0,0 +1,135 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Flot Examples: Tracking</title>
|
||||
<link href="../examples.css" rel="stylesheet" type="text/css">
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../jquery.flot.crosshair.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
var sin = [], cos = [];
|
||||
for (var i = 0; i < 14; i += 0.1) {
|
||||
sin.push([i, Math.sin(i)]);
|
||||
cos.push([i, Math.cos(i)]);
|
||||
}
|
||||
|
||||
plot = $.plot("#placeholder", [
|
||||
{ data: sin, label: "sin(x) = -0.00"},
|
||||
{ data: cos, label: "cos(x) = -0.00" }
|
||||
], {
|
||||
series: {
|
||||
lines: {
|
||||
show: true
|
||||
}
|
||||
},
|
||||
crosshair: {
|
||||
mode: "x"
|
||||
},
|
||||
grid: {
|
||||
hoverable: true,
|
||||
autoHighlight: false
|
||||
},
|
||||
yaxis: {
|
||||
min: -1.2,
|
||||
max: 1.2
|
||||
}
|
||||
});
|
||||
|
||||
var legends = $("#placeholder .legendLabel");
|
||||
|
||||
legends.each(function () {
|
||||
// fix the widths so they don't jump around
|
||||
$(this).css('width', $(this).width());
|
||||
});
|
||||
|
||||
var updateLegendTimeout = null;
|
||||
var latestPosition = null;
|
||||
|
||||
function updateLegend() {
|
||||
|
||||
updateLegendTimeout = null;
|
||||
|
||||
var pos = latestPosition;
|
||||
|
||||
var axes = plot.getAxes();
|
||||
if (pos.x < axes.xaxis.min || pos.x > axes.xaxis.max ||
|
||||
pos.y < axes.yaxis.min || pos.y > axes.yaxis.max) {
|
||||
return;
|
||||
}
|
||||
|
||||
var i, j, dataset = plot.getData();
|
||||
for (i = 0; i < dataset.length; ++i) {
|
||||
|
||||
var series = dataset[i];
|
||||
|
||||
// Find the nearest points, x-wise
|
||||
|
||||
for (j = 0; j < series.data.length; ++j) {
|
||||
if (series.data[j][0] > pos.x) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Now Interpolate
|
||||
|
||||
var y,
|
||||
p1 = series.data[j - 1],
|
||||
p2 = series.data[j];
|
||||
|
||||
if (p1 == null) {
|
||||
y = p2[1];
|
||||
} else if (p2 == null) {
|
||||
y = p1[1];
|
||||
} else {
|
||||
y = p1[1] + (p2[1] - p1[1]) * (pos.x - p1[0]) / (p2[0] - p1[0]);
|
||||
}
|
||||
|
||||
legends.eq(i).text(series.label.replace(/=.*/, "= " + y.toFixed(2)));
|
||||
}
|
||||
}
|
||||
|
||||
$("#placeholder").bind("plothover", function (event, pos, item) {
|
||||
latestPosition = pos;
|
||||
if (!updateLegendTimeout) {
|
||||
updateLegendTimeout = setTimeout(updateLegend, 50);
|
||||
}
|
||||
});
|
||||
|
||||
// Add the Flot version string to the footer
|
||||
|
||||
$("#footer").prepend("Flot " + $.plot.version + " – ");
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<h2>Tracking</h2>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="demo-container">
|
||||
<div id="placeholder" class="demo-placeholder"></div>
|
||||
</div>
|
||||
|
||||
<p>You can add crosshairs that'll track the mouse position, either on both axes or as here on only one.</p>
|
||||
|
||||
<p>If you combine it with listening on hover events, you can use it to track the intersection on the curves by interpolating the data points (look at the legend).</p>
|
||||
|
||||
<p id="hoverdata"></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © 2007 - 2014 IOLA and Ole Laursen
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue