Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e7ef33b67 | ||
|
|
a475e77b96 | ||
|
|
33e7001c11 | ||
|
|
34cf3462c6 | ||
|
|
f1c41e984c | ||
|
|
b06c5dffc0 | ||
|
|
e0891296af | ||
|
|
6885311a1c | ||
|
|
f9d71c166a | ||
|
|
742e80d713 | ||
|
|
eb6f149f8b | ||
|
|
d4d297862e | ||
|
|
06cb92bbb8 | ||
|
|
5a758213c6 | ||
|
|
20691c9aae | ||
|
|
624be3450d | ||
|
|
63e36b1656 | ||
|
|
433a059bcf | ||
|
|
1862c5ac17 | ||
|
|
6665b7e18a | ||
|
|
4994f2f956 | ||
|
|
8d2039bf37 | ||
|
|
12492216d6 | ||
|
|
51623fdc72 | ||
|
|
27b674640b | ||
|
|
803504befd | ||
|
|
570fe11341 | ||
|
|
0537671450 | ||
|
|
089f42d940 | ||
|
|
2158753c5e | ||
|
|
dee408e7a3 | ||
|
|
c37d116550 | ||
|
|
a1a06ea78a | ||
|
|
f813f4cea7 | ||
|
|
3ffe5554f3 | ||
|
|
e1abad408e | ||
|
|
188d912653 | ||
|
|
8d917d0c1e | ||
|
|
f6973a81b8 | ||
|
|
f13adb369b | ||
|
|
cb5d353b36 | ||
|
|
e5249b8852 | ||
|
|
8dde6da21a | ||
|
|
3c3931b2c0 | ||
|
|
77ab254a5e | ||
|
|
12b974a2bc | ||
|
|
cc4b908afd | ||
|
|
cda8fdfe8d | ||
|
|
ec8f8e386a | ||
|
|
76dc89b2dc | ||
|
|
ca2fcb582a | ||
|
|
54539cb35f | ||
|
|
8e12d35da9 | ||
|
|
34f65b1455 | ||
|
|
e783d32efa | ||
|
|
a51f237291 | ||
|
|
46ba4be810 | ||
|
|
7ce802f3ef |
@@ -0,0 +1,46 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## v0.2.0
|
||||||
|
|
||||||
|
- Migrate code base to typescript
|
||||||
|
- Fixes to work in 6.3.0+ grafana
|
||||||
|
|
||||||
|
## v0.1.1
|
||||||
|
|
||||||
|
- Fix for annotations in grafana 5.x before 5.4
|
||||||
|
|
||||||
|
## v0.1.0
|
||||||
|
|
||||||
|
- Tested with Grafana 6.0.0
|
||||||
|
- Tested with InfluxDB and Mysql datasources
|
||||||
|
- Add initial support for display annotations
|
||||||
|
- Add example for k8s statuses (thanks, @vrutkovs)
|
||||||
|
- Fix hanging on big values
|
||||||
|
- Fix horizontal spacing = 0
|
||||||
|
- Fix for "Object doesn't support property or method 'remove'"
|
||||||
|
- Fix card width for targets with different datapoints count
|
||||||
|
|
||||||
|
## v0.0.4
|
||||||
|
|
||||||
|
- Fix display of multivalues buckets as an empty cell
|
||||||
|
|
||||||
|
## v0.0.3
|
||||||
|
|
||||||
|
- Add solarized preset
|
||||||
|
- Reorganize statuses editor for discrete mode
|
||||||
|
- Separate options for vertical and horizontal spacing for cards
|
||||||
|
- Add simple sort options for Y axis
|
||||||
|
- Fix display null values as zero
|
||||||
|
|
||||||
|
## v0.0.2
|
||||||
|
|
||||||
|
- Install with GF_INSTALL_PLUGINS
|
||||||
|
- Fix legend overlap
|
||||||
|
- Fix colors for dark theme
|
||||||
|
- Fix panel rendering timeout error
|
||||||
|
|
||||||
|
|
||||||
|
## v0.0.1
|
||||||
|
|
||||||
|
- First public release
|
||||||
|
|
||||||
@@ -1,10 +1,20 @@
|
|||||||
|
'use strict';
|
||||||
module.exports = (grunt) => {
|
module.exports = (grunt) => {
|
||||||
require('load-grunt-tasks')(grunt);
|
require('load-grunt-tasks')(grunt);
|
||||||
|
|
||||||
grunt.loadNpmTasks('grunt-execute');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
|
grunt.loadNpmTasks('grunt-notify');
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
notify: {
|
||||||
|
watch: {
|
||||||
|
options: {
|
||||||
|
message: 'grunt watch Complete',
|
||||||
|
title: 'flant-statusmap-panel rebuilded',
|
||||||
|
duration: 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
clean: ['dist'],
|
clean: ['dist'],
|
||||||
|
|
||||||
@@ -12,12 +22,12 @@ module.exports = (grunt) => {
|
|||||||
src_to_dist: {
|
src_to_dist: {
|
||||||
cwd: 'src',
|
cwd: 'src',
|
||||||
expand: true,
|
expand: true,
|
||||||
src: ['**/*', '!**/*.js', '!**/*.scss'],
|
src: ['**/*', '!**/*.js', '!**/*.ts', '!**/*.scss'],
|
||||||
dest: 'dist'
|
dest: 'dist'
|
||||||
},
|
},
|
||||||
pluginDef: {
|
root_to_dist: {
|
||||||
expand: true,
|
expand: true,
|
||||||
src: ['plugin.json', 'README.md'],
|
src: ['plugin.json', 'README.md', 'CHANGELOG.md'],
|
||||||
dest: 'dist'
|
dest: 'dist'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -25,7 +35,7 @@ module.exports = (grunt) => {
|
|||||||
watch: {
|
watch: {
|
||||||
rebuild_all: {
|
rebuild_all: {
|
||||||
files: ['src/**/*', 'plugin.json'],
|
files: ['src/**/*', 'plugin.json'],
|
||||||
tasks: ['default'],
|
tasks: ['default', 'notify:watch'],
|
||||||
options: {
|
options: {
|
||||||
spawn: false,
|
spawn: false,
|
||||||
livereload: true
|
livereload: true
|
||||||
@@ -36,14 +46,23 @@ module.exports = (grunt) => {
|
|||||||
babel: {
|
babel: {
|
||||||
options: {
|
options: {
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
presets: ['es2015'],
|
presets: ['@babel/preset-env', '@babel/typescript'],
|
||||||
plugins: ['transform-es2015-modules-systemjs', 'transform-es2015-for-of', 'transform-class-properties', 'transform-object-rest-spread'],
|
plugins: ['angularjs-annotate', '@babel/plugin-transform-modules-systemjs', '@babel/plugin-transform-for-of', '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread'],
|
||||||
|
},
|
||||||
|
d3lib: {
|
||||||
|
files: [{
|
||||||
|
cwd: 'src',
|
||||||
|
expand: true,
|
||||||
|
src: ['libs/**/*.js'],
|
||||||
|
dest: 'dist',
|
||||||
|
ext: '.js'
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
dist: {
|
dist: {
|
||||||
files: [{
|
files: [{
|
||||||
cwd: 'src',
|
cwd: 'src',
|
||||||
expand: true,
|
expand: true,
|
||||||
src: ['*.js', '**/*.js'],
|
src: ['*.ts', '**/*.ts'],
|
||||||
dest: 'dist',
|
dest: 'dist',
|
||||||
ext: '.js'
|
ext: '.js'
|
||||||
}]
|
}]
|
||||||
@@ -61,7 +80,7 @@ module.exports = (grunt) => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('default', ['clean', 'copy:src_to_dist', 'copy:pluginDef', 'babel', 'sass']);
|
grunt.registerTask('default', ['clean', 'copy:src_to_dist', 'copy:root_to_dist', 'babel', 'sass']);
|
||||||
// grunt.registerTask('clean', ['clean']);
|
// grunt.registerTask('clean', ['clean']);
|
||||||
// grunt.registerTask('watch', ['watch']);
|
// grunt.registerTask('watch', ['watch']);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
[](https://github.com/flant/grafana-statusmap/releases/latest)
|
||||||
|
[](https://t.me/statusmap_ru)
|
||||||
|
[](https://cloud-native.slack.com/messages/CHGSGTAHY)
|
||||||
|
|
||||||
# Statusmap panel for Grafana
|
# Statusmap panel for Grafana
|
||||||
|
|
||||||

|

|
||||||
@@ -13,10 +17,18 @@
|
|||||||
* Increasing rows/buckets' interval for better visual representation
|
* Increasing rows/buckets' interval for better visual representation
|
||||||
* Representing null values as empty bucket or zero value
|
* Representing null values as empty bucket or zero value
|
||||||
|
|
||||||
|
:calendar: New features are planned in [#62](https://github.com/flant/grafana-statusmap/issues/62)
|
||||||
|
|
||||||
### Supported environment
|
### Supported environment
|
||||||
|
|
||||||
* Prometheus datasource
|
* Tested with datasources:
|
||||||
* Tested with Grafana 5.1.3
|
- Prometheus
|
||||||
|
- InfluxDB
|
||||||
|
- Mysql
|
||||||
|
* Tested with Grafana:
|
||||||
|
- 5.1.3
|
||||||
|
- 5.4.3
|
||||||
|
- 6.0.0
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -49,7 +61,18 @@ above. These objects should have _discrete statuses_ which are sets of predefine
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
### Prometheus
|
### Datasource notes
|
||||||
|
|
||||||
|
To create neat graphs your datasource should return good data. Plugin adjust `$__interval` variable depending on
|
||||||
|
bucket width in panel options. Your queries should aggregate statuses over `$__interval`.
|
||||||
|
|
||||||
|
To make multiple values mode works as expected you should define multiple queries: one query for each possible status.
|
||||||
|
|
||||||
|
Plugin doesn't aggregate data in time for now, it only renders input data as buckets. Because of this
|
||||||
|
data should contain points for each timestamp in time range and equal timestamps for every possible
|
||||||
|
target (y-axis label). This limitation is addressed by [issue #53](https://github.com/flant/grafana-statusmap/issues/53).
|
||||||
|
|
||||||
|
#### Prometheus
|
||||||
|
|
||||||
To work with data from Prometheus you will need to setup discrete statuses for your objects.
|
To work with data from Prometheus you will need to setup discrete statuses for your objects.
|
||||||
Requirements to store these statuses in metrics are as follows:
|
Requirements to store these statuses in metrics are as follows:
|
||||||
@@ -83,6 +106,28 @@ coffee_maker_status:discrete{status="3"} 1
|
|||||||
Now, when Prometheus has `0` and `1` values for each status, all these metrics can be
|
Now, when Prometheus has `0` and `1` values for each status, all these metrics can be
|
||||||
aggregated, so you will get all available statuses of your objects over time.
|
aggregated, so you will get all available statuses of your objects over time.
|
||||||
|
|
||||||
|
#### InfluxDB
|
||||||
|
|
||||||
|
Choose 'Time series' for 'Format as' and use `GROUP BY ($__interval)` in query. `$tag_<tag name>` can be used in 'Alias by' to define y-axis labels.
|
||||||
|
|
||||||
|
#### Mysql
|
||||||
|
|
||||||
|
Example query with aggregation over `$__interval` is like this (you need one query for each possible status value):
|
||||||
|
|
||||||
|
```
|
||||||
|
SELECT
|
||||||
|
$__timeGroupAlias(date_insert,$__interval),
|
||||||
|
name AS metric,
|
||||||
|
min(statusi) AS "statusi"
|
||||||
|
FROM coffee_makers
|
||||||
|
WHERE
|
||||||
|
$__timeFilter(date_insert) AND statusi=1
|
||||||
|
GROUP BY 1,2
|
||||||
|
ORDER BY $__timeGroup(date_insert,$__interval)
|
||||||
|
```
|
||||||
|
|
||||||
|
`metric` column is used as y-axis label.
|
||||||
|
|
||||||
### Panel
|
### Panel
|
||||||
|
|
||||||
First of all, an individual query for each possible status' value should be created.
|
First of all, an individual query for each possible status' value should be created.
|
||||||
@@ -94,11 +139,20 @@ Then, color mapping for status' values should be defined in __Discrete__ color m
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Use can use presets to define a trafic light colors or 8 colors from [solarized](https://ethanschoonover.com/solarized/) palette:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
_Note: __Spectrum__ and __Opacity__ color modes function the same way they do in [Heatmap](https://grafana.com/plugins/heatmap) plugin._
|
_Note: __Spectrum__ and __Opacity__ color modes function the same way they do in [Heatmap](https://grafana.com/plugins/heatmap) plugin._
|
||||||
|
|
||||||
|
|
||||||
### More options
|
### More options
|
||||||
|
|
||||||
|
#### Bucket
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
__Multiple values__ checkbox specifies how they should be displayed:
|
__Multiple values__ checkbox specifies how they should be displayed:
|
||||||
@@ -114,8 +168,19 @@ __Null values__ can be treated as empty buckets or displayed with the color of `
|
|||||||
__Min width__ and __spacing__ are used to specify minimal bucket width and spacing between buckets.
|
__Min width__ and __spacing__ are used to specify minimal bucket width and spacing between buckets.
|
||||||
__Rounding__ may be used to round edges.
|
__Rounding__ may be used to round edges.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### Display
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
__Show legend__ checkbox toggles legend at the bottom of the panel.
|
||||||
|
|
||||||
|
__Show tooltip__ toggles tooltip display on mouse over buckets.
|
||||||
|
|
||||||
|
__Y axis sort__ can be used to sort labels on Y axis. Metrics — sort y labels as they are defined on Metrics tab. a→z and z→a sort labels descending or ascending in a [natural](https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare) order.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
@@ -142,15 +207,7 @@ The first public release of this plugin has been fully made by [Flant](https://f
|
|||||||
|
|
||||||
This plugin is based on "Heatmap" panel by Grafana and partly inspired by ideas from Carpet plot, Discrete panel, Status Panel, Status Dot, Status By Group.
|
This plugin is based on "Heatmap" panel by Grafana and partly inspired by ideas from Carpet plot, Discrete panel, Status Panel, Status Dot, Status By Group.
|
||||||
|
|
||||||
#### Changelog
|
|
||||||
|
|
||||||
##### v0.0.2
|
|
||||||
|
|
||||||
- Install with GF_INSTALL_PLUGINS
|
|
||||||
- Fix legend overlap
|
|
||||||
|
|
||||||
##### v0.0.1
|
|
||||||
|
|
||||||
- First public release
|
|
||||||
|
|
||||||
|
### CHANGELOG
|
||||||
|
|
||||||
|
The latest changes can be found here: [CHANGELOG.md](https://github.com/flant/grafana-statusmap/blob/master/CHANGELOG.md)
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## v0.2.0
|
||||||
|
|
||||||
|
- Migrate code base to typescript
|
||||||
|
- Fixes to work in 6.3.0+ grafana
|
||||||
|
|
||||||
|
## v0.1.1
|
||||||
|
|
||||||
|
- Fix for annotations in grafana 5.x before 5.4
|
||||||
|
|
||||||
|
## v0.1.0
|
||||||
|
|
||||||
|
- Tested with Grafana 6.0.0
|
||||||
|
- Tested with InfluxDB and Mysql datasources
|
||||||
|
- Add initial support for display annotations
|
||||||
|
- Add example for k8s statuses (thanks, @vrutkovs)
|
||||||
|
- Fix hanging on big values
|
||||||
|
- Fix horizontal spacing = 0
|
||||||
|
- Fix for "Object doesn't support property or method 'remove'"
|
||||||
|
- Fix card width for targets with different datapoints count
|
||||||
|
|
||||||
|
## v0.0.4
|
||||||
|
|
||||||
|
- Fix display of multivalues buckets as an empty cell
|
||||||
|
|
||||||
|
## v0.0.3
|
||||||
|
|
||||||
|
- Add solarized preset
|
||||||
|
- Reorganize statuses editor for discrete mode
|
||||||
|
- Separate options for vertical and horizontal spacing for cards
|
||||||
|
- Add simple sort options for Y axis
|
||||||
|
- Fix display null values as zero
|
||||||
|
|
||||||
|
## v0.0.2
|
||||||
|
|
||||||
|
- Install with GF_INSTALL_PLUGINS
|
||||||
|
- Fix legend overlap
|
||||||
|
- Fix colors for dark theme
|
||||||
|
- Fix panel rendering timeout error
|
||||||
|
|
||||||
|
|
||||||
|
## v0.0.1
|
||||||
|
|
||||||
|
- First public release
|
||||||
|
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
[](https://github.com/flant/grafana-statusmap/releases/latest)
|
||||||
|
[](https://t.me/statusmap_ru)
|
||||||
|
[](https://cloud-native.slack.com/messages/CHGSGTAHY)
|
||||||
|
|
||||||
# Statusmap panel for Grafana
|
# Statusmap panel for Grafana
|
||||||
|
|
||||||

|

|
||||||
@@ -13,10 +17,18 @@
|
|||||||
* Increasing rows/buckets' interval for better visual representation
|
* Increasing rows/buckets' interval for better visual representation
|
||||||
* Representing null values as empty bucket or zero value
|
* Representing null values as empty bucket or zero value
|
||||||
|
|
||||||
|
:calendar: New features are planned in [#62](https://github.com/flant/grafana-statusmap/issues/62)
|
||||||
|
|
||||||
### Supported environment
|
### Supported environment
|
||||||
|
|
||||||
* Prometheus datasource
|
* Tested with datasources:
|
||||||
* Tested with Grafana 5.1.3
|
- Prometheus
|
||||||
|
- InfluxDB
|
||||||
|
- Mysql
|
||||||
|
* Tested with Grafana:
|
||||||
|
- 5.1.3
|
||||||
|
- 5.4.3
|
||||||
|
- 6.0.0
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -49,7 +61,18 @@ above. These objects should have _discrete statuses_ which are sets of predefine
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
### Prometheus
|
### Datasource notes
|
||||||
|
|
||||||
|
To create neat graphs your datasource should return good data. Plugin adjust `$__interval` variable depending on
|
||||||
|
bucket width in panel options. Your queries should aggregate statuses over `$__interval`.
|
||||||
|
|
||||||
|
To make multiple values mode works as expected you should define multiple queries: one query for each possible status.
|
||||||
|
|
||||||
|
Plugin doesn't aggregate data in time for now, it only renders input data as buckets. Because of this
|
||||||
|
data should contain points for each timestamp in time range and equal timestamps for every possible
|
||||||
|
target (y-axis label). This limitation is addressed by [issue #53](https://github.com/flant/grafana-statusmap/issues/53).
|
||||||
|
|
||||||
|
#### Prometheus
|
||||||
|
|
||||||
To work with data from Prometheus you will need to setup discrete statuses for your objects.
|
To work with data from Prometheus you will need to setup discrete statuses for your objects.
|
||||||
Requirements to store these statuses in metrics are as follows:
|
Requirements to store these statuses in metrics are as follows:
|
||||||
@@ -83,6 +106,28 @@ coffee_maker_status:discrete{status="3"} 1
|
|||||||
Now, when Prometheus has `0` and `1` values for each status, all these metrics can be
|
Now, when Prometheus has `0` and `1` values for each status, all these metrics can be
|
||||||
aggregated, so you will get all available statuses of your objects over time.
|
aggregated, so you will get all available statuses of your objects over time.
|
||||||
|
|
||||||
|
#### InfluxDB
|
||||||
|
|
||||||
|
Choose 'Time series' for 'Format as' and use `GROUP BY ($__interval)` in query. `$tag_<tag name>` can be used in 'Alias by' to define y-axis labels.
|
||||||
|
|
||||||
|
#### Mysql
|
||||||
|
|
||||||
|
Example query with aggregation over `$__interval` is like this (you need one query for each possible status value):
|
||||||
|
|
||||||
|
```
|
||||||
|
SELECT
|
||||||
|
$__timeGroupAlias(date_insert,$__interval),
|
||||||
|
name AS metric,
|
||||||
|
min(statusi) AS "statusi"
|
||||||
|
FROM coffee_makers
|
||||||
|
WHERE
|
||||||
|
$__timeFilter(date_insert) AND statusi=1
|
||||||
|
GROUP BY 1,2
|
||||||
|
ORDER BY $__timeGroup(date_insert,$__interval)
|
||||||
|
```
|
||||||
|
|
||||||
|
`metric` column is used as y-axis label.
|
||||||
|
|
||||||
### Panel
|
### Panel
|
||||||
|
|
||||||
First of all, an individual query for each possible status' value should be created.
|
First of all, an individual query for each possible status' value should be created.
|
||||||
@@ -94,11 +139,20 @@ Then, color mapping for status' values should be defined in __Discrete__ color m
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Use can use presets to define a trafic light colors or 8 colors from [solarized](https://ethanschoonover.com/solarized/) palette:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
_Note: __Spectrum__ and __Opacity__ color modes function the same way they do in [Heatmap](https://grafana.com/plugins/heatmap) plugin._
|
_Note: __Spectrum__ and __Opacity__ color modes function the same way they do in [Heatmap](https://grafana.com/plugins/heatmap) plugin._
|
||||||
|
|
||||||
|
|
||||||
### More options
|
### More options
|
||||||
|
|
||||||
|
#### Bucket
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
__Multiple values__ checkbox specifies how they should be displayed:
|
__Multiple values__ checkbox specifies how they should be displayed:
|
||||||
@@ -114,8 +168,19 @@ __Null values__ can be treated as empty buckets or displayed with the color of `
|
|||||||
__Min width__ and __spacing__ are used to specify minimal bucket width and spacing between buckets.
|
__Min width__ and __spacing__ are used to specify minimal bucket width and spacing between buckets.
|
||||||
__Rounding__ may be used to round edges.
|
__Rounding__ may be used to round edges.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### Display
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
__Show legend__ checkbox toggles legend at the bottom of the panel.
|
||||||
|
|
||||||
|
__Show tooltip__ toggles tooltip display on mouse over buckets.
|
||||||
|
|
||||||
|
__Y axis sort__ can be used to sort labels on Y axis. Metrics — sort y labels as they are defined on Metrics tab. a→z and z→a sort labels descending or ascending in a [natural](https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare) order.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
@@ -142,15 +207,7 @@ The first public release of this plugin has been fully made by [Flant](https://f
|
|||||||
|
|
||||||
This plugin is based on "Heatmap" panel by Grafana and partly inspired by ideas from Carpet plot, Discrete panel, Status Panel, Status Dot, Status By Group.
|
This plugin is based on "Heatmap" panel by Grafana and partly inspired by ideas from Carpet plot, Discrete panel, Status Panel, Status Dot, Status By Group.
|
||||||
|
|
||||||
#### Changelog
|
|
||||||
|
|
||||||
##### v0.0.2
|
|
||||||
|
|
||||||
- Install with GF_INSTALL_PLUGINS
|
|
||||||
- Fix legend overlap
|
|
||||||
|
|
||||||
##### v0.0.1
|
|
||||||
|
|
||||||
- First public release
|
|
||||||
|
|
||||||
|
### CHANGELOG
|
||||||
|
|
||||||
|
The latest changes can be found here: [CHANGELOG.md](https://github.com/flant/grafana-statusmap/blob/master/CHANGELOG.md)
|
||||||
|
|||||||
@@ -0,0 +1,181 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
System.register(["d3", "jquery", "lodash"], function (_export, _context) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var d3, $, _, TOOLTIP_PADDING_X, TOOLTIP_PADDING_Y, AnnotationTooltip;
|
||||||
|
|
||||||
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||||
|
|
||||||
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||||
|
|
||||||
|
return {
|
||||||
|
setters: [function (_d) {
|
||||||
|
d3 = _d.default;
|
||||||
|
}, function (_jquery) {
|
||||||
|
$ = _jquery.default;
|
||||||
|
}, function (_lodash) {
|
||||||
|
_ = _lodash.default;
|
||||||
|
}],
|
||||||
|
execute: function () {
|
||||||
|
TOOLTIP_PADDING_X = 30;
|
||||||
|
TOOLTIP_PADDING_Y = 10;
|
||||||
|
|
||||||
|
_export("AnnotationTooltip", AnnotationTooltip =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function () {
|
||||||
|
function AnnotationTooltip(elem, scope) {
|
||||||
|
_classCallCheck(this, AnnotationTooltip);
|
||||||
|
|
||||||
|
_defineProperty(this, "scope", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "dashboard", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "panelCtrl", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "panel", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "mouseOverAnnotationTick", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "tooltipBase", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "tooltip", void 0);
|
||||||
|
|
||||||
|
this.scope = scope;
|
||||||
|
this.dashboard = scope.ctrl.dashboard;
|
||||||
|
this.panelCtrl = scope.ctrl;
|
||||||
|
this.panel = scope.ctrl.panel;
|
||||||
|
this.mouseOverAnnotationTick = false;
|
||||||
|
elem.on("mouseover", this.onMouseOver.bind(this));
|
||||||
|
elem.on("mouseleave", this.onMouseLeave.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
_createClass(AnnotationTooltip, [{
|
||||||
|
key: "onMouseOver",
|
||||||
|
value: function onMouseOver(e) {
|
||||||
|
if (!this.panel.tooltip.show || !this.scope.ctrl.data || _.isEmpty(this.scope.ctrl.data)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.tooltip) {
|
||||||
|
this.add();
|
||||||
|
this.move(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onMouseLeave",
|
||||||
|
value: function onMouseLeave() {
|
||||||
|
this.destroy();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onMouseMove",
|
||||||
|
value: function onMouseMove(e) {
|
||||||
|
if (!this.panel.tooltip.show) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.move(e);
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "add",
|
||||||
|
value: function add() {
|
||||||
|
this.tooltipBase = d3.select("body").append("div").attr("class", "statusmap-annotation-tooltip drop drop-popover drop-popover--annotation drop-element drop-enabled drop-target-attached-center drop-open drop-open-transitionend drop-after-open").style("position", "absolute");
|
||||||
|
this.tooltip = this.tooltipBase.append("div").attr("class", "drop-content").append("div").append("annotation-tooltip").append("div").attr("class", "graph-annotation");
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "destroy",
|
||||||
|
value: function destroy() {
|
||||||
|
if (this.tooltip) {
|
||||||
|
this.tooltip.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
this.tooltip = null;
|
||||||
|
|
||||||
|
if (this.tooltipBase) {
|
||||||
|
this.tooltipBase.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
this.tooltipBase = null;
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "show",
|
||||||
|
value: function show(pos) {
|
||||||
|
if (!this.panel.tooltip.show || !this.tooltip) {
|
||||||
|
return;
|
||||||
|
} // shared tooltip mode
|
||||||
|
//if (pos.panelRelY) {
|
||||||
|
// return;
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
var annoId = d3.select(pos.target).attr('annoId');
|
||||||
|
|
||||||
|
if (!annoId) {
|
||||||
|
this.destroy();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var anno = this.panelCtrl.annotations[annoId];
|
||||||
|
|
||||||
|
if (!anno) {
|
||||||
|
this.destroy();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var annoTitle = "";
|
||||||
|
var tooltipTimeFormat = 'YYYY-MM-DD HH:mm:ss';
|
||||||
|
var annoTime = this.dashboard.formatDate(anno.time, tooltipTimeFormat);
|
||||||
|
var annoText = anno.text;
|
||||||
|
var annoTags = [];
|
||||||
|
|
||||||
|
if (anno.tags) {
|
||||||
|
annoTags = _.map(anno.tags, function (t) {
|
||||||
|
return {
|
||||||
|
"text": t,
|
||||||
|
"backColor": "rgb(63, 43, 91)",
|
||||||
|
"borderColor": "rgb(101, 81, 129)"
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var tooltipHtml = "<div class=\"graph-annotation__header\">\n <span class=\"graph-annotation__title\">".concat(annoTitle, "</span>\n <span class=\"graph-annotation__time\">").concat(annoTime, "</span></div>\n <div class=\"graph-annotation__body\">\n <div>").concat(annoText, "</div>\n ").concat(_.join(_.map(annoTags, function (t) {
|
||||||
|
return "<span class=\"label label-tag small\" style=\"background-color: ".concat(t.backColor, "; border-color: ").concat(t.borderColor, "\">").concat(t.text, "</span>");
|
||||||
|
}), ""), "\n </div>\n <div class=\"statusmap-histogram\"></div>");
|
||||||
|
this.tooltip.html(tooltipHtml);
|
||||||
|
this.move(pos);
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "move",
|
||||||
|
value: function move(pos) {
|
||||||
|
if (!this.tooltipBase) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var elem = $(this.tooltipBase.node())[0];
|
||||||
|
var tooltipWidth = elem.clientWidth;
|
||||||
|
var tooltipHeight = elem.clientHeight;
|
||||||
|
var left = pos.pageX - tooltipWidth / 2;
|
||||||
|
var top = pos.pageY + TOOLTIP_PADDING_Y;
|
||||||
|
|
||||||
|
if (pos.pageX + tooltipWidth / 2 + 10 > window.innerWidth) {
|
||||||
|
left = pos.pageX - tooltipWidth - TOOLTIP_PADDING_X;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pos.pageY - window.pageYOffset + tooltipHeight + 20 > window.innerHeight) {
|
||||||
|
top = pos.pageY - tooltipHeight - TOOLTIP_PADDING_Y;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.tooltipBase.style("left", left + "px").style("top", top + "px");
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return AnnotationTooltip;
|
||||||
|
}());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
//# sourceMappingURL=annotations.js.map
|
||||||
@@ -1,39 +1,31 @@
|
|||||||
'use strict';
|
"use strict";
|
||||||
|
|
||||||
System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic/index', 'app/core/core', 'app/core/utils/ticks'], function (_export, _context) {
|
System.register(["lodash", "jquery", "d3", "./libs/d3-scale-chromatic/index", "app/core/core", "app/core/utils/ticks", "app/core/core_module"], function (_export, _context) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var angular, _, $, d3, d3ScaleChromatic, contextSrv, tickStep, mod, MIN_LEGEND_STEPS;
|
var _, $, d3, d3ScaleChromatic, contextSrv, tickStep, coreModule, LEGEND_STEP_WIDTH;
|
||||||
|
|
||||||
function drawColorLegend(elem, colorScheme, rangeFrom, rangeTo, maxValue, minValue) {
|
function drawColorLegend(elem, colorScheme, rangeFrom, rangeTo, maxValue, minValue) {
|
||||||
var legendElem = $(elem).find('svg');
|
var legendElem = $(elem).find('svg');
|
||||||
var legend = d3.select(legendElem.get(0));
|
var legend = d3.select(legendElem.get(0));
|
||||||
clearLegend(elem);
|
clearLegend(elem);
|
||||||
|
|
||||||
var legendWidth = Math.floor(legendElem.outerWidth()) - 30; // narrow legendWidth by 30px to get space for first and last tick values
|
var legendWidth = Math.floor(legendElem.outerWidth()) - 30; // narrow legendWidth by 30px to get space for first and last tick values
|
||||||
|
|
||||||
var legendHeight = legendElem.attr("height");
|
var legendHeight = legendElem.attr("height");
|
||||||
|
var rangeStep = (rangeTo - rangeFrom) / (legendWidth / LEGEND_STEP_WIDTH); // width in pixels in legend space of unit segment in range space
|
||||||
var rangeStep = 1;
|
// rangeStep * witdhFactor == width in pixels of one rangeStep
|
||||||
if (rangeTo - rangeFrom > legendWidth) {
|
|
||||||
rangeStep = Math.floor((rangeTo - rangeFrom) / legendWidth);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (rangeStep * MIN_LEGEND_STEPS > rangeTo) {
|
|
||||||
rangeStep = rangeTo / MIN_LEGEND_STEPS;
|
|
||||||
}
|
|
||||||
|
|
||||||
var widthFactor = legendWidth / (rangeTo - rangeFrom);
|
var widthFactor = legendWidth / (rangeTo - rangeFrom);
|
||||||
var valuesRange = d3.range(rangeFrom, rangeTo, rangeStep);
|
var valuesRange = d3.range(rangeFrom, rangeTo, rangeStep);
|
||||||
|
|
||||||
var colorScale = getColorScale(colorScheme, maxValue, minValue);
|
var colorScale = getColorScale(colorScheme, maxValue, minValue);
|
||||||
legend.selectAll(".status-heatmap-color-legend-rect").data(valuesRange).enter().append("rect").attr("x", function (d) {
|
legend.selectAll(".status-heatmap-color-legend-rect").data(valuesRange).enter().append("rect") // translate from range space into pixels
|
||||||
|
// and shift all rectangles to the right by 10
|
||||||
|
.attr("x", function (d) {
|
||||||
return d * widthFactor + 10;
|
return d * widthFactor + 10;
|
||||||
}) // shift all color rectangles to the right
|
}).attr("y", 0) // rectangles are slightly overlaped to prevent gaps
|
||||||
.attr("y", 0).attr("width", rangeStep * widthFactor + 1) // Overlap rectangles to prevent gaps
|
.attr("width", LEGEND_STEP_WIDTH + 1).attr("height", legendHeight).attr("stroke-width", 0).attr("fill", function (d) {
|
||||||
.attr("height", legendHeight).attr("stroke-width", 0).attr("fill", function (d) {
|
|
||||||
return colorScale(d);
|
return colorScale(d);
|
||||||
});
|
});
|
||||||
|
|
||||||
drawLegendValues(elem, colorScale, rangeFrom, rangeTo, maxValue, minValue, legendWidth);
|
drawLegendValues(elem, colorScale, rangeFrom, rangeTo, maxValue, minValue, legendWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,27 +33,23 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
var legendElem = $(elem).find('svg');
|
var legendElem = $(elem).find('svg');
|
||||||
var legend = d3.select(legendElem.get(0));
|
var legend = d3.select(legendElem.get(0));
|
||||||
clearLegend(elem);
|
clearLegend(elem);
|
||||||
|
|
||||||
var legendWidth = Math.floor(legendElem.outerWidth()) - 30; // narrow legendWidth by 30px to get space for first and last tick values
|
var legendWidth = Math.floor(legendElem.outerWidth()) - 30; // narrow legendWidth by 30px to get space for first and last tick values
|
||||||
|
|
||||||
var legendHeight = legendElem.attr("height");
|
var legendHeight = legendElem.attr("height");
|
||||||
|
var rangeStep = (rangeTo - rangeFrom) / (legendWidth / LEGEND_STEP_WIDTH); // width in pixels in legend space of unit segment in range space
|
||||||
|
// rangeStep * witdhFactor == width in pixels of one rangeStep
|
||||||
|
|
||||||
var rangeStep = 10;
|
|
||||||
var widthFactor = legendWidth / (rangeTo - rangeFrom);
|
var widthFactor = legendWidth / (rangeTo - rangeFrom);
|
||||||
|
|
||||||
if (rangeStep * MIN_LEGEND_STEPS > rangeTo) {
|
|
||||||
rangeStep = rangeTo / MIN_LEGEND_STEPS;
|
|
||||||
}
|
|
||||||
|
|
||||||
var valuesRange = d3.range(rangeFrom, rangeTo, rangeStep);
|
var valuesRange = d3.range(rangeFrom, rangeTo, rangeStep);
|
||||||
|
|
||||||
var opacityScale = getOpacityScale(options, maxValue, minValue);
|
var opacityScale = getOpacityScale(options, maxValue, minValue);
|
||||||
legend.selectAll(".status-heatmap-opacity-legend-rect").data(valuesRange).enter().append("rect").attr("x", function (d) {
|
legend.selectAll(".status-heatmap-opacity-legend-rect").data(valuesRange).enter().append("rect") // translate from range space into pixels
|
||||||
|
// and shift all rectangles to the right by 10
|
||||||
|
.attr("x", function (d) {
|
||||||
return d * widthFactor + 10;
|
return d * widthFactor + 10;
|
||||||
}) // shift all opacity rectangles to the right
|
}).attr("y", 0) // rectangles are slightly overlaped to prevent gaps
|
||||||
.attr("y", 0).attr("width", rangeStep * widthFactor).attr("height", legendHeight).attr("stroke-width", 0).attr("fill", options.cardColor).style("opacity", function (d) {
|
.attr("width", LEGEND_STEP_WIDTH + 1).attr("height", legendHeight).attr("stroke-width", 0).attr("fill", options.cardColor).style("opacity", function (d) {
|
||||||
return opacityScale(d);
|
return opacityScale(d);
|
||||||
});
|
});
|
||||||
|
|
||||||
drawLegendValues(elem, opacityScale, rangeFrom, rangeTo, maxValue, minValue, legendWidth);
|
drawLegendValues(elem, opacityScale, rangeFrom, rangeTo, maxValue, minValue, legendWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,32 +57,29 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
var legendElem = $(elem).find('svg');
|
var legendElem = $(elem).find('svg');
|
||||||
var legend = d3.select(legendElem.get(0));
|
var legend = d3.select(legendElem.get(0));
|
||||||
clearLegend(elem);
|
clearLegend(elem);
|
||||||
|
|
||||||
var thresholds = colorOptions.thresholds;
|
var thresholds = colorOptions.thresholds;
|
||||||
|
|
||||||
var tooltips = _.map(thresholds, function (tr) {
|
var tooltips = _.map(thresholds, function (tr) {
|
||||||
return tr.tooltip;
|
return tr.tooltip;
|
||||||
});
|
});
|
||||||
var valuesNumber = thresholds.length;
|
|
||||||
|
|
||||||
// graph width as a fallback
|
var valuesNumber = thresholds.length; // graph width as a fallback
|
||||||
|
|
||||||
var $heatmap = $(elem).parent().parent().parent().find('.status-heatmap-panel');
|
var $heatmap = $(elem).parent().parent().parent().find('.status-heatmap-panel');
|
||||||
var graphWidth = $heatmap.find('svg').attr("width");
|
var graphWidthAttr = $heatmap.find('svg').attr("width");
|
||||||
|
var graphWidth = parseInt(graphWidthAttr); // calculate max width of tooltip and use it as width for each item
|
||||||
|
|
||||||
// calculate max width of tooltip and use it as width for each item
|
|
||||||
var textWidth = [];
|
var textWidth = [];
|
||||||
legend.selectAll(".hidden-texts").data(tooltips).enter().append("text").attr("class", "axis tick").attr("font-family", "sans-serif").text(function (d) {
|
legend.selectAll(".hidden-texts").data(tooltips).enter().append("text").attr("class", "axis tick hidden-texts").attr("font-family", "sans-serif").text(function (d) {
|
||||||
return d;
|
return d;
|
||||||
}).each(function (d, i) {
|
}).each(function (d, i) {
|
||||||
var thisWidth = this.getBBox().width;
|
var thisWidth = this.getBBox().width;
|
||||||
textWidth.push(thisWidth);
|
textWidth.push(thisWidth);
|
||||||
this.remove(); // remove them just after displaying them
|
|
||||||
});
|
});
|
||||||
|
legend.selectAll(".hidden-texts").remove();
|
||||||
var legendWidth = Math.floor(_.min([graphWidth - 30, (_.max(textWidth) + 3) * valuesNumber]));
|
var legendWidth = Math.floor(_.min([graphWidth - 30, (_.max(textWidth) + 3) * valuesNumber]));
|
||||||
legendElem.attr("width", legendWidth);
|
legendElem.attr("width", legendWidth);
|
||||||
|
|
||||||
var legendHeight = legendElem.attr("height");
|
var legendHeight = legendElem.attr("height");
|
||||||
|
|
||||||
var itemWidth = Math.floor(legendWidth / valuesNumber);
|
var itemWidth = Math.floor(legendWidth / valuesNumber);
|
||||||
var valuesRange = d3.range(valuesNumber); // from 0 to valuesNumber-1
|
var valuesRange = d3.range(valuesNumber); // from 0 to valuesNumber-1
|
||||||
|
|
||||||
@@ -104,7 +89,6 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
.attr("height", legendHeight).attr("stroke-width", 0).attr("fill", function (d) {
|
.attr("height", legendHeight).attr("stroke-width", 0).attr("fill", function (d) {
|
||||||
return discreteHelper.getDiscreteColor(d);
|
return discreteHelper.getDiscreteColor(d);
|
||||||
});
|
});
|
||||||
|
|
||||||
drawDiscreteLegendValues(elem, colorOptions, legendWidth);
|
drawDiscreteLegendValues(elem, colorOptions, legendWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,22 +101,17 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
}
|
}
|
||||||
|
|
||||||
var legendValueScale = d3.scaleLinear().domain([0, rangeTo]).range([0, legendWidth]);
|
var legendValueScale = d3.scaleLinear().domain([0, rangeTo]).range([0, legendWidth]);
|
||||||
|
|
||||||
var ticks = buildLegendTicks(0, rangeTo, maxValue, minValue);
|
var ticks = buildLegendTicks(0, rangeTo, maxValue, minValue);
|
||||||
var xAxis = d3.axisBottom(legendValueScale).tickValues(ticks).tickSize(2);
|
var xAxis = d3.axisBottom(legendValueScale).tickValues(ticks).tickSize(2);
|
||||||
|
|
||||||
var colorRect = legendElem.find(":first-child");
|
var colorRect = legendElem.find(":first-child");
|
||||||
var posY = getSvgElemHeight(legendElem) + 2;
|
var posY = getSvgElemHeight(legendElem) + 2;
|
||||||
var posX = getSvgElemX(colorRect);
|
var posX = getSvgElemX(colorRect);
|
||||||
|
|
||||||
d3.select(legendElem.get(0)).append("g").attr("class", "axis").attr("transform", "translate(" + posX + "," + posY + ")").call(xAxis);
|
d3.select(legendElem.get(0)).append("g").attr("class", "axis").attr("transform", "translate(" + posX + "," + posY + ")").call(xAxis);
|
||||||
|
|
||||||
legend.select(".axis").select(".domain").remove();
|
legend.select(".axis").select(".domain").remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
function drawDiscreteLegendValues(elem, colorOptions, legendWidth) {
|
function drawDiscreteLegendValues(elem, colorOptions, legendWidth) {
|
||||||
var thresholds = colorOptions.thresholds;
|
var thresholds = colorOptions.thresholds;
|
||||||
|
|
||||||
var legendElem = $(elem).find('svg');
|
var legendElem = $(elem).find('svg');
|
||||||
var legend = d3.select(legendElem.get(0));
|
var legend = d3.select(legendElem.get(0));
|
||||||
|
|
||||||
@@ -143,11 +122,10 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
var valuesNumber = thresholds.length;
|
var valuesNumber = thresholds.length;
|
||||||
var rangeStep = Math.floor(legendWidth / valuesNumber);
|
var rangeStep = Math.floor(legendWidth / valuesNumber);
|
||||||
var valuesRange = d3.range(0, legendWidth, rangeStep);
|
var valuesRange = d3.range(0, legendWidth, rangeStep);
|
||||||
|
|
||||||
var legendValueScale = d3.scaleLinear().domain([0, valuesNumber]).range([0, legendWidth]);
|
var legendValueScale = d3.scaleLinear().domain([0, valuesNumber]).range([0, legendWidth]);
|
||||||
|
|
||||||
var thresholdValues = [];
|
var thresholdValues = [];
|
||||||
var thresholdTooltips = [];
|
var thresholdTooltips = [];
|
||||||
|
|
||||||
for (var i = 0; i < thresholds.length; i++) {
|
for (var i = 0; i < thresholds.length; i++) {
|
||||||
thresholdValues.push(thresholds[i].value);
|
thresholdValues.push(thresholds[i].value);
|
||||||
thresholdTooltips.push(thresholds[i].tooltip);
|
thresholdTooltips.push(thresholds[i].tooltip);
|
||||||
@@ -157,10 +135,12 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
.tickSize(2).tickFormat(function (t) {
|
.tickSize(2).tickFormat(function (t) {
|
||||||
var i = Math.floor(t);
|
var i = Math.floor(t);
|
||||||
var v = thresholdTooltips[i];
|
var v = thresholdTooltips[i];
|
||||||
|
|
||||||
if (v != undefined) {
|
if (v != undefined) {
|
||||||
return "" + v;
|
return "" + v;
|
||||||
} else {
|
} else {
|
||||||
v = thresholdValues[i];
|
v = thresholdValues[i];
|
||||||
|
|
||||||
if (v != undefined) {
|
if (v != undefined) {
|
||||||
return "" + v;
|
return "" + v;
|
||||||
} else {
|
} else {
|
||||||
@@ -168,34 +148,25 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var colorRect = legendElem.find(":first-child");
|
var colorRect = legendElem.find(":first-child");
|
||||||
var posY = getSvgElemHeight(legendElem) + 2;
|
var posY = getSvgElemHeight(legendElem) + 2;
|
||||||
var posX = getSvgElemX(colorRect) + Math.floor(rangeStep / 2);
|
var posX = getSvgElemX(colorRect) + Math.floor(rangeStep / 2);
|
||||||
|
|
||||||
d3.select(legendElem.get(0)).append("g").attr("class", "axis").attr("transform", "translate(" + posX + "," + posY + ")").call(xAxis);
|
d3.select(legendElem.get(0)).append("g").attr("class", "axis").attr("transform", "translate(" + posX + "," + posY + ")").call(xAxis);
|
||||||
|
|
||||||
legend.select(".axis").select(".domain").remove();
|
legend.select(".axis").select(".domain").remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
function drawSimpleColorLegend(elem, colorScale) {
|
function drawSimpleColorLegend(elem, colorScale) {
|
||||||
var legendElem = $(elem).find('svg');
|
var legendElem = $(elem).find('svg');
|
||||||
|
var legend = d3.select(legendElem.get(0));
|
||||||
clearLegend(elem);
|
clearLegend(elem);
|
||||||
|
|
||||||
var legendWidth = Math.floor(legendElem.outerWidth());
|
var legendWidth = Math.floor(legendElem.outerWidth());
|
||||||
var legendHeight = legendElem.attr("height");
|
var legendHeight = legendElem.attr("height");
|
||||||
|
|
||||||
if (legendWidth) {
|
if (legendWidth) {
|
||||||
var valuesNumber = Math.floor(legendWidth / 2);
|
var valuesRange = d3.range(0, legendWidth, LEGEND_STEP_WIDTH);
|
||||||
var rangeStep = Math.floor(legendWidth / valuesNumber);
|
legend.selectAll(".status-heatmap-color-legend-rect").data(valuesRange).enter().append("rect").attr("x", function (d) {
|
||||||
var valuesRange = d3.range(0, legendWidth, rangeStep);
|
|
||||||
|
|
||||||
var legend = d3.select(legendElem.get(0));
|
|
||||||
var legendRects = legend.selectAll(".status-heatmap-color-legend-rect").data(valuesRange);
|
|
||||||
|
|
||||||
legendRects.enter().append("rect").attr("x", function (d) {
|
|
||||||
return d;
|
return d;
|
||||||
}).attr("y", 0).attr("width", rangeStep + 1) // Overlap rectangles to prevent gaps
|
}).attr("y", 0).attr("width", LEGEND_STEP_WIDTH + 1) // Overlap rectangles to prevent gaps
|
||||||
.attr("height", legendHeight).attr("stroke-width", 0).attr("fill", function (d) {
|
.attr("height", legendHeight).attr("stroke-width", 0).attr("fill", function (d) {
|
||||||
return colorScale(d);
|
return colorScale(d);
|
||||||
});
|
});
|
||||||
@@ -204,28 +175,24 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
|
|
||||||
function drawSimpleOpacityLegend(elem, options) {
|
function drawSimpleOpacityLegend(elem, options) {
|
||||||
var legendElem = $(elem).find('svg');
|
var legendElem = $(elem).find('svg');
|
||||||
var graphElem = $(elem);
|
|
||||||
clearLegend(elem);
|
|
||||||
|
|
||||||
var legend = d3.select(legendElem.get(0));
|
var legend = d3.select(legendElem.get(0));
|
||||||
|
clearLegend(elem);
|
||||||
var legendWidth = Math.floor(legendElem.outerWidth());
|
var legendWidth = Math.floor(legendElem.outerWidth());
|
||||||
var legendHeight = legendElem.attr("height");
|
var legendHeight = legendElem.attr("height");
|
||||||
|
|
||||||
if (legendWidth) {
|
if (legendWidth) {
|
||||||
var legendOpacityScale = void 0;
|
var legendOpacityScale;
|
||||||
|
|
||||||
if (options.colorScale === 'linear') {
|
if (options.colorScale === 'linear') {
|
||||||
legendOpacityScale = d3.scaleLinear().domain([0, legendWidth]).range([0, 1]);
|
legendOpacityScale = d3.scaleLinear().domain([0, legendWidth]).range([0, 1]);
|
||||||
} else if (options.colorScale === 'sqrt') {
|
} else if (options.colorScale === 'sqrt') {
|
||||||
legendOpacityScale = d3.scalePow().exponent(options.exponent).domain([0, legendWidth]).range([0, 1]);
|
legendOpacityScale = d3.scalePow().exponent(options.exponent).domain([0, legendWidth]).range([0, 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
var rangeStep = 10;
|
var valuesRange = d3.range(0, legendWidth, LEGEND_STEP_WIDTH);
|
||||||
var valuesRange = d3.range(0, legendWidth, rangeStep);
|
legend.selectAll(".status-heatmap-opacity-legend-rect").data(valuesRange).enter().append("rect").attr("x", function (d) {
|
||||||
var legendRects = legend.selectAll(".status-heatmap-opacity-legend-rect").data(valuesRange);
|
|
||||||
|
|
||||||
legendRects.enter().append("rect").attr("x", function (d) {
|
|
||||||
return d;
|
return d;
|
||||||
}).attr("y", 0).attr("width", rangeStep).attr("height", legendHeight).attr("stroke-width", 0).attr("fill", options.cardColor).style("opacity", function (d) {
|
}).attr("y", 0).attr("width", LEGEND_STEP_WIDTH + 1).attr("height", legendHeight).attr("stroke-width", 0).attr("fill", options.cardColor).style("opacity", function (d) {
|
||||||
return legendOpacityScale(d);
|
return legendOpacityScale(d);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -238,30 +205,29 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
|
|
||||||
function getColorScale(colorScheme, maxValue) {
|
function getColorScale(colorScheme, maxValue) {
|
||||||
var minValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
var minValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
||||||
|
|
||||||
var colorInterpolator = d3ScaleChromatic[colorScheme.value];
|
var colorInterpolator = d3ScaleChromatic[colorScheme.value];
|
||||||
var colorScaleInverted = colorScheme.invert === 'always' || colorScheme.invert === 'dark' && !contextSrv.user.lightTheme;
|
var colorScaleInverted = colorScheme.invert === 'always' || colorScheme.invert === 'dark' && !contextSrv.user.lightTheme;
|
||||||
|
|
||||||
var start = colorScaleInverted ? maxValue : minValue;
|
var start = colorScaleInverted ? maxValue : minValue;
|
||||||
var end = colorScaleInverted ? minValue : maxValue;
|
var end = colorScaleInverted ? minValue : maxValue;
|
||||||
|
|
||||||
return d3.scaleSequential(colorInterpolator).domain([start, end]);
|
return d3.scaleSequential(colorInterpolator).domain([start, end]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getOpacityScale(options, maxValue) {
|
function getOpacityScale(options, maxValue) {
|
||||||
var minValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
var minValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
||||||
|
var legendOpacityScale;
|
||||||
|
|
||||||
var legendOpacityScale = void 0;
|
|
||||||
if (options.colorScale === 'linear') {
|
if (options.colorScale === 'linear') {
|
||||||
legendOpacityScale = d3.scaleLinear().domain([minValue, maxValue]).range([0, 1]);
|
legendOpacityScale = d3.scaleLinear().domain([minValue, maxValue]).range([0, 1]);
|
||||||
} else if (options.colorScale === 'sqrt') {
|
} else if (options.colorScale === 'sqrt') {
|
||||||
legendOpacityScale = d3.scalePow().exponent(options.exponent).domain([minValue, maxValue]).range([0, 1]);
|
legendOpacityScale = d3.scalePow().exponent(options.exponent).domain([minValue, maxValue]).range([0, 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return legendOpacityScale;
|
return legendOpacityScale;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSvgElemX(elem) {
|
function getSvgElemX(elem) {
|
||||||
var svgElem = elem.get(0);
|
var svgElem = elem.get(0);
|
||||||
|
|
||||||
if (svgElem && svgElem.x && svgElem.x.baseVal) {
|
if (svgElem && svgElem.x && svgElem.x.baseVal) {
|
||||||
return svgElem.x.baseVal.value;
|
return svgElem.x.baseVal.value;
|
||||||
} else {
|
} else {
|
||||||
@@ -271,6 +237,7 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
|
|
||||||
function getSvgElemHeight(elem) {
|
function getSvgElemHeight(elem) {
|
||||||
var svgElem = elem.get(0);
|
var svgElem = elem.get(0);
|
||||||
|
|
||||||
if (svgElem && svgElem.height && svgElem.height.baseVal) {
|
if (svgElem && svgElem.height && svgElem.height.baseVal) {
|
||||||
return svgElem.height.baseVal.value;
|
return svgElem.height.baseVal.value;
|
||||||
} else {
|
} else {
|
||||||
@@ -285,25 +252,29 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
var ticks = [];
|
var ticks = [];
|
||||||
|
|
||||||
for (var i = 0; i < ticksNum; i++) {
|
for (var i = 0; i < ticksNum; i++) {
|
||||||
var current = tickStepSize * i;
|
var current = tickStepSize * i; // Add user-defined min and max if it had been set
|
||||||
// Add user-defined min and max if it had been set
|
|
||||||
if (isValueCloseTo(minValue, current, tickStepSize)) {
|
if (isValueCloseTo(minValue, current, tickStepSize)) {
|
||||||
ticks.push(minValue);
|
ticks.push(minValue);
|
||||||
continue;
|
continue;
|
||||||
} else if (minValue < current) {
|
} else if (minValue < current) {
|
||||||
ticks.push(minValue);
|
ticks.push(minValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isValueCloseTo(maxValue, current, tickStepSize)) {
|
if (isValueCloseTo(maxValue, current, tickStepSize)) {
|
||||||
ticks.push(maxValue);
|
ticks.push(maxValue);
|
||||||
continue;
|
continue;
|
||||||
} else if (maxValue < current) {
|
} else if (maxValue < current) {
|
||||||
ticks.push(maxValue);
|
ticks.push(maxValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
ticks.push(tickStepSize * i);
|
ticks.push(tickStepSize * i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isValueCloseTo(maxValue, rangeTo, tickStepSize)) {
|
if (!isValueCloseTo(maxValue, rangeTo, tickStepSize)) {
|
||||||
ticks.push(maxValue);
|
ticks.push(maxValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
ticks.push(rangeTo);
|
ticks.push(rangeTo);
|
||||||
ticks = _.sortBy(_.uniq(ticks));
|
ticks = _.sortBy(_.uniq(ticks));
|
||||||
return ticks;
|
return ticks;
|
||||||
@@ -313,10 +284,9 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
var diff = Math.abs(val - valueTo);
|
var diff = Math.abs(val - valueTo);
|
||||||
return diff < step * 0.3;
|
return diff < step * 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
setters: [function (_angular) {
|
setters: [function (_lodash) {
|
||||||
angular = _angular.default;
|
|
||||||
}, function (_lodash) {
|
|
||||||
_ = _lodash.default;
|
_ = _lodash.default;
|
||||||
}, function (_jquery) {
|
}, function (_jquery) {
|
||||||
$ = _jquery.default;
|
$ = _jquery.default;
|
||||||
@@ -328,25 +298,23 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
contextSrv = _appCoreCore.contextSrv;
|
contextSrv = _appCoreCore.contextSrv;
|
||||||
}, function (_appCoreUtilsTicks) {
|
}, function (_appCoreUtilsTicks) {
|
||||||
tickStep = _appCoreUtilsTicks.tickStep;
|
tickStep = _appCoreUtilsTicks.tickStep;
|
||||||
|
}, function (_appCoreCore_module) {
|
||||||
|
coreModule = _appCoreCore_module.default;
|
||||||
}],
|
}],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
mod = angular.module('grafana.directives');
|
LEGEND_STEP_WIDTH = 2;
|
||||||
MIN_LEGEND_STEPS = 10;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Color legend for heatmap editor.
|
* Bigger color legend for opacity and spectrum modes editor.
|
||||||
*/
|
*/
|
||||||
mod.directive('optionsColorLegend', function () {
|
|
||||||
|
coreModule.directive('optionsColorLegend', function () {
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
template: '<div class="status-heatmap-color-legend"><svg width="16.8rem" height="24px"></svg></div>',
|
template: '<div class="status-heatmap-color-legend"><svg width="16.8rem" height="24px"></svg></div>',
|
||||||
link: function link(scope, elem, attrs) {
|
link: function link(scope, elem, attrs) {
|
||||||
var ctrl = scope.ctrl;
|
var ctrl = scope.ctrl;
|
||||||
var panel = scope.ctrl.panel;
|
var panel = scope.ctrl.panel;
|
||||||
|
|
||||||
render();
|
render();
|
||||||
|
|
||||||
ctrl.events.on('render', function () {
|
ctrl.events.on('render', function () {
|
||||||
render();
|
render();
|
||||||
});
|
});
|
||||||
@@ -356,7 +324,10 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
var legendWidth = Math.floor(legendElem.outerWidth());
|
var legendWidth = Math.floor(legendElem.outerWidth());
|
||||||
|
|
||||||
if (panel.color.mode === 'spectrum') {
|
if (panel.color.mode === 'spectrum') {
|
||||||
var colorScheme = _.find(ctrl.colorSchemes, { value: panel.color.colorScheme });
|
var colorScheme = _.find(ctrl.colorSchemes, {
|
||||||
|
value: panel.color.colorScheme
|
||||||
|
});
|
||||||
|
|
||||||
var colorScale = getColorScale(colorScheme, legendWidth);
|
var colorScale = getColorScale(colorScheme, legendWidth);
|
||||||
drawSimpleColorLegend(elem, colorScale);
|
drawSimpleColorLegend(elem, colorScale);
|
||||||
} else if (panel.color.mode === 'opacity') {
|
} else if (panel.color.mode === 'opacity') {
|
||||||
@@ -367,18 +338,17 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Heatmap legend with scale values.
|
* Graph legend with values.
|
||||||
*/
|
*/
|
||||||
mod.directive('statusHeatmapLegend', function () {
|
|
||||||
|
coreModule.directive('statusHeatmapLegend', function () {
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
template: '<div class="status-heatmap-color-legend"><svg width="100px" height="6px"></svg></div>',
|
template: '<div class="status-heatmap-color-legend"><svg width="100px" height="6px"></svg></div>',
|
||||||
link: function link(scope, elem, attrs) {
|
link: function link(scope, elem, attrs) {
|
||||||
var ctrl = scope.ctrl;
|
var ctrl = scope.ctrl;
|
||||||
var panel = scope.ctrl.panel;
|
var panel = scope.ctrl.panel;
|
||||||
|
|
||||||
render();
|
render();
|
||||||
ctrl.events.on('render', function () {
|
ctrl.events.on('render', function () {
|
||||||
render();
|
render();
|
||||||
@@ -386,6 +356,11 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
clearLegend(elem);
|
clearLegend(elem);
|
||||||
|
|
||||||
|
if (!ctrl.panel.legend.show) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!_.isEmpty(ctrl.cardsData) && !_.isEmpty(ctrl.cardsData.cards)) {
|
if (!_.isEmpty(ctrl.cardsData) && !_.isEmpty(ctrl.cardsData.cards)) {
|
||||||
var rangeFrom = ctrl.cardsData.minValue;
|
var rangeFrom = ctrl.cardsData.minValue;
|
||||||
var rangeTo = ctrl.cardsData.maxValue;
|
var rangeTo = ctrl.cardsData.maxValue;
|
||||||
@@ -393,7 +368,10 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
var minValue = panel.color.min || rangeFrom;
|
var minValue = panel.color.min || rangeFrom;
|
||||||
|
|
||||||
if (panel.color.mode === 'spectrum') {
|
if (panel.color.mode === 'spectrum') {
|
||||||
var colorScheme = _.find(ctrl.colorSchemes, { value: panel.color.colorScheme });
|
var colorScheme = _.find(ctrl.colorSchemes, {
|
||||||
|
value: panel.color.colorScheme
|
||||||
|
});
|
||||||
|
|
||||||
drawColorLegend(elem, colorScheme, rangeFrom, rangeTo, maxValue, minValue);
|
drawColorLegend(elem, colorScheme, rangeFrom, rangeTo, maxValue, minValue);
|
||||||
} else if (panel.color.mode === 'opacity') {
|
} else if (panel.color.mode === 'opacity') {
|
||||||
var colorOptions = panel.color;
|
var colorOptions = panel.color;
|
||||||
|
|||||||
@@ -1,49 +1,38 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
System.register(["lodash"], function (_export, _context) {
|
System.register([], function (_export, _context) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var _, _createClass, ColorModeDiscrete;
|
var ColorModeDiscrete;
|
||||||
|
|
||||||
function _classCallCheck(instance, Constructor) {
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||||
if (!(instance instanceof Constructor)) {
|
|
||||||
throw new TypeError("Cannot call a class as a function");
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
}
|
|
||||||
}
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
setters: [function (_lodash) {
|
setters: [],
|
||||||
_ = _lodash.default;
|
|
||||||
}],
|
|
||||||
execute: function () {
|
execute: function () {
|
||||||
_createClass = function () {
|
// Helper methods to handle discrete color mode
|
||||||
function defineProperties(target, props) {
|
_export("ColorModeDiscrete", ColorModeDiscrete =
|
||||||
for (var i = 0; i < props.length; i++) {
|
/*#__PURE__*/
|
||||||
var descriptor = props[i];
|
function () {
|
||||||
descriptor.enumerable = descriptor.enumerable || false;
|
|
||||||
descriptor.configurable = true;
|
|
||||||
if ("value" in descriptor) descriptor.writable = true;
|
|
||||||
Object.defineProperty(target, descriptor.key, descriptor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return function (Constructor, protoProps, staticProps) {
|
|
||||||
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
||||||
if (staticProps) defineProperties(Constructor, staticProps);
|
|
||||||
return Constructor;
|
|
||||||
};
|
|
||||||
}();
|
|
||||||
|
|
||||||
_export("ColorModeDiscrete", ColorModeDiscrete = function () {
|
|
||||||
function ColorModeDiscrete(scope) {
|
function ColorModeDiscrete(scope) {
|
||||||
_classCallCheck(this, ColorModeDiscrete);
|
_classCallCheck(this, ColorModeDiscrete);
|
||||||
|
|
||||||
|
_defineProperty(this, "scope", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "panelCtrl", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "panel", void 0);
|
||||||
|
|
||||||
this.scope = scope;
|
this.scope = scope;
|
||||||
this.panelCtrl = scope.ctrl;
|
this.panelCtrl = scope.ctrl;
|
||||||
this.panel = scope.ctrl.panel;
|
this.panel = scope.ctrl.panel;
|
||||||
}
|
} // get tooltip for each value ordered by thresholds priority
|
||||||
|
|
||||||
// get tooltip for each value ordered by thresholds priority
|
|
||||||
|
|
||||||
|
|
||||||
_createClass(ColorModeDiscrete, [{
|
_createClass(ColorModeDiscrete, [{
|
||||||
@@ -62,52 +51,89 @@ System.register(["lodash"], function (_export, _context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return tooltips;
|
return tooltips;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "getNotMatchedValues",
|
key: "getNotMatchedValues",
|
||||||
value: function getNotMatchedValues(values) {
|
value: function getNotMatchedValues(values) {
|
||||||
var notMatched = [];
|
var notMatched = [];
|
||||||
|
|
||||||
for (var j = 0; j < values.length; j++) {
|
for (var j = 0; j < values.length; j++) {
|
||||||
if (!this.getMatchedThreshold(values[j])) {
|
if (!this.getMatchedThreshold(values[j])) {
|
||||||
notMatched.push(values[j]);
|
notMatched.push(values[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return notMatched;
|
return notMatched;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "getNotColoredValues",
|
key: "getNotColoredValues",
|
||||||
value: function getNotColoredValues(values) {
|
value: function getNotColoredValues(values) {
|
||||||
var notMatched = [];
|
var notMatched = [];
|
||||||
|
|
||||||
for (var j = 0; j < values.length; j++) {
|
for (var j = 0; j < values.length; j++) {
|
||||||
var threshold = this.getMatchedThreshold(values[j]);
|
var threshold = this.getMatchedThreshold(values[j]);
|
||||||
|
|
||||||
if (!threshold || !threshold.color || threshold.color == "") {
|
if (!threshold || !threshold.color || threshold.color == "") {
|
||||||
notMatched.push(values[j]);
|
notMatched.push(values[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return notMatched;
|
return notMatched;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "getDiscreteColor",
|
key: "getDiscreteColor",
|
||||||
value: function getDiscreteColor(index) {
|
value: function getDiscreteColor(index) {
|
||||||
var color = this.getThreshold(index).color;
|
var color = this.getThreshold(index).color;
|
||||||
|
|
||||||
if (!color || color == "") {
|
if (!color || color == "") {
|
||||||
return 'rgba(0,0,0,1)';
|
return 'rgba(0,0,0,1)';
|
||||||
}
|
}
|
||||||
|
|
||||||
return color;
|
return color;
|
||||||
}
|
} // returns color from first matched thresold in order from 0 to thresholds.length
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
key: "getBucketColor",
|
key: "getBucketColor",
|
||||||
value: function getBucketColor(values) {
|
value: function getBucketColor(values) {
|
||||||
var thresholds = this.panel.color.thresholds;
|
var thresholds = this.panel.color.thresholds;
|
||||||
|
|
||||||
|
if (!values || values.length == 0) {
|
||||||
|
// treat as null value
|
||||||
|
return this.getMatchedThreshold(null).color;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (values.length == 1) {
|
||||||
|
var threshold = this.getMatchedThreshold(values[0]);
|
||||||
|
|
||||||
|
if (!threshold || !threshold.color || threshold.color == "") {
|
||||||
|
return 'rgba(0,0,0,1)';
|
||||||
|
} else {
|
||||||
|
return threshold.color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var isAllValuesNulls = true;
|
||||||
|
|
||||||
|
for (var j = 0; j < values.length; j++) {
|
||||||
|
if (values[j] != null) {
|
||||||
|
isAllValuesNulls = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isAllValuesNulls) {
|
||||||
|
return this.getMatchedThreshold(null).color;
|
||||||
|
}
|
||||||
|
|
||||||
for (var i = 0; i < thresholds.length; i++) {
|
for (var i = 0; i < thresholds.length; i++) {
|
||||||
for (var j = 0; j < values.length; j++) {
|
for (var _j = 0; _j < values.length; _j++) {
|
||||||
if (values[j] == thresholds[i].value) {
|
if (values[_j] == thresholds[i].value) {
|
||||||
return this.getDiscreteColor(i);
|
return this.getDiscreteColor(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'rgba(0,0,0,1)';
|
return 'rgba(0,0,0,1)';
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@@ -116,13 +142,17 @@ System.register(["lodash"], function (_export, _context) {
|
|||||||
if (!this.panelCtrl.cardsData) {
|
if (!this.panelCtrl.cardsData) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.panelCtrl.cardsData.noColorDefined = false;
|
this.panelCtrl.cardsData.noColorDefined = false;
|
||||||
var cards = this.panelCtrl.cardsData.cards;
|
var cards = this.panelCtrl.cardsData.cards;
|
||||||
|
|
||||||
for (var i = 0; i < cards.length; i++) {
|
for (var i = 0; i < cards.length; i++) {
|
||||||
cards[i].noColorDefined = false;
|
cards[i].noColorDefined = false;
|
||||||
var values = cards[i].values;
|
var values = cards[i].values;
|
||||||
|
|
||||||
for (var j = 0; j < values.length; j++) {
|
for (var j = 0; j < values.length; j++) {
|
||||||
var threshold = this.getMatchedThreshold(values[j]);
|
var threshold = this.getMatchedThreshold(values[j]);
|
||||||
|
|
||||||
if (!threshold || !threshold.color || threshold.color == "") {
|
if (!threshold || !threshold.color || threshold.color == "") {
|
||||||
cards[i].noColorDefined = true;
|
cards[i].noColorDefined = true;
|
||||||
this.panelCtrl.cardsData.noColorDefined = true;
|
this.panelCtrl.cardsData.noColorDefined = true;
|
||||||
@@ -135,7 +165,7 @@ System.register(["lodash"], function (_export, _context) {
|
|||||||
key: "getMatchedThreshold",
|
key: "getMatchedThreshold",
|
||||||
value: function getMatchedThreshold(value) {
|
value: function getMatchedThreshold(value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
if (this.panel.color.nullPointMode == 'as empty') {
|
if (this.panel.nullPointMode == 'as empty') {
|
||||||
// FIXME: make this explicit for user
|
// FIXME: make this explicit for user
|
||||||
// Right now this color never used because null as empty handles in getCardOpacity method.
|
// Right now this color never used because null as empty handles in getCardOpacity method.
|
||||||
return {
|
return {
|
||||||
@@ -149,17 +179,20 @@ System.register(["lodash"], function (_export, _context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var thresholds = this.panel.color.thresholds;
|
var thresholds = this.panel.color.thresholds;
|
||||||
|
|
||||||
for (var k = 0; k < thresholds.length; k++) {
|
for (var k = 0; k < thresholds.length; k++) {
|
||||||
if (value == thresholds[k].value) {
|
if (value == thresholds[k].value) {
|
||||||
return thresholds[k];
|
return thresholds[k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "getThreshold",
|
key: "getThreshold",
|
||||||
value: function getThreshold(index) {
|
value: function getThreshold(index) {
|
||||||
var thresholds = this.panel.color.thresholds;
|
var thresholds = this.panel.color.thresholds;
|
||||||
|
|
||||||
if (index < 0 || index >= thresholds.length == null) {
|
if (index < 0 || index >= thresholds.length == null) {
|
||||||
return {
|
return {
|
||||||
"color": "rgba(0,0,0,0)",
|
"color": "rgba(0,0,0,0)",
|
||||||
@@ -167,6 +200,7 @@ System.register(["lodash"], function (_export, _context) {
|
|||||||
"tooltip": "null"
|
"tooltip": "null"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return thresholds[index];
|
return thresholds[index];
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@@ -174,71 +208,126 @@ System.register(["lodash"], function (_export, _context) {
|
|||||||
value: function roundIntervalCeil(interval) {
|
value: function roundIntervalCeil(interval) {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case interval <= 10:
|
case interval <= 10:
|
||||||
return 10; // 0.01s
|
return 10;
|
||||||
|
// 0.01s
|
||||||
|
|
||||||
case interval <= 20:
|
case interval <= 20:
|
||||||
return 20; // 0.02s
|
return 20;
|
||||||
|
// 0.02s
|
||||||
|
|
||||||
case interval <= 50:
|
case interval <= 50:
|
||||||
return 50; // 0.05s
|
return 50;
|
||||||
|
// 0.05s
|
||||||
|
|
||||||
case interval <= 100:
|
case interval <= 100:
|
||||||
return 100; // 0.1s
|
return 100;
|
||||||
|
// 0.1s
|
||||||
|
|
||||||
case interval <= 200:
|
case interval <= 200:
|
||||||
return 200; // 0.2s
|
return 200;
|
||||||
|
// 0.2s
|
||||||
|
|
||||||
case interval <= 500:
|
case interval <= 500:
|
||||||
return 500; // 0.5s
|
return 500;
|
||||||
|
// 0.5s
|
||||||
|
|
||||||
case interval <= 1000:
|
case interval <= 1000:
|
||||||
return 1000; // 1s
|
return 1000;
|
||||||
|
// 1s
|
||||||
|
|
||||||
case interval <= 2000:
|
case interval <= 2000:
|
||||||
return 2000; // 2s
|
return 2000;
|
||||||
|
// 2s
|
||||||
|
|
||||||
case interval <= 5000:
|
case interval <= 5000:
|
||||||
return 5000; // 5s
|
return 5000;
|
||||||
|
// 5s
|
||||||
|
|
||||||
case interval <= 10000:
|
case interval <= 10000:
|
||||||
return 10000; // 10s
|
return 10000;
|
||||||
|
// 10s
|
||||||
|
|
||||||
case interval <= 15000:
|
case interval <= 15000:
|
||||||
return 15000; // 15s
|
return 15000;
|
||||||
|
// 15s
|
||||||
|
|
||||||
case interval <= 20000:
|
case interval <= 20000:
|
||||||
return 20000; // 20s
|
return 20000;
|
||||||
|
// 20s
|
||||||
|
|
||||||
case interval <= 30000:
|
case interval <= 30000:
|
||||||
return 30000; // 30s
|
return 30000;
|
||||||
|
// 30s
|
||||||
|
|
||||||
case interval <= 60000:
|
case interval <= 60000:
|
||||||
return 60000; // 1m
|
return 60000;
|
||||||
|
// 1m
|
||||||
|
|
||||||
case interval <= 120000:
|
case interval <= 120000:
|
||||||
return 120000; // 2m
|
return 120000;
|
||||||
|
// 2m
|
||||||
|
|
||||||
case interval <= 300000:
|
case interval <= 300000:
|
||||||
return 300000; // 5m
|
return 300000;
|
||||||
|
// 5m
|
||||||
|
|
||||||
case interval <= 600000:
|
case interval <= 600000:
|
||||||
return 600000; // 10m
|
return 600000;
|
||||||
|
// 10m
|
||||||
|
|
||||||
case interval <= 900000:
|
case interval <= 900000:
|
||||||
return 900000; // 15m
|
return 900000;
|
||||||
|
// 15m
|
||||||
|
|
||||||
case interval <= 1200000:
|
case interval <= 1200000:
|
||||||
return 1200000; // 20m
|
return 1200000;
|
||||||
|
// 20m
|
||||||
|
|
||||||
case interval <= 1800000:
|
case interval <= 1800000:
|
||||||
return 1800000; // 30m
|
return 1800000;
|
||||||
|
// 30m
|
||||||
|
|
||||||
case interval <= 3600000:
|
case interval <= 3600000:
|
||||||
return 3600000; // 1h
|
return 3600000;
|
||||||
|
// 1h
|
||||||
|
|
||||||
case interval <= 7200000:
|
case interval <= 7200000:
|
||||||
return 7200000; // 2h
|
return 7200000;
|
||||||
|
// 2h
|
||||||
|
|
||||||
case interval <= 10800000:
|
case interval <= 10800000:
|
||||||
return 10800000; // 3h
|
return 10800000;
|
||||||
|
// 3h
|
||||||
|
|
||||||
case interval <= 21600000:
|
case interval <= 21600000:
|
||||||
return 21600000; // 6h
|
return 21600000;
|
||||||
|
// 6h
|
||||||
|
|
||||||
case interval <= 43200000:
|
case interval <= 43200000:
|
||||||
return 43200000; // 12h
|
return 43200000;
|
||||||
|
// 12h
|
||||||
|
|
||||||
case interval <= 86400000:
|
case interval <= 86400000:
|
||||||
return 86400000; // 1d
|
return 86400000;
|
||||||
|
// 1d
|
||||||
|
|
||||||
case interval <= 604800000:
|
case interval <= 604800000:
|
||||||
return 604800000; // 1w
|
return 604800000;
|
||||||
|
// 1w
|
||||||
|
|
||||||
case interval <= 2592000000:
|
case interval <= 2592000000:
|
||||||
return 2592000000; // 30d
|
return 2592000000;
|
||||||
|
// 30d
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 31536000000; // 1y
|
return 31536000000;
|
||||||
|
// 1y
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return ColorModeDiscrete;
|
return ColorModeDiscrete;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
_export("ColorModeDiscrete", ColorModeDiscrete);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
.status-heatmap-canvas-wrapper {
|
.status-heatmap-canvas-wrapper {
|
||||||
cursor: crosshair; }
|
cursor: crosshair; }
|
||||||
|
.status-heatmap-canvas-wrapper .datapoints-warning {
|
||||||
|
pointer-events: none; }
|
||||||
.status-heatmap-canvas-wrapper .datapoints-warning span {
|
.status-heatmap-canvas-wrapper .datapoints-warning span {
|
||||||
background-color: #333333;
|
background-color: #333333;
|
||||||
color: #d8d9da;
|
color: #d8d9da;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"mappings": "AAAA,8BAA+B;EAE7B,MAAM,EAAE,SAAS;EAEjB,uDAAyB;IACzB,gBAAgB,ECDL,OAAO;IDElB,KAAK,ECLM,OAAO;IDMlB,OAAO,EAAE,GAAG;;AAId,qBAAsB;EACpB,QAAQ,EAAE,QAAQ;EAGhB,sCAAK;IACH,IAAI,ECfG,OAAO;IDgBd,KAAK,EChBE,OAAO;IDiBd,SAAS,EEjBE,IAAI;EFoBjB,sCAAK;IACH,OAAO,EAAE,GAAG;IACZ,MAAM,ECrBM,OAAO;ED0BvB,yBAAI;IACF,cAAc,EAAE,IAAI;IAEpB,8BAAK;MACH,cAAc,EAAE,cAAc;;AAKpC,kBAAmB;EACjB,WAAW,EAAE,MAAM;EACnB,SAAS,EEvCI,IAAI;EFwCjB,gBAAgB,ECrCC,OAAO;EDsCxB,KAAK,ECxCM,OAAO;ED0ClB,iCAAe;IACb,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,8CAA8C;;AAI/D,yBAA0B;EACxB,IAAI,EClDY,OAAO;;ADsDvB,8BAAK;EACH,MAAM,EAAE,OAAgB;EACxB,YAAY,EAAE,CAAC;;AAInB,yBAA0B;EACxB,YAAY,EAAE,CAAC;EACf,IAAI,EAAE,wBAAwB;EAC9B,MAAM,EAAE,wBAAwB;;AAIlC,8BAA+B;EAC7B,MAAM,EAAE,MAAM;EAEd,kCAAI;IACF,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,MAAM;EAIrB,2DAA6B;IAC3B,UAAU,EAAE,GAAG;EAGjB,4DAA8B;IAC5B,OAAO,EAAE,YAAY;EAIrB,+CAAK;IACH,IAAI,ECxFG,OAAO;IDyFd,KAAK,ECzFE,OAAO;ID0Fd,SAAS,EE1FE,IAAI;EF6FjB,+CAAK;IACH,OAAO,EAAE,GAAG;IACZ,MAAM,EC9FM,OAAO;EDiGrB,kDAAQ;IACN,OAAO,EAAE,GAAG;IACZ,MAAM,ECnGM,OAAO",
|
"mappings": "AAAA,8BAA+B;EAE7B,MAAM,EAAE,SAAS;EAGjB,kDAAoB;IAClB,cAAc,EAAE,IAAI;EAGtB,uDAAyB;IACzB,gBAAgB,ECNL,OAAO;IDOlB,KAAK,ECVM,OAAO;IDWlB,OAAO,EAAE,GAAG;;AAId,qBAAsB;EACpB,QAAQ,EAAE,QAAQ;EAGhB,sCAAK;IACH,IAAI,ECpBG,OAAO;IDqBd,KAAK,ECrBE,OAAO;IDsBd,SAAS,EEtBE,IAAI;EFyBjB,sCAAK;IACH,OAAO,EAAE,GAAG;IACZ,MAAM,EC1BM,OAAO;ED+BvB,yBAAI;IACF,cAAc,EAAE,IAAI;IAEpB,8BAAK;MACH,cAAc,EAAE,cAAc;;AAKpC,kBAAmB;EACjB,WAAW,EAAE,MAAM;EACnB,SAAS,EE5CI,IAAI;EF6CjB,gBAAgB,EC1CC,OAAO;ED2CxB,KAAK,EC7CM,OAAO;ED+ClB,iCAAe;IACb,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,8CAA8C;;AAI/D,yBAA0B;EACxB,IAAI,ECvDY,OAAO;;AD2DvB,8BAAK;EACH,MAAM,EAAE,OAAgB;EACxB,YAAY,EAAE,CAAC;;AAInB,yBAA0B;EACxB,YAAY,EAAE,CAAC;EACf,IAAI,EAAE,wBAAwB;EAC9B,MAAM,EAAE,wBAAwB;;AAIlC,8BAA+B;EAC7B,MAAM,EAAE,MAAM;EAEd,kCAAI;IACF,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,MAAM;EAIrB,2DAA6B;IAC3B,UAAU,EAAE,GAAG;EAGjB,4DAA8B;IAC5B,OAAO,EAAE,YAAY;EAIrB,+CAAK;IACH,IAAI,EC7FG,OAAO;ID8Fd,KAAK,EC9FE,OAAO;ID+Fd,SAAS,EE/FE,IAAI;EFkGjB,+CAAK;IACH,OAAO,EAAE,GAAG;IACZ,MAAM,ECnGM,OAAO;EDsGrB,kDAAQ;IACN,OAAO,EAAE,GAAG;IACZ,MAAM,ECxGM,OAAO",
|
||||||
"sources": ["../../src/css/_statusmap.scss","../../src/css/_variables.dark.scss","../../src/css/_variables.scss"],
|
"sources": ["../../src/css/_statusmap.scss","../../src/css/_variables.dark.scss","../../src/css/_variables.scss"],
|
||||||
"names": [],
|
"names": [],
|
||||||
"file": "statusmap.dark.css"
|
"file": "statusmap.dark.css"
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
.status-heatmap-canvas-wrapper {
|
.status-heatmap-canvas-wrapper {
|
||||||
cursor: crosshair; }
|
cursor: crosshair; }
|
||||||
|
.status-heatmap-canvas-wrapper .datapoints-warning {
|
||||||
|
pointer-events: none; }
|
||||||
.status-heatmap-canvas-wrapper .datapoints-warning span {
|
.status-heatmap-canvas-wrapper .datapoints-warning span {
|
||||||
background-color: #e9edf2;
|
background-color: #e9edf2;
|
||||||
color: #52545c;
|
color: #52545c;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"mappings": "AAAA,8BAA+B;EAE7B,MAAM,EAAE,SAAS;EAEjB,uDAAyB;IACzB,gBAAgB,ECDL,OAAO;IDElB,KAAK,ECLM,OAAO;IDMlB,OAAO,EAAE,GAAG;;AAId,qBAAsB;EACpB,QAAQ,EAAE,QAAQ;EAGhB,sCAAK;IACH,IAAI,ECfG,OAAO;IDgBd,KAAK,EChBE,OAAO;IDiBd,SAAS,EEjBE,IAAI;EFoBjB,sCAAK;IACH,OAAO,EAAE,GAAG;IACZ,MAAM,ECrBM,OAAO;ED0BvB,yBAAI;IACF,cAAc,EAAE,IAAI;IAEpB,8BAAK;MACH,cAAc,EAAE,cAAc;;AAKpC,kBAAmB;EACjB,WAAW,EAAE,MAAM;EACnB,SAAS,EEvCI,IAAI;EFwCjB,gBAAgB,ECrCC,OAAO;EDsCxB,KAAK,ECxCM,OAAO;ED0ClB,iCAAe;IACb,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,8CAA8C;;AAI/D,yBAA0B;EACxB,IAAI,EClDY,OAAO;;ADsDvB,8BAAK;EACH,MAAM,EAAE,OAAgB;EACxB,YAAY,EAAE,CAAC;;AAInB,yBAA0B;EACxB,YAAY,EAAE,CAAC;EACf,IAAI,EAAE,wBAAwB;EAC9B,MAAM,EAAE,wBAAwB;;AAIlC,8BAA+B;EAC7B,MAAM,EAAE,MAAM;EAEd,kCAAI;IACF,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,MAAM;EAIrB,2DAA6B;IAC3B,UAAU,EAAE,GAAG;EAGjB,4DAA8B;IAC5B,OAAO,EAAE,YAAY;EAIrB,+CAAK;IACH,IAAI,ECxFG,OAAO;IDyFd,KAAK,ECzFE,OAAO;ID0Fd,SAAS,EE1FE,IAAI;EF6FjB,+CAAK;IACH,OAAO,EAAE,GAAG;IACZ,MAAM,EC9FM,OAAO;EDiGrB,kDAAQ;IACN,OAAO,EAAE,GAAG;IACZ,MAAM,ECnGM,OAAO",
|
"mappings": "AAAA,8BAA+B;EAE7B,MAAM,EAAE,SAAS;EAGjB,kDAAoB;IAClB,cAAc,EAAE,IAAI;EAGtB,uDAAyB;IACzB,gBAAgB,ECNL,OAAO;IDOlB,KAAK,ECVM,OAAO;IDWlB,OAAO,EAAE,GAAG;;AAId,qBAAsB;EACpB,QAAQ,EAAE,QAAQ;EAGhB,sCAAK;IACH,IAAI,ECpBG,OAAO;IDqBd,KAAK,ECrBE,OAAO;IDsBd,SAAS,EEtBE,IAAI;EFyBjB,sCAAK;IACH,OAAO,EAAE,GAAG;IACZ,MAAM,EC1BM,OAAO;ED+BvB,yBAAI;IACF,cAAc,EAAE,IAAI;IAEpB,8BAAK;MACH,cAAc,EAAE,cAAc;;AAKpC,kBAAmB;EACjB,WAAW,EAAE,MAAM;EACnB,SAAS,EE5CI,IAAI;EF6CjB,gBAAgB,EC1CC,OAAO;ED2CxB,KAAK,EC7CM,OAAO;ED+ClB,iCAAe;IACb,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,8CAA8C;;AAI/D,yBAA0B;EACxB,IAAI,ECvDY,OAAO;;AD2DvB,8BAAK;EACH,MAAM,EAAE,OAAgB;EACxB,YAAY,EAAE,CAAC;;AAInB,yBAA0B;EACxB,YAAY,EAAE,CAAC;EACf,IAAI,EAAE,wBAAwB;EAC9B,MAAM,EAAE,wBAAwB;;AAIlC,8BAA+B;EAC7B,MAAM,EAAE,MAAM;EAEd,kCAAI;IACF,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,MAAM;EAIrB,2DAA6B;IAC3B,UAAU,EAAE,GAAG;EAGjB,4DAA8B;IAC5B,OAAO,EAAE,YAAY;EAIrB,+CAAK;IACH,IAAI,EC7FG,OAAO;ID8Fd,KAAK,EC9FE,OAAO;ID+Fd,SAAS,EE/FE,IAAI;EFkGjB,+CAAK;IACH,OAAO,EAAE,GAAG;IACZ,MAAM,ECnGM,OAAO;EDsGrB,kDAAQ;IACN,OAAO,EAAE,GAAG;IACZ,MAAM,ECxGM,OAAO",
|
||||||
"sources": ["../../src/css/_statusmap.scss","../../src/css/_variables.light.scss","../../src/css/_variables.scss"],
|
"sources": ["../../src/css/_statusmap.scss","../../src/css/_variables.light.scss","../../src/css/_variables.scss"],
|
||||||
"names": [],
|
"names": [],
|
||||||
"file": "statusmap.light.css"
|
"file": "statusmap.light.css"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 11 KiB |
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Accent.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,Y;;;yBAEQA,OAAO,kDAAP,C","file":"Accent.js","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666\");\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Accent.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;;yBAEQA,MAAM,CAAC,kDAAD,C","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666\");\n"],"file":"Accent.js"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Dark2.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,Y;;;yBAEQA,OAAO,kDAAP,C","file":"Dark2.js","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666\");\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Dark2.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;;yBAEQA,MAAM,CAAC,kDAAD,C","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666\");\n"],"file":"Dark2.js"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Paired.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,Y;;;yBAEQA,OAAO,0EAAP,C","file":"Paired.js","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928\");\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Paired.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;;yBAEQA,MAAM,CAAC,0EAAD,C","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928\");\n"],"file":"Paired.js"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Pastel1.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,Y;;;yBAEQA,OAAO,wDAAP,C","file":"Pastel1.js","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2\");\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Pastel1.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;;yBAEQA,MAAM,CAAC,wDAAD,C","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2\");\n"],"file":"Pastel1.js"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Pastel2.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,Y;;;yBAEQA,OAAO,kDAAP,C","file":"Pastel2.js","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc\");\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Pastel2.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;;yBAEQA,MAAM,CAAC,kDAAD,C","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc\");\n"],"file":"Pastel2.js"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Set1.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,Y;;;yBAEQA,OAAO,wDAAP,C","file":"Set1.js","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999\");\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Set1.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;;yBAEQA,MAAM,CAAC,wDAAD,C","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999\");\n"],"file":"Set1.js"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Set2.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,Y;;;yBAEQA,OAAO,kDAAP,C","file":"Set2.js","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3\");\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Set2.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;;yBAEQA,MAAM,CAAC,kDAAD,C","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3\");\n"],"file":"Set2.js"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Set3.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,Y;;;yBAEQA,OAAO,0EAAP,C","file":"Set3.js","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f\");\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/categorical/Set3.js"],"names":["colors"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;;yBAEQA,MAAM,CAAC,0EAAD,C","sourcesContent":["import colors from \"../colors\";\n\nexport default colors(\"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f\");\n"],"file":"Set3.js"}
|
||||||
@@ -7,9 +7,12 @@ System.register([], function (_export, _context) {
|
|||||||
var n = specifier.length / 6 | 0,
|
var n = specifier.length / 6 | 0,
|
||||||
colors = new Array(n),
|
colors = new Array(n),
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
while (i < n) {
|
while (i < n) {
|
||||||
colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
|
colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
|
||||||
}return colors;
|
}
|
||||||
|
|
||||||
|
return colors;
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../src/libs/d3-scale-chromatic/colors.js"],"names":["specifier","n","length","colors","Array","i","slice"],"mappings":";;;;;qBAAe,UAASA,SAAT,EAAoB;AACjC,QAAIC,IAAID,UAAUE,MAAV,GAAmB,CAAnB,GAAuB,CAA/B;AAAA,QAAkCC,SAAS,IAAIC,KAAJ,CAAUH,CAAV,CAA3C;AAAA,QAAyDI,IAAI,CAA7D;AACA,WAAOA,IAAIJ,CAAX;AAAcE,aAAOE,CAAP,IAAY,MAAML,UAAUM,KAAV,CAAgBD,IAAI,CAApB,EAAuB,EAAEA,CAAF,GAAM,CAA7B,CAAlB;AAAd,KACA,OAAOF,MAAP;AACD,G","file":"colors.js","sourcesContent":["export default function(specifier) {\n var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;\n while (i < n) colors[i] = \"#\" + specifier.slice(i * 6, ++i * 6);\n return colors;\n}\n"]}
|
{"version":3,"sources":["../../../src/libs/d3-scale-chromatic/colors.js"],"names":["specifier","n","length","colors","Array","i","slice"],"mappings":";;;;;qBAAe,UAASA,SAAT,EAAoB;AACjC,QAAIC,CAAC,GAAGD,SAAS,CAACE,MAAV,GAAmB,CAAnB,GAAuB,CAA/B;AAAA,QAAkCC,MAAM,GAAG,IAAIC,KAAJ,CAAUH,CAAV,CAA3C;AAAA,QAAyDI,CAAC,GAAG,CAA7D;;AACA,WAAOA,CAAC,GAAGJ,CAAX;AAAcE,MAAAA,MAAM,CAACE,CAAD,CAAN,GAAY,MAAML,SAAS,CAACM,KAAV,CAAgBD,CAAC,GAAG,CAApB,EAAuB,EAAEA,CAAF,GAAM,CAA7B,CAAlB;AAAd;;AACA,WAAOF,MAAP;AACD,G","sourcesContent":["export default function(specifier) {\n var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;\n while (i < n) colors[i] = \"#\" + specifier.slice(i * 6, ++i * 6);\n return colors;\n}\n"],"file":"colors.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("d8b365f5f5f55ab4ac", "a6611adfc27d80cdc1018571", "a6611adfc27df5f5f580cdc1018571", "8c510ad8b365f6e8c3c7eae55ab4ac01665e", "8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e", "8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e", "8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e", "5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30", "5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(colors));
|
_export("scheme", scheme = new Array(3).concat("d8b365f5f5f55ab4ac", "a6611adfc27d80cdc1018571", "a6611adfc27df5f5f580cdc1018571", "8c510ad8b365f6e8c3c7eae55ab4ac01665e", "8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e", "8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e", "8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e", "5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30", "5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/BrBG.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"BrBG.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"d8b365f5f5f55ab4ac\",\n \"a6611adfc27d80cdc1018571\",\n \"a6611adfc27df5f5f580cdc1018571\",\n \"8c510ad8b365f6e8c3c7eae55ab4ac01665e\",\n \"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e\",\n \"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e\",\n \"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e\",\n \"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30\",\n \"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/BrBG.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"d8b365f5f5f55ab4ac\",\n \"a6611adfc27d80cdc1018571\",\n \"a6611adfc27df5f5f580cdc1018571\",\n \"8c510ad8b365f6e8c3c7eae55ab4ac01665e\",\n \"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e\",\n \"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e\",\n \"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e\",\n \"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30\",\n \"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"BrBG.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("91cf60ffffbffc8d59", "1a9641a6d96afdae61d7191c", "1a9641a6d96affffbffdae61d7191c", "1a985091cf60d9ef8bfee08bfc8d59d73027", "1a985091cf60d9ef8bffffbffee08bfc8d59d73027", "1a985066bd63a6d96ad9ef8bfee08bfdae61f46d43d73027", "1a985066bd63a6d96ad9ef8bffffbffee08bfdae61f46d43d73027", "0068371a985066bd63a6d96ad9ef8bfee08bfdae61f46d43d73027a50026", "0068371a985066bd63a6d96ad9ef8bffffbffee08bfdae61f46d43d73027a50026").map(colors));
|
_export("scheme", scheme = new Array(3).concat("91cf60ffffbffc8d59", "1a9641a6d96afdae61d7191c", "1a9641a6d96affffbffdae61d7191c", "1a985091cf60d9ef8bfee08bfc8d59d73027", "1a985091cf60d9ef8bffffbffee08bfc8d59d73027", "1a985066bd63a6d96ad9ef8bfee08bfdae61f46d43d73027", "1a985066bd63a6d96ad9ef8bffffbffee08bfdae61f46d43d73027", "0068371a985066bd63a6d96ad9ef8bfee08bfdae61f46d43d73027a50026", "0068371a985066bd63a6d96ad9ef8bffffbffee08bfdae61f46d43d73027a50026").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/GnYlRd.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"GnYlRd.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"91cf60ffffbffc8d59\",\n \"1a9641a6d96afdae61d7191c\",\n \"1a9641a6d96affffbffdae61d7191c\",\n \"1a985091cf60d9ef8bfee08bfc8d59d73027\",\n \"1a985091cf60d9ef8bffffbffee08bfc8d59d73027\",\n \"1a985066bd63a6d96ad9ef8bfee08bfdae61f46d43d73027\",\n \"1a985066bd63a6d96ad9ef8bffffbffee08bfdae61f46d43d73027\",\n \"0068371a985066bd63a6d96ad9ef8bfee08bfdae61f46d43d73027a50026\",\n \"0068371a985066bd63a6d96ad9ef8bffffbffee08bfdae61f46d43d73027a50026\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/GnYlRd.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"91cf60ffffbffc8d59\",\n \"1a9641a6d96afdae61d7191c\",\n \"1a9641a6d96affffbffdae61d7191c\",\n \"1a985091cf60d9ef8bfee08bfc8d59d73027\",\n \"1a985091cf60d9ef8bffffbffee08bfc8d59d73027\",\n \"1a985066bd63a6d96ad9ef8bfee08bfdae61f46d43d73027\",\n \"1a985066bd63a6d96ad9ef8bffffbffee08bfdae61f46d43d73027\",\n \"0068371a985066bd63a6d96ad9ef8bfee08bfdae61f46d43d73027a50026\",\n \"0068371a985066bd63a6d96ad9ef8bffffbffee08bfdae61f46d43d73027a50026\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"GnYlRd.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("af8dc3f7f7f77fbf7b", "7b3294c2a5cfa6dba0008837", "7b3294c2a5cff7f7f7a6dba0008837", "762a83af8dc3e7d4e8d9f0d37fbf7b1b7837", "762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837", "762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837", "762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837", "40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b", "40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(colors));
|
_export("scheme", scheme = new Array(3).concat("af8dc3f7f7f77fbf7b", "7b3294c2a5cfa6dba0008837", "7b3294c2a5cff7f7f7a6dba0008837", "762a83af8dc3e7d4e8d9f0d37fbf7b1b7837", "762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837", "762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837", "762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837", "40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b", "40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/PRGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"PRGn.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"af8dc3f7f7f77fbf7b\",\n \"7b3294c2a5cfa6dba0008837\",\n \"7b3294c2a5cff7f7f7a6dba0008837\",\n \"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837\",\n \"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837\",\n \"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837\",\n \"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837\",\n \"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b\",\n \"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/PRGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"af8dc3f7f7f77fbf7b\",\n \"7b3294c2a5cfa6dba0008837\",\n \"7b3294c2a5cff7f7f7a6dba0008837\",\n \"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837\",\n \"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837\",\n \"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837\",\n \"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837\",\n \"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b\",\n \"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"PRGn.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("e9a3c9f7f7f7a1d76a", "d01c8bf1b6dab8e1864dac26", "d01c8bf1b6daf7f7f7b8e1864dac26", "c51b7de9a3c9fde0efe6f5d0a1d76a4d9221", "c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221", "c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221", "c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221", "8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419", "8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(colors));
|
_export("scheme", scheme = new Array(3).concat("e9a3c9f7f7f7a1d76a", "d01c8bf1b6dab8e1864dac26", "d01c8bf1b6daf7f7f7b8e1864dac26", "c51b7de9a3c9fde0efe6f5d0a1d76a4d9221", "c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221", "c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221", "c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221", "8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419", "8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/PiYG.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"PiYG.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e9a3c9f7f7f7a1d76a\",\n \"d01c8bf1b6dab8e1864dac26\",\n \"d01c8bf1b6daf7f7f7b8e1864dac26\",\n \"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221\",\n \"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221\",\n \"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221\",\n \"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221\",\n \"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419\",\n \"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/PiYG.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e9a3c9f7f7f7a1d76a\",\n \"d01c8bf1b6dab8e1864dac26\",\n \"d01c8bf1b6daf7f7f7b8e1864dac26\",\n \"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221\",\n \"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221\",\n \"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221\",\n \"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221\",\n \"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419\",\n \"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"PiYG.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("998ec3f7f7f7f1a340", "5e3c99b2abd2fdb863e66101", "5e3c99b2abd2f7f7f7fdb863e66101", "542788998ec3d8daebfee0b6f1a340b35806", "542788998ec3d8daebf7f7f7fee0b6f1a340b35806", "5427888073acb2abd2d8daebfee0b6fdb863e08214b35806", "5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806", "2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08", "2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(colors));
|
_export("scheme", scheme = new Array(3).concat("998ec3f7f7f7f1a340", "5e3c99b2abd2fdb863e66101", "5e3c99b2abd2f7f7f7fdb863e66101", "542788998ec3d8daebfee0b6f1a340b35806", "542788998ec3d8daebf7f7f7fee0b6f1a340b35806", "5427888073acb2abd2d8daebfee0b6fdb863e08214b35806", "5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806", "2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08", "2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/PuOr.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"PuOr.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"998ec3f7f7f7f1a340\",\n \"5e3c99b2abd2fdb863e66101\",\n \"5e3c99b2abd2f7f7f7fdb863e66101\",\n \"542788998ec3d8daebfee0b6f1a340b35806\",\n \"542788998ec3d8daebf7f7f7fee0b6f1a340b35806\",\n \"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806\",\n \"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806\",\n \"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08\",\n \"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/PuOr.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"998ec3f7f7f7f1a340\",\n \"5e3c99b2abd2fdb863e66101\",\n \"5e3c99b2abd2f7f7f7fdb863e66101\",\n \"542788998ec3d8daebfee0b6f1a340b35806\",\n \"542788998ec3d8daebf7f7f7fee0b6f1a340b35806\",\n \"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806\",\n \"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806\",\n \"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08\",\n \"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"PuOr.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("ef8a62f7f7f767a9cf", "ca0020f4a58292c5de0571b0", "ca0020f4a582f7f7f792c5de0571b0", "b2182bef8a62fddbc7d1e5f067a9cf2166ac", "b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac", "b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac", "b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac", "67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061", "67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(colors));
|
_export("scheme", scheme = new Array(3).concat("ef8a62f7f7f767a9cf", "ca0020f4a58292c5de0571b0", "ca0020f4a582f7f7f792c5de0571b0", "b2182bef8a62fddbc7d1e5f067a9cf2166ac", "b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac", "b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac", "b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac", "67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061", "67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/RdBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"RdBu.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62f7f7f767a9cf\",\n \"ca0020f4a58292c5de0571b0\",\n \"ca0020f4a582f7f7f792c5de0571b0\",\n \"b2182bef8a62fddbc7d1e5f067a9cf2166ac\",\n \"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac\",\n \"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac\",\n \"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac\",\n \"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061\",\n \"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/RdBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62f7f7f767a9cf\",\n \"ca0020f4a58292c5de0571b0\",\n \"ca0020f4a582f7f7f792c5de0571b0\",\n \"b2182bef8a62fddbc7d1e5f067a9cf2166ac\",\n \"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac\",\n \"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac\",\n \"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac\",\n \"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061\",\n \"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"RdBu.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("ef8a62ffffff999999", "ca0020f4a582bababa404040", "ca0020f4a582ffffffbababa404040", "b2182bef8a62fddbc7e0e0e09999994d4d4d", "b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d", "b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d", "b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d", "67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a", "67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(colors));
|
_export("scheme", scheme = new Array(3).concat("ef8a62ffffff999999", "ca0020f4a582bababa404040", "ca0020f4a582ffffffbababa404040", "b2182bef8a62fddbc7e0e0e09999994d4d4d", "b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d", "b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d", "b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d", "67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a", "67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/RdGy.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"RdGy.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62ffffff999999\",\n \"ca0020f4a582bababa404040\",\n \"ca0020f4a582ffffffbababa404040\",\n \"b2182bef8a62fddbc7e0e0e09999994d4d4d\",\n \"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d\",\n \"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d\",\n \"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d\",\n \"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a\",\n \"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/RdGy.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62ffffff999999\",\n \"ca0020f4a582bababa404040\",\n \"ca0020f4a582ffffffbababa404040\",\n \"b2182bef8a62fddbc7e0e0e09999994d4d4d\",\n \"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d\",\n \"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d\",\n \"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d\",\n \"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a\",\n \"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"RdGy.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("fc8d59ffffbf91bfdb", "d7191cfdae61abd9e92c7bb6", "d7191cfdae61ffffbfabd9e92c7bb6", "d73027fc8d59fee090e0f3f891bfdb4575b4", "d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4", "d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4", "d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4", "a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695", "a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(colors));
|
_export("scheme", scheme = new Array(3).concat("fc8d59ffffbf91bfdb", "d7191cfdae61abd9e92c7bb6", "d7191cfdae61ffffbfabd9e92c7bb6", "d73027fc8d59fee090e0f3f891bfdb4575b4", "d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4", "d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4", "d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4", "a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695", "a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/RdYlBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"RdYlBu.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91bfdb\",\n \"d7191cfdae61abd9e92c7bb6\",\n \"d7191cfdae61ffffbfabd9e92c7bb6\",\n \"d73027fc8d59fee090e0f3f891bfdb4575b4\",\n \"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4\",\n \"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4\",\n \"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4\",\n \"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695\",\n \"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/RdYlBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91bfdb\",\n \"d7191cfdae61abd9e92c7bb6\",\n \"d7191cfdae61ffffbfabd9e92c7bb6\",\n \"d73027fc8d59fee090e0f3f891bfdb4575b4\",\n \"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4\",\n \"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4\",\n \"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4\",\n \"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695\",\n \"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"RdYlBu.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("fc8d59ffffbf91cf60", "d7191cfdae61a6d96a1a9641", "d7191cfdae61ffffbfa6d96a1a9641", "d73027fc8d59fee08bd9ef8b91cf601a9850", "d73027fc8d59fee08bffffbfd9ef8b91cf601a9850", "d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850", "d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850", "a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837", "a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(colors));
|
_export("scheme", scheme = new Array(3).concat("fc8d59ffffbf91cf60", "d7191cfdae61a6d96a1a9641", "d7191cfdae61ffffbfa6d96a1a9641", "d73027fc8d59fee08bd9ef8b91cf601a9850", "d73027fc8d59fee08bffffbfd9ef8b91cf601a9850", "d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850", "d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850", "a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837", "a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/RdYlGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"RdYlGn.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91cf60\",\n \"d7191cfdae61a6d96a1a9641\",\n \"d7191cfdae61ffffbfa6d96a1a9641\",\n \"d73027fc8d59fee08bd9ef8b91cf601a9850\",\n \"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850\",\n \"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850\",\n \"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850\",\n \"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837\",\n \"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/RdYlGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91cf60\",\n \"d7191cfdae61a6d96a1a9641\",\n \"d7191cfdae61ffffbfa6d96a1a9641\",\n \"d73027fc8d59fee08bd9ef8b91cf601a9850\",\n \"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850\",\n \"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850\",\n \"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850\",\n \"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837\",\n \"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"RdYlGn.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("fc8d59ffffbf99d594", "d7191cfdae61abdda42b83ba", "d7191cfdae61ffffbfabdda42b83ba", "d53e4ffc8d59fee08be6f59899d5943288bd", "d53e4ffc8d59fee08bffffbfe6f59899d5943288bd", "d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd", "d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd", "9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2", "9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(colors));
|
_export("scheme", scheme = new Array(3).concat("fc8d59ffffbf99d594", "d7191cfdae61abdda42b83ba", "d7191cfdae61ffffbfabdda42b83ba", "d53e4ffc8d59fee08be6f59899d5943288bd", "d53e4ffc8d59fee08bffffbfe6f59899d5943288bd", "d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd", "d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd", "9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2", "9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/Spectral.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;;;yBAYLC,KAAKC,MAAL,C","file":"Spectral.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf99d594\",\n \"d7191cfdae61abdda42b83ba\",\n \"d7191cfdae61ffffbfabdda42b83ba\",\n \"d53e4ffc8d59fee08be6f59899d5943288bd\",\n \"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd\",\n \"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd\",\n \"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd\",\n \"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2\",\n \"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/diverging/Spectral.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlB,8DARkB,EASlB,oEATkB,EAUlBC,GAVkB,CAUdL,MAVc,C;;yBAYLC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf99d594\",\n \"d7191cfdae61abdda42b83ba\",\n \"d7191cfdae61ffffbfabdda42b83ba\",\n \"d53e4ffc8d59fee08be6f59899d5943288bd\",\n \"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd\",\n \"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd\",\n \"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd\",\n \"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2\",\n \"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"Spectral.js"}
|
||||||
@@ -5,213 +5,161 @@ System.register(["./categorical/Accent", "./categorical/Dark2", "./categorical/P
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
setters: [function (_categoricalAccent) {
|
setters: [function (_categoricalAccent) {
|
||||||
var _exportObj = {};
|
_export("schemeAccent", _categoricalAccent.default);
|
||||||
_exportObj.schemeAccent = _categoricalAccent.default;
|
|
||||||
|
|
||||||
_export(_exportObj);
|
|
||||||
}, function (_categoricalDark) {
|
}, function (_categoricalDark) {
|
||||||
var _exportObj2 = {};
|
_export("schemeDark2", _categoricalDark.default);
|
||||||
_exportObj2.schemeDark2 = _categoricalDark.default;
|
|
||||||
|
|
||||||
_export(_exportObj2);
|
|
||||||
}, function (_categoricalPaired) {
|
}, function (_categoricalPaired) {
|
||||||
var _exportObj3 = {};
|
_export("schemePaired", _categoricalPaired.default);
|
||||||
_exportObj3.schemePaired = _categoricalPaired.default;
|
|
||||||
|
|
||||||
_export(_exportObj3);
|
|
||||||
}, function (_categoricalPastel) {
|
}, function (_categoricalPastel) {
|
||||||
var _exportObj4 = {};
|
_export("schemePastel1", _categoricalPastel.default);
|
||||||
_exportObj4.schemePastel1 = _categoricalPastel.default;
|
|
||||||
|
|
||||||
_export(_exportObj4);
|
|
||||||
}, function (_categoricalPastel2) {
|
}, function (_categoricalPastel2) {
|
||||||
var _exportObj5 = {};
|
_export("schemePastel2", _categoricalPastel2.default);
|
||||||
_exportObj5.schemePastel2 = _categoricalPastel2.default;
|
|
||||||
|
|
||||||
_export(_exportObj5);
|
|
||||||
}, function (_categoricalSet) {
|
}, function (_categoricalSet) {
|
||||||
var _exportObj6 = {};
|
_export("schemeSet1", _categoricalSet.default);
|
||||||
_exportObj6.schemeSet1 = _categoricalSet.default;
|
|
||||||
|
|
||||||
_export(_exportObj6);
|
|
||||||
}, function (_categoricalSet2) {
|
}, function (_categoricalSet2) {
|
||||||
var _exportObj7 = {};
|
_export("schemeSet2", _categoricalSet2.default);
|
||||||
_exportObj7.schemeSet2 = _categoricalSet2.default;
|
|
||||||
|
|
||||||
_export(_exportObj7);
|
|
||||||
}, function (_categoricalSet3) {
|
}, function (_categoricalSet3) {
|
||||||
var _exportObj8 = {};
|
_export("schemeSet3", _categoricalSet3.default);
|
||||||
_exportObj8.schemeSet3 = _categoricalSet3.default;
|
|
||||||
|
|
||||||
_export(_exportObj8);
|
|
||||||
}, function (_divergingBrBG) {
|
}, function (_divergingBrBG) {
|
||||||
var _exportObj9 = {};
|
_export({
|
||||||
_exportObj9.interpolateBrBG = _divergingBrBG.default;
|
interpolateBrBG: _divergingBrBG.default,
|
||||||
_exportObj9.schemeBrBG = _divergingBrBG.scheme;
|
schemeBrBG: _divergingBrBG.scheme
|
||||||
|
});
|
||||||
_export(_exportObj9);
|
|
||||||
}, function (_divergingPRGn) {
|
}, function (_divergingPRGn) {
|
||||||
var _exportObj10 = {};
|
_export({
|
||||||
_exportObj10.interpolatePRGn = _divergingPRGn.default;
|
interpolatePRGn: _divergingPRGn.default,
|
||||||
_exportObj10.schemePRGn = _divergingPRGn.scheme;
|
schemePRGn: _divergingPRGn.scheme
|
||||||
|
});
|
||||||
_export(_exportObj10);
|
|
||||||
}, function (_divergingPiYG) {
|
}, function (_divergingPiYG) {
|
||||||
var _exportObj11 = {};
|
_export({
|
||||||
_exportObj11.interpolatePiYG = _divergingPiYG.default;
|
interpolatePiYG: _divergingPiYG.default,
|
||||||
_exportObj11.schemePiYG = _divergingPiYG.scheme;
|
schemePiYG: _divergingPiYG.scheme
|
||||||
|
});
|
||||||
_export(_exportObj11);
|
|
||||||
}, function (_divergingPuOr) {
|
}, function (_divergingPuOr) {
|
||||||
var _exportObj12 = {};
|
_export({
|
||||||
_exportObj12.interpolatePuOr = _divergingPuOr.default;
|
interpolatePuOr: _divergingPuOr.default,
|
||||||
_exportObj12.schemePuOr = _divergingPuOr.scheme;
|
schemePuOr: _divergingPuOr.scheme
|
||||||
|
});
|
||||||
_export(_exportObj12);
|
|
||||||
}, function (_divergingRdBu) {
|
}, function (_divergingRdBu) {
|
||||||
var _exportObj13 = {};
|
_export({
|
||||||
_exportObj13.interpolateRdBu = _divergingRdBu.default;
|
interpolateRdBu: _divergingRdBu.default,
|
||||||
_exportObj13.schemeRdBu = _divergingRdBu.scheme;
|
schemeRdBu: _divergingRdBu.scheme
|
||||||
|
});
|
||||||
_export(_exportObj13);
|
|
||||||
}, function (_divergingRdGy) {
|
}, function (_divergingRdGy) {
|
||||||
var _exportObj14 = {};
|
_export({
|
||||||
_exportObj14.interpolateRdGy = _divergingRdGy.default;
|
interpolateRdGy: _divergingRdGy.default,
|
||||||
_exportObj14.schemeRdGy = _divergingRdGy.scheme;
|
schemeRdGy: _divergingRdGy.scheme
|
||||||
|
});
|
||||||
_export(_exportObj14);
|
|
||||||
}, function (_divergingRdYlBu) {
|
}, function (_divergingRdYlBu) {
|
||||||
var _exportObj15 = {};
|
_export({
|
||||||
_exportObj15.interpolateRdYlBu = _divergingRdYlBu.default;
|
interpolateRdYlBu: _divergingRdYlBu.default,
|
||||||
_exportObj15.schemeRdYlBu = _divergingRdYlBu.scheme;
|
schemeRdYlBu: _divergingRdYlBu.scheme
|
||||||
|
});
|
||||||
_export(_exportObj15);
|
|
||||||
}, function (_divergingRdYlGn) {
|
}, function (_divergingRdYlGn) {
|
||||||
var _exportObj16 = {};
|
_export({
|
||||||
_exportObj16.interpolateRdYlGn = _divergingRdYlGn.default;
|
interpolateRdYlGn: _divergingRdYlGn.default,
|
||||||
_exportObj16.schemeRdYlGn = _divergingRdYlGn.scheme;
|
schemeRdYlGn: _divergingRdYlGn.scheme
|
||||||
|
});
|
||||||
_export(_exportObj16);
|
|
||||||
}, function (_divergingGnYlRd) {
|
}, function (_divergingGnYlRd) {
|
||||||
var _exportObj17 = {};
|
_export({
|
||||||
_exportObj17.interpolateGnYlRd = _divergingGnYlRd.default;
|
interpolateGnYlRd: _divergingGnYlRd.default,
|
||||||
_exportObj17.schemeGnYlRd = _divergingGnYlRd.scheme;
|
schemeGnYlRd: _divergingGnYlRd.scheme
|
||||||
|
});
|
||||||
_export(_exportObj17);
|
|
||||||
}, function (_divergingSpectral) {
|
}, function (_divergingSpectral) {
|
||||||
var _exportObj18 = {};
|
_export({
|
||||||
_exportObj18.interpolateSpectral = _divergingSpectral.default;
|
interpolateSpectral: _divergingSpectral.default,
|
||||||
_exportObj18.schemeSpectral = _divergingSpectral.scheme;
|
schemeSpectral: _divergingSpectral.scheme
|
||||||
|
});
|
||||||
_export(_exportObj18);
|
|
||||||
}, function (_sequentialMultiBuGn) {
|
}, function (_sequentialMultiBuGn) {
|
||||||
var _exportObj19 = {};
|
_export({
|
||||||
_exportObj19.interpolateBuGn = _sequentialMultiBuGn.default;
|
interpolateBuGn: _sequentialMultiBuGn.default,
|
||||||
_exportObj19.schemeBuGn = _sequentialMultiBuGn.scheme;
|
schemeBuGn: _sequentialMultiBuGn.scheme
|
||||||
|
});
|
||||||
_export(_exportObj19);
|
|
||||||
}, function (_sequentialMultiBuPu) {
|
}, function (_sequentialMultiBuPu) {
|
||||||
var _exportObj20 = {};
|
_export({
|
||||||
_exportObj20.interpolateBuPu = _sequentialMultiBuPu.default;
|
interpolateBuPu: _sequentialMultiBuPu.default,
|
||||||
_exportObj20.schemeBuPu = _sequentialMultiBuPu.scheme;
|
schemeBuPu: _sequentialMultiBuPu.scheme
|
||||||
|
});
|
||||||
_export(_exportObj20);
|
|
||||||
}, function (_sequentialMultiGnBu) {
|
}, function (_sequentialMultiGnBu) {
|
||||||
var _exportObj21 = {};
|
_export({
|
||||||
_exportObj21.interpolateGnBu = _sequentialMultiGnBu.default;
|
interpolateGnBu: _sequentialMultiGnBu.default,
|
||||||
_exportObj21.schemeGnBu = _sequentialMultiGnBu.scheme;
|
schemeGnBu: _sequentialMultiGnBu.scheme
|
||||||
|
});
|
||||||
_export(_exportObj21);
|
|
||||||
}, function (_sequentialMultiOrRd) {
|
}, function (_sequentialMultiOrRd) {
|
||||||
var _exportObj22 = {};
|
_export({
|
||||||
_exportObj22.interpolateOrRd = _sequentialMultiOrRd.default;
|
interpolateOrRd: _sequentialMultiOrRd.default,
|
||||||
_exportObj22.schemeOrRd = _sequentialMultiOrRd.scheme;
|
schemeOrRd: _sequentialMultiOrRd.scheme
|
||||||
|
});
|
||||||
_export(_exportObj22);
|
|
||||||
}, function (_sequentialMultiPuBuGn) {
|
}, function (_sequentialMultiPuBuGn) {
|
||||||
var _exportObj23 = {};
|
_export({
|
||||||
_exportObj23.interpolatePuBuGn = _sequentialMultiPuBuGn.default;
|
interpolatePuBuGn: _sequentialMultiPuBuGn.default,
|
||||||
_exportObj23.schemePuBuGn = _sequentialMultiPuBuGn.scheme;
|
schemePuBuGn: _sequentialMultiPuBuGn.scheme
|
||||||
|
});
|
||||||
_export(_exportObj23);
|
|
||||||
}, function (_sequentialMultiPuBu) {
|
}, function (_sequentialMultiPuBu) {
|
||||||
var _exportObj24 = {};
|
_export({
|
||||||
_exportObj24.interpolatePuBu = _sequentialMultiPuBu.default;
|
interpolatePuBu: _sequentialMultiPuBu.default,
|
||||||
_exportObj24.schemePuBu = _sequentialMultiPuBu.scheme;
|
schemePuBu: _sequentialMultiPuBu.scheme
|
||||||
|
});
|
||||||
_export(_exportObj24);
|
|
||||||
}, function (_sequentialMultiPuRd) {
|
}, function (_sequentialMultiPuRd) {
|
||||||
var _exportObj25 = {};
|
_export({
|
||||||
_exportObj25.interpolatePuRd = _sequentialMultiPuRd.default;
|
interpolatePuRd: _sequentialMultiPuRd.default,
|
||||||
_exportObj25.schemePuRd = _sequentialMultiPuRd.scheme;
|
schemePuRd: _sequentialMultiPuRd.scheme
|
||||||
|
});
|
||||||
_export(_exportObj25);
|
|
||||||
}, function (_sequentialMultiRdPu) {
|
}, function (_sequentialMultiRdPu) {
|
||||||
var _exportObj26 = {};
|
_export({
|
||||||
_exportObj26.interpolateRdPu = _sequentialMultiRdPu.default;
|
interpolateRdPu: _sequentialMultiRdPu.default,
|
||||||
_exportObj26.schemeRdPu = _sequentialMultiRdPu.scheme;
|
schemeRdPu: _sequentialMultiRdPu.scheme
|
||||||
|
});
|
||||||
_export(_exportObj26);
|
|
||||||
}, function (_sequentialMultiYlGnBu) {
|
}, function (_sequentialMultiYlGnBu) {
|
||||||
var _exportObj27 = {};
|
_export({
|
||||||
_exportObj27.interpolateYlGnBu = _sequentialMultiYlGnBu.default;
|
interpolateYlGnBu: _sequentialMultiYlGnBu.default,
|
||||||
_exportObj27.schemeYlGnBu = _sequentialMultiYlGnBu.scheme;
|
schemeYlGnBu: _sequentialMultiYlGnBu.scheme
|
||||||
|
});
|
||||||
_export(_exportObj27);
|
|
||||||
}, function (_sequentialMultiYlGn) {
|
}, function (_sequentialMultiYlGn) {
|
||||||
var _exportObj28 = {};
|
_export({
|
||||||
_exportObj28.interpolateYlGn = _sequentialMultiYlGn.default;
|
interpolateYlGn: _sequentialMultiYlGn.default,
|
||||||
_exportObj28.schemeYlGn = _sequentialMultiYlGn.scheme;
|
schemeYlGn: _sequentialMultiYlGn.scheme
|
||||||
|
});
|
||||||
_export(_exportObj28);
|
|
||||||
}, function (_sequentialMultiYlOrBr) {
|
}, function (_sequentialMultiYlOrBr) {
|
||||||
var _exportObj29 = {};
|
_export({
|
||||||
_exportObj29.interpolateYlOrBr = _sequentialMultiYlOrBr.default;
|
interpolateYlOrBr: _sequentialMultiYlOrBr.default,
|
||||||
_exportObj29.schemeYlOrBr = _sequentialMultiYlOrBr.scheme;
|
schemeYlOrBr: _sequentialMultiYlOrBr.scheme
|
||||||
|
});
|
||||||
_export(_exportObj29);
|
|
||||||
}, function (_sequentialMultiYlOrRd) {
|
}, function (_sequentialMultiYlOrRd) {
|
||||||
var _exportObj30 = {};
|
_export({
|
||||||
_exportObj30.interpolateYlOrRd = _sequentialMultiYlOrRd.default;
|
interpolateYlOrRd: _sequentialMultiYlOrRd.default,
|
||||||
_exportObj30.schemeYlOrRd = _sequentialMultiYlOrRd.scheme;
|
schemeYlOrRd: _sequentialMultiYlOrRd.scheme
|
||||||
|
});
|
||||||
_export(_exportObj30);
|
|
||||||
}, function (_sequentialSingleBlues) {
|
}, function (_sequentialSingleBlues) {
|
||||||
var _exportObj31 = {};
|
_export({
|
||||||
_exportObj31.interpolateBlues = _sequentialSingleBlues.default;
|
interpolateBlues: _sequentialSingleBlues.default,
|
||||||
_exportObj31.schemeBlues = _sequentialSingleBlues.scheme;
|
schemeBlues: _sequentialSingleBlues.scheme
|
||||||
|
});
|
||||||
_export(_exportObj31);
|
|
||||||
}, function (_sequentialSingleGreens) {
|
}, function (_sequentialSingleGreens) {
|
||||||
var _exportObj32 = {};
|
_export({
|
||||||
_exportObj32.interpolateGreens = _sequentialSingleGreens.default;
|
interpolateGreens: _sequentialSingleGreens.default,
|
||||||
_exportObj32.schemeGreens = _sequentialSingleGreens.scheme;
|
schemeGreens: _sequentialSingleGreens.scheme
|
||||||
|
});
|
||||||
_export(_exportObj32);
|
|
||||||
}, function (_sequentialSingleGreys) {
|
}, function (_sequentialSingleGreys) {
|
||||||
var _exportObj33 = {};
|
_export({
|
||||||
_exportObj33.interpolateGreys = _sequentialSingleGreys.default;
|
interpolateGreys: _sequentialSingleGreys.default,
|
||||||
_exportObj33.schemeGreys = _sequentialSingleGreys.scheme;
|
schemeGreys: _sequentialSingleGreys.scheme
|
||||||
|
});
|
||||||
_export(_exportObj33);
|
|
||||||
}, function (_sequentialSinglePurples) {
|
}, function (_sequentialSinglePurples) {
|
||||||
var _exportObj34 = {};
|
_export({
|
||||||
_exportObj34.interpolatePurples = _sequentialSinglePurples.default;
|
interpolatePurples: _sequentialSinglePurples.default,
|
||||||
_exportObj34.schemePurples = _sequentialSinglePurples.scheme;
|
schemePurples: _sequentialSinglePurples.scheme
|
||||||
|
});
|
||||||
_export(_exportObj34);
|
|
||||||
}, function (_sequentialSingleReds) {
|
}, function (_sequentialSingleReds) {
|
||||||
var _exportObj35 = {};
|
_export({
|
||||||
_exportObj35.interpolateReds = _sequentialSingleReds.default;
|
interpolateReds: _sequentialSingleReds.default,
|
||||||
_exportObj35.schemeReds = _sequentialSingleReds.scheme;
|
schemeReds: _sequentialSingleReds.scheme
|
||||||
|
});
|
||||||
_export(_exportObj35);
|
|
||||||
}, function (_sequentialSingleOranges) {
|
}, function (_sequentialSingleOranges) {
|
||||||
var _exportObj36 = {};
|
_export({
|
||||||
_exportObj36.interpolateOranges = _sequentialSingleOranges.default;
|
interpolateOranges: _sequentialSingleOranges.default,
|
||||||
_exportObj36.schemeOranges = _sequentialSingleOranges.scheme;
|
schemeOranges: _sequentialSingleOranges.scheme
|
||||||
|
});
|
||||||
_export(_exportObj36);
|
|
||||||
}],
|
}],
|
||||||
execute: function () {}
|
execute: function () {}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
'use strict';
|
"use strict";
|
||||||
|
|
||||||
System.register(['d3'], function (_export, _context) {
|
System.register(["d3"], function (_export, _context) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var d3;
|
var d3;
|
||||||
|
|
||||||
_export('default', function (scheme) {
|
_export("default", function (scheme) {
|
||||||
return d3.interpolateRgbBasis(scheme[scheme.length - 1]);
|
return d3.interpolateRgbBasis(scheme[scheme.length - 1]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../src/libs/d3-scale-chromatic/ramp.js"],"names":["scheme","d3","interpolateRgbBasis","length"],"mappings":";;;;;;;qBAEe,UAASA,MAAT,EAAiB;AAC9B,WAAOC,GAAGC,mBAAH,CAAuBF,OAAOA,OAAOG,MAAP,GAAgB,CAAvB,CAAvB,CAAP;AACD,G;;;;AAJMF,Q","file":"ramp.js","sourcesContent":["import d3 from 'd3';\n\nexport default function(scheme) {\n return d3.interpolateRgbBasis(scheme[scheme.length - 1]);\n}\n"]}
|
{"version":3,"sources":["../../../src/libs/d3-scale-chromatic/ramp.js"],"names":["scheme","d3","interpolateRgbBasis","length"],"mappings":";;;;;;;qBAEe,UAASA,MAAT,EAAiB;AAC9B,WAAOC,EAAE,CAACC,mBAAH,CAAuBF,MAAM,CAACA,MAAM,CAACG,MAAP,GAAgB,CAAjB,CAA7B,CAAP;AACD,G;;;;AAJMF,MAAAA,E","sourcesContent":["import d3 from 'd3';\n\nexport default function(scheme) {\n return d3.interpolateRgbBasis(scheme[scheme.length - 1]);\n}\n"],"file":"ramp.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("e5f5f999d8c92ca25f", "edf8fbb2e2e266c2a4238b45", "edf8fbb2e2e266c2a42ca25f006d2c", "edf8fbccece699d8c966c2a42ca25f006d2c", "edf8fbccece699d8c966c2a441ae76238b45005824", "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824", "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(colors));
|
_export("scheme", scheme = new Array(3).concat("e5f5f999d8c92ca25f", "edf8fbb2e2e266c2a4238b45", "edf8fbb2e2e266c2a42ca25f006d2c", "edf8fbccece699d8c966c2a42ca25f006d2c", "edf8fbccece699d8c966c2a441ae76238b45005824", "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824", "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/BuGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"BuGn.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5f999d8c92ca25f\",\n \"edf8fbb2e2e266c2a4238b45\",\n \"edf8fbb2e2e266c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/BuGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5f999d8c92ca25f\",\n \"edf8fbb2e2e266c2a4238b45\",\n \"edf8fbb2e2e266c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"BuGn.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("e0ecf49ebcda8856a7", "edf8fbb3cde38c96c688419d", "edf8fbb3cde38c96c68856a7810f7c", "edf8fbbfd3e69ebcda8c96c68856a7810f7c", "edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b", "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b", "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(colors));
|
_export("scheme", scheme = new Array(3).concat("e0ecf49ebcda8856a7", "edf8fbb3cde38c96c688419d", "edf8fbb3cde38c96c68856a7810f7c", "edf8fbbfd3e69ebcda8c96c68856a7810f7c", "edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b", "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b", "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/BuPu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"BuPu.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e0ecf49ebcda8856a7\",\n \"edf8fbb3cde38c96c688419d\",\n \"edf8fbb3cde38c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/BuPu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e0ecf49ebcda8856a7\",\n \"edf8fbb3cde38c96c688419d\",\n \"edf8fbb3cde38c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"BuPu.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("e0f3dba8ddb543a2ca", "f0f9e8bae4bc7bccc42b8cbe", "f0f9e8bae4bc7bccc443a2ca0868ac", "f0f9e8ccebc5a8ddb57bccc443a2ca0868ac", "f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e", "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e", "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(colors));
|
_export("scheme", scheme = new Array(3).concat("e0f3dba8ddb543a2ca", "f0f9e8bae4bc7bccc42b8cbe", "f0f9e8bae4bc7bccc443a2ca0868ac", "f0f9e8ccebc5a8ddb57bccc443a2ca0868ac", "f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e", "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e", "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/GnBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"GnBu.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e0f3dba8ddb543a2ca\",\n \"f0f9e8bae4bc7bccc42b8cbe\",\n \"f0f9e8bae4bc7bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/GnBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e0f3dba8ddb543a2ca\",\n \"f0f9e8bae4bc7bccc42b8cbe\",\n \"f0f9e8bae4bc7bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"GnBu.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("fee8c8fdbb84e34a33", "fef0d9fdcc8afc8d59d7301f", "fef0d9fdcc8afc8d59e34a33b30000", "fef0d9fdd49efdbb84fc8d59e34a33b30000", "fef0d9fdd49efdbb84fc8d59ef6548d7301f990000", "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000", "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(colors));
|
_export("scheme", scheme = new Array(3).concat("fee8c8fdbb84e34a33", "fef0d9fdcc8afc8d59d7301f", "fef0d9fdcc8afc8d59e34a33b30000", "fef0d9fdd49efdbb84fc8d59e34a33b30000", "fef0d9fdd49efdbb84fc8d59ef6548d7301f990000", "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000", "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/OrRd.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"OrRd.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fee8c8fdbb84e34a33\",\n \"fef0d9fdcc8afc8d59d7301f\",\n \"fef0d9fdcc8afc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/OrRd.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fee8c8fdbb84e34a33\",\n \"fef0d9fdcc8afc8d59d7301f\",\n \"fef0d9fdcc8afc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"OrRd.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("ece7f2a6bddb2b8cbe", "f1eef6bdc9e174a9cf0570b0", "f1eef6bdc9e174a9cf2b8cbe045a8d", "f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d", "f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b", "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b", "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(colors));
|
_export("scheme", scheme = new Array(3).concat("ece7f2a6bddb2b8cbe", "f1eef6bdc9e174a9cf0570b0", "f1eef6bdc9e174a9cf2b8cbe045a8d", "f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d", "f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b", "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b", "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/PuBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"PuBu.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ece7f2a6bddb2b8cbe\",\n \"f1eef6bdc9e174a9cf0570b0\",\n \"f1eef6bdc9e174a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/PuBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ece7f2a6bddb2b8cbe\",\n \"f1eef6bdc9e174a9cf0570b0\",\n \"f1eef6bdc9e174a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"PuBu.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("ece2f0a6bddb1c9099", "f6eff7bdc9e167a9cf02818a", "f6eff7bdc9e167a9cf1c9099016c59", "f6eff7d0d1e6a6bddb67a9cf1c9099016c59", "f6eff7d0d1e6a6bddb67a9cf3690c002818a016450", "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450", "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(colors));
|
_export("scheme", scheme = new Array(3).concat("ece2f0a6bddb1c9099", "f6eff7bdc9e167a9cf02818a", "f6eff7bdc9e167a9cf1c9099016c59", "f6eff7d0d1e6a6bddb67a9cf1c9099016c59", "f6eff7d0d1e6a6bddb67a9cf3690c002818a016450", "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450", "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/PuBuGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"PuBuGn.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ece2f0a6bddb1c9099\",\n \"f6eff7bdc9e167a9cf02818a\",\n \"f6eff7bdc9e167a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/PuBuGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ece2f0a6bddb1c9099\",\n \"f6eff7bdc9e167a9cf02818a\",\n \"f6eff7bdc9e167a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"PuBuGn.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("e7e1efc994c7dd1c77", "f1eef6d7b5d8df65b0ce1256", "f1eef6d7b5d8df65b0dd1c77980043", "f1eef6d4b9dac994c7df65b0dd1c77980043", "f1eef6d4b9dac994c7df65b0e7298ace125691003f", "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f", "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(colors));
|
_export("scheme", scheme = new Array(3).concat("e7e1efc994c7dd1c77", "f1eef6d7b5d8df65b0ce1256", "f1eef6d7b5d8df65b0dd1c77980043", "f1eef6d4b9dac994c7df65b0dd1c77980043", "f1eef6d4b9dac994c7df65b0e7298ace125691003f", "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f", "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/PuRd.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"PuRd.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e7e1efc994c7dd1c77\",\n \"f1eef6d7b5d8df65b0ce1256\",\n \"f1eef6d7b5d8df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/PuRd.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e7e1efc994c7dd1c77\",\n \"f1eef6d7b5d8df65b0ce1256\",\n \"f1eef6d7b5d8df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"PuRd.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("fde0ddfa9fb5c51b8a", "feebe2fbb4b9f768a1ae017e", "feebe2fbb4b9f768a1c51b8a7a0177", "feebe2fcc5c0fa9fb5f768a1c51b8a7a0177", "feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177", "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177", "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(colors));
|
_export("scheme", scheme = new Array(3).concat("fde0ddfa9fb5c51b8a", "feebe2fbb4b9f768a1ae017e", "feebe2fbb4b9f768a1c51b8a7a0177", "feebe2fcc5c0fa9fb5f768a1c51b8a7a0177", "feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177", "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177", "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/RdPu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"RdPu.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fde0ddfa9fb5c51b8a\",\n \"feebe2fbb4b9f768a1ae017e\",\n \"feebe2fbb4b9f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/RdPu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fde0ddfa9fb5c51b8a\",\n \"feebe2fbb4b9f768a1ae017e\",\n \"feebe2fbb4b9f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"RdPu.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("f7fcb9addd8e31a354", "ffffccc2e69978c679238443", "ffffccc2e69978c67931a354006837", "ffffccd9f0a3addd8e78c67931a354006837", "ffffccd9f0a3addd8e78c67941ab5d238443005a32", "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32", "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(colors));
|
_export("scheme", scheme = new Array(3).concat("f7fcb9addd8e31a354", "ffffccc2e69978c679238443", "ffffccc2e69978c67931a354006837", "ffffccd9f0a3addd8e78c67931a354006837", "ffffccd9f0a3addd8e78c67941ab5d238443005a32", "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32", "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/YlGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"YlGn.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"f7fcb9addd8e31a354\",\n \"ffffccc2e69978c679238443\",\n \"ffffccc2e69978c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/YlGn.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"f7fcb9addd8e31a354\",\n \"ffffccc2e69978c679238443\",\n \"ffffccc2e69978c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"YlGn.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("edf8b17fcdbb2c7fb8", "ffffcca1dab441b6c4225ea8", "ffffcca1dab441b6c42c7fb8253494", "ffffccc7e9b47fcdbb41b6c42c7fb8253494", "ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84", "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84", "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(colors));
|
_export("scheme", scheme = new Array(3).concat("edf8b17fcdbb2c7fb8", "ffffcca1dab441b6c4225ea8", "ffffcca1dab441b6c42c7fb8253494", "ffffccc7e9b47fcdbb41b6c42c7fb8253494", "ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84", "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84", "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/YlGnBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"YlGnBu.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"edf8b17fcdbb2c7fb8\",\n \"ffffcca1dab441b6c4225ea8\",\n \"ffffcca1dab441b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/YlGnBu.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"edf8b17fcdbb2c7fb8\",\n \"ffffcca1dab441b6c4225ea8\",\n \"ffffcca1dab441b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"YlGnBu.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("fff7bcfec44fd95f0e", "ffffd4fed98efe9929cc4c02", "ffffd4fed98efe9929d95f0e993404", "ffffd4fee391fec44ffe9929d95f0e993404", "ffffd4fee391fec44ffe9929ec7014cc4c028c2d04", "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04", "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(colors));
|
_export("scheme", scheme = new Array(3).concat("fff7bcfec44fd95f0e", "ffffd4fed98efe9929cc4c02", "ffffd4fed98efe9929d95f0e993404", "ffffd4fee391fec44ffe9929d95f0e993404", "ffffd4fee391fec44ffe9929ec7014cc4c028c2d04", "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04", "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/YlOrBr.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"YlOrBr.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fff7bcfec44fd95f0e\",\n \"ffffd4fed98efe9929cc4c02\",\n \"ffffd4fed98efe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/YlOrBr.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fff7bcfec44fd95f0e\",\n \"ffffd4fed98efe9929cc4c02\",\n \"ffffd4fed98efe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"YlOrBr.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("ffeda0feb24cf03b20", "ffffb2fecc5cfd8d3ce31a1c", "ffffb2fecc5cfd8d3cf03b20bd0026", "ffffb2fed976feb24cfd8d3cf03b20bd0026", "ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026", "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026", "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(colors));
|
_export("scheme", scheme = new Array(3).concat("ffeda0feb24cf03b20", "ffffb2fecc5cfd8d3ce31a1c", "ffffb2fecc5cfd8d3cf03b20bd0026", "ffffb2fed976feb24cfd8d3cf03b20bd0026", "ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026", "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026", "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/YlOrRd.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"YlOrRd.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ffeda0feb24cf03b20\",\n \"ffffb2fecc5cfd8d3ce31a1c\",\n \"ffffb2fecc5cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-multi/YlOrRd.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"ffeda0feb24cf03b20\",\n \"ffffb2fecc5cfd8d3ce31a1c\",\n \"ffffb2fecc5cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"YlOrRd.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("deebf79ecae13182bd", "eff3ffbdd7e76baed62171b5", "eff3ffbdd7e76baed63182bd08519c", "eff3ffc6dbef9ecae16baed63182bd08519c", "eff3ffc6dbef9ecae16baed64292c62171b5084594", "f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594", "f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(colors));
|
_export("scheme", scheme = new Array(3).concat("deebf79ecae13182bd", "eff3ffbdd7e76baed62171b5", "eff3ffbdd7e76baed63182bd08519c", "eff3ffc6dbef9ecae16baed63182bd08519c", "eff3ffc6dbef9ecae16baed64292c62171b5084594", "f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594", "f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Blues.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"Blues.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"deebf79ecae13182bd\",\n \"eff3ffbdd7e76baed62171b5\",\n \"eff3ffbdd7e76baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Blues.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"deebf79ecae13182bd\",\n \"eff3ffbdd7e76baed62171b5\",\n \"eff3ffbdd7e76baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"Blues.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("e5f5e0a1d99b31a354", "edf8e9bae4b374c476238b45", "edf8e9bae4b374c47631a354006d2c", "edf8e9c7e9c0a1d99b74c47631a354006d2c", "edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32", "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32", "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(colors));
|
_export("scheme", scheme = new Array(3).concat("e5f5e0a1d99b31a354", "edf8e9bae4b374c476238b45", "edf8e9bae4b374c47631a354006d2c", "edf8e9c7e9c0a1d99b74c47631a354006d2c", "edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32", "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32", "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Greens.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"Greens.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5e0a1d99b31a354\",\n \"edf8e9bae4b374c476238b45\",\n \"edf8e9bae4b374c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Greens.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5e0a1d99b31a354\",\n \"edf8e9bae4b374c476238b45\",\n \"edf8e9bae4b374c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"Greens.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("f0f0f0bdbdbd636363", "f7f7f7cccccc969696525252", "f7f7f7cccccc969696636363252525", "f7f7f7d9d9d9bdbdbd969696636363252525", "f7f7f7d9d9d9bdbdbd969696737373525252252525", "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525", "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(colors));
|
_export("scheme", scheme = new Array(3).concat("f0f0f0bdbdbd636363", "f7f7f7cccccc969696525252", "f7f7f7cccccc969696636363252525", "f7f7f7d9d9d9bdbdbd969696636363252525", "f7f7f7d9d9d9bdbdbd969696737373525252252525", "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525", "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Greys.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"Greys.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"f0f0f0bdbdbd636363\",\n \"f7f7f7cccccc969696525252\",\n \"f7f7f7cccccc969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Greys.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"f0f0f0bdbdbd636363\",\n \"f7f7f7cccccc969696525252\",\n \"f7f7f7cccccc969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"Greys.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("fee6cefdae6be6550d", "feeddefdbe85fd8d3cd94701", "feeddefdbe85fd8d3ce6550da63603", "feeddefdd0a2fdae6bfd8d3ce6550da63603", "feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04", "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04", "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(colors));
|
_export("scheme", scheme = new Array(3).concat("fee6cefdae6be6550d", "feeddefdbe85fd8d3cd94701", "feeddefdbe85fd8d3ce6550da63603", "feeddefdd0a2fdae6bfd8d3ce6550da63603", "feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04", "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04", "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Oranges.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"Oranges.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fee6cefdae6be6550d\",\n \"feeddefdbe85fd8d3cd94701\",\n \"feeddefdbe85fd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Oranges.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fee6cefdae6be6550d\",\n \"feeddefdbe85fd8d3cd94701\",\n \"feeddefdbe85fd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"Oranges.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("efedf5bcbddc756bb1", "f2f0f7cbc9e29e9ac86a51a3", "f2f0f7cbc9e29e9ac8756bb154278f", "f2f0f7dadaebbcbddc9e9ac8756bb154278f", "f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486", "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486", "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(colors));
|
_export("scheme", scheme = new Array(3).concat("efedf5bcbddc756bb1", "f2f0f7cbc9e29e9ac86a51a3", "f2f0f7cbc9e29e9ac8756bb154278f", "f2f0f7dadaebbcbddc9e9ac8756bb154278f", "f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486", "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486", "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Purples.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"Purples.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"efedf5bcbddc756bb1\",\n \"f2f0f7cbc9e29e9ac86a51a3\",\n \"f2f0f7cbc9e29e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Purples.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"efedf5bcbddc756bb1\",\n \"f2f0f7cbc9e29e9ac86a51a3\",\n \"f2f0f7cbc9e29e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"Purples.js"}
|
||||||
@@ -13,8 +13,6 @@ System.register(["../colors", "../ramp"], function (_export, _context) {
|
|||||||
execute: function () {
|
execute: function () {
|
||||||
_export("scheme", scheme = new Array(3).concat("fee0d2fc9272de2d26", "fee5d9fcae91fb6a4acb181d", "fee5d9fcae91fb6a4ade2d26a50f15", "fee5d9fcbba1fc9272fb6a4ade2d26a50f15", "fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d", "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d", "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(colors));
|
_export("scheme", scheme = new Array(3).concat("fee0d2fc9272de2d26", "fee5d9fcae91fb6a4acb181d", "fee5d9fcae91fb6a4ade2d26a50f15", "fee5d9fcbba1fc9272fb6a4ade2d26a50f15", "fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d", "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d", "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(colors));
|
||||||
|
|
||||||
_export("scheme", scheme);
|
|
||||||
|
|
||||||
_export("default", ramp(scheme));
|
_export("default", ramp(scheme));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Reds.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,Y;;AACAC,U;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;;;yBAULC,KAAKC,MAAL,C","file":"Reds.js","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fee0d2fc9272de2d26\",\n \"fee5d9fcae91fb6a4acb181d\",\n \"fee5d9fcae91fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d\"\n).map(colors);\n\nexport default ramp(scheme);\n"]}
|
{"version":3,"sources":["../../../../src/libs/d3-scale-chromatic/sequential-single/Reds.js"],"names":["colors","ramp","scheme","Array","concat","map"],"mappings":";;;;;;;;AAAOA,MAAAA,M;;AACAC,MAAAA,I;;;wBAEIC,M,GAAS,IAAIC,KAAJ,CAAU,CAAV,EAAaC,MAAb,CAClB,oBADkB,EAElB,0BAFkB,EAGlB,gCAHkB,EAIlB,sCAJkB,EAKlB,4CALkB,EAMlB,kDANkB,EAOlB,wDAPkB,EAQlBC,GARkB,CAQdL,MARc,C;;yBAULC,IAAI,CAACC,MAAD,C","sourcesContent":["import colors from \"../colors\";\nimport ramp from \"../ramp\";\n\nexport var scheme = new Array(3).concat(\n \"fee0d2fc9272de2d26\",\n \"fee5d9fcae91fb6a4acb181d\",\n \"fee5d9fcae91fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d\"\n).map(colors);\n\nexport default ramp(scheme);\n"],"file":"Reds.js"}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="status-heatmap-wrapper">
|
<div class="status-heatmap-wrapper">
|
||||||
<div class="status-heatmap-canvas-wrapper">
|
<div class="status-heatmap-canvas-wrapper">
|
||||||
|
|
||||||
<div class="datapoints-warning">
|
<div class="datapoints-warning" ng-if="ctrl.multipleValues || ctrl.noColorDefined">
|
||||||
<span class="small" ng-if="ctrl.multipleValues" bs-tooltip="'{{ctrl.dataWarnings.multipleValues.tip}}'">{{ctrl.dataWarnings.multipleValues.title}}</span>
|
<span class="small" ng-if="ctrl.multipleValues" bs-tooltip="'{{ctrl.dataWarnings.multipleValues.tip}}'">{{ctrl.dataWarnings.multipleValues.title}}</span>
|
||||||
<span class="small" ng-if="ctrl.noColorDefined" bs-tooltip="'{{ctrl.dataWarnings.noColorDefined.tip}}'">{{ctrl.dataWarnings.noColorDefined.title}}</span>
|
<span class="small" ng-if="ctrl.noColorDefined" bs-tooltip="'{{ctrl.dataWarnings.noColorDefined.tip}}'">{{ctrl.dataWarnings.noColorDefined.title}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,23 +1,643 @@
|
|||||||
'use strict';
|
"use strict";
|
||||||
|
|
||||||
System.register(['app/plugins/sdk', './status_heatmap_ctrl'], function (_export, _context) {
|
System.register(["lodash", "./color_legend", "app/core/utils/kbn", "app/plugins/sdk", "./statusmap_data", "./rendering", "./options_editor", "./color_mode_discrete"], function (_export, _context) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var loadPluginCss, StatusHeatmapCtrl;
|
var _, kbn, loadPluginCss, MetricsPanelCtrl, Card, rendering, statusHeatmapOptionsEditor, ColorModeDiscrete, CANVAS, SVG, VALUE_INDEX, TIME_INDEX, renderer, colorSchemes, colorModes, opacityScales, StatusHeatmapCtrl;
|
||||||
|
|
||||||
|
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||||
|
|
||||||
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||||
|
|
||||||
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||||
|
|
||||||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||||
|
|
||||||
|
function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }
|
||||||
|
|
||||||
|
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
||||||
|
|
||||||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||||
|
|
||||||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||||||
|
|
||||||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||||
|
|
||||||
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
setters: [function (_appPluginsSdk) {
|
setters: [function (_lodash) {
|
||||||
|
_ = _lodash.default;
|
||||||
|
}, function (_color_legend) {}, function (_appCoreUtilsKbn) {
|
||||||
|
kbn = _appCoreUtilsKbn.default;
|
||||||
|
}, function (_appPluginsSdk) {
|
||||||
loadPluginCss = _appPluginsSdk.loadPluginCss;
|
loadPluginCss = _appPluginsSdk.loadPluginCss;
|
||||||
}, function (_status_heatmap_ctrl) {
|
MetricsPanelCtrl = _appPluginsSdk.MetricsPanelCtrl;
|
||||||
StatusHeatmapCtrl = _status_heatmap_ctrl.StatusHeatmapCtrl;
|
}, function (_statusmap_data) {
|
||||||
|
Card = _statusmap_data.Card;
|
||||||
|
}, function (_rendering) {
|
||||||
|
rendering = _rendering.default;
|
||||||
|
}, function (_options_editor) {
|
||||||
|
statusHeatmapOptionsEditor = _options_editor.statusHeatmapOptionsEditor;
|
||||||
|
}, function (_color_mode_discrete) {
|
||||||
|
ColorModeDiscrete = _color_mode_discrete.ColorModeDiscrete;
|
||||||
}],
|
}],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
|
CANVAS = 'CANVAS';
|
||||||
|
SVG = 'SVG';
|
||||||
|
VALUE_INDEX = 0;
|
||||||
|
TIME_INDEX = 1;
|
||||||
|
renderer = CANVAS;
|
||||||
|
colorSchemes = [// Diverging
|
||||||
|
{
|
||||||
|
name: 'Spectral',
|
||||||
|
value: 'interpolateSpectral',
|
||||||
|
invert: 'always'
|
||||||
|
}, {
|
||||||
|
name: 'RdYlGn',
|
||||||
|
value: 'interpolateRdYlGn',
|
||||||
|
invert: 'always'
|
||||||
|
}, {
|
||||||
|
name: 'GnYlRd',
|
||||||
|
value: 'interpolateGnYlRd',
|
||||||
|
invert: 'always'
|
||||||
|
}, // Sequential (Single Hue)
|
||||||
|
{
|
||||||
|
name: 'Blues',
|
||||||
|
value: 'interpolateBlues',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'Greens',
|
||||||
|
value: 'interpolateGreens',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'Greys',
|
||||||
|
value: 'interpolateGreys',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'Oranges',
|
||||||
|
value: 'interpolateOranges',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'Purples',
|
||||||
|
value: 'interpolatePurples',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'Reds',
|
||||||
|
value: 'interpolateReds',
|
||||||
|
invert: 'dark'
|
||||||
|
}, // Sequential (Multi-Hue)
|
||||||
|
{
|
||||||
|
name: 'BuGn',
|
||||||
|
value: 'interpolateBuGn',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'BuPu',
|
||||||
|
value: 'interpolateBuPu',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'GnBu',
|
||||||
|
value: 'interpolateGnBu',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'OrRd',
|
||||||
|
value: 'interpolateOrRd',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'PuBuGn',
|
||||||
|
value: 'interpolatePuBuGn',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'PuBu',
|
||||||
|
value: 'interpolatePuBu',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'PuRd',
|
||||||
|
value: 'interpolatePuRd',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'RdPu',
|
||||||
|
value: 'interpolateRdPu',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'YlGnBu',
|
||||||
|
value: 'interpolateYlGnBu',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'YlGn',
|
||||||
|
value: 'interpolateYlGn',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'YlOrBr',
|
||||||
|
value: 'interpolateYlOrBr',
|
||||||
|
invert: 'dark'
|
||||||
|
}, {
|
||||||
|
name: 'YlOrRd',
|
||||||
|
value: 'interpolateYlOrRd',
|
||||||
|
invert: 'dark'
|
||||||
|
}];
|
||||||
|
colorModes = ['opacity', 'spectrum', 'discrete'];
|
||||||
|
opacityScales = ['linear', 'sqrt'];
|
||||||
loadPluginCss({
|
loadPluginCss({
|
||||||
dark: 'plugins/flant-statusmap-panel/css/statusmap.dark.css',
|
dark: 'plugins/flant-statusmap-panel/css/statusmap.dark.css',
|
||||||
light: 'plugins/flant-statusmap-panel/css/statusmap.light.css'
|
light: 'plugins/flant-statusmap-panel/css/statusmap.light.css'
|
||||||
});
|
});
|
||||||
|
|
||||||
_export('PanelCtrl', StatusHeatmapCtrl);
|
_export("PanelCtrl", _export("StatusHeatmapCtrl", StatusHeatmapCtrl =
|
||||||
|
/*#__PURE__*/
|
||||||
|
function (_MetricsPanelCtrl) {
|
||||||
|
StatusHeatmapCtrl.$inject = ["$scope", "$injector", "annotationsSrv"];
|
||||||
|
|
||||||
|
_inherits(StatusHeatmapCtrl, _MetricsPanelCtrl);
|
||||||
|
|
||||||
|
/** @ngInject */
|
||||||
|
function StatusHeatmapCtrl($scope, $injector, annotationsSrv) {
|
||||||
|
var _this;
|
||||||
|
|
||||||
|
_classCallCheck(this, StatusHeatmapCtrl);
|
||||||
|
|
||||||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(StatusHeatmapCtrl).call(this, $scope, $injector));
|
||||||
|
_this.annotationsSrv = annotationsSrv;
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "opacityScales", []);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "colorModes", []);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "colorSchemes", []);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "unitFormats", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "data", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "cardsData", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "graph", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "multipleValues", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "noColorDefined", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "discreteHelper", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "dataWarnings", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "annotations", []);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "annotationsPromise", void 0);
|
||||||
|
|
||||||
|
_defineProperty(_assertThisInitialized(_this), "panelDefaults", {
|
||||||
|
// datasource name, null = default datasource
|
||||||
|
datasource: null,
|
||||||
|
// color mode
|
||||||
|
color: {
|
||||||
|
mode: 'spectrum',
|
||||||
|
cardColor: '#b4ff00',
|
||||||
|
colorScale: 'sqrt',
|
||||||
|
exponent: 0.5,
|
||||||
|
colorScheme: 'interpolateGnYlRd',
|
||||||
|
// discrete mode settings
|
||||||
|
defaultColor: '#757575',
|
||||||
|
thresholds: [] // manual colors
|
||||||
|
|
||||||
|
},
|
||||||
|
// buckets settings
|
||||||
|
cards: {
|
||||||
|
cardMinWidth: 5,
|
||||||
|
cardVSpacing: 2,
|
||||||
|
cardHSpacing: 2,
|
||||||
|
cardRound: null
|
||||||
|
},
|
||||||
|
xAxis: {
|
||||||
|
show: true,
|
||||||
|
showWeekends: true,
|
||||||
|
minBucketWidthToShowWeekends: 4,
|
||||||
|
showCrosshair: true,
|
||||||
|
labelFormat: '%a %m/%d'
|
||||||
|
},
|
||||||
|
yAxis: {
|
||||||
|
show: true,
|
||||||
|
showCrosshair: false
|
||||||
|
},
|
||||||
|
tooltip: {
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
legend: {
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
unitFormat: 'short',
|
||||||
|
decimals: null
|
||||||
|
},
|
||||||
|
// how null points should be handled
|
||||||
|
nullPointMode: 'as empty',
|
||||||
|
yAxisSort: 'metrics',
|
||||||
|
highlightCards: true,
|
||||||
|
useMax: true
|
||||||
|
});
|
||||||
|
|
||||||
|
_.defaultsDeep(_this.panel, _this.panelDefaults);
|
||||||
|
|
||||||
|
_this.opacityScales = opacityScales;
|
||||||
|
_this.colorModes = colorModes;
|
||||||
|
_this.colorSchemes = colorSchemes; // default graph width for discrete card width calculation
|
||||||
|
|
||||||
|
_this.graph = {
|
||||||
|
"chartWidth": -1
|
||||||
|
};
|
||||||
|
_this.multipleValues = false;
|
||||||
|
_this.noColorDefined = false;
|
||||||
|
_this.discreteHelper = new ColorModeDiscrete($scope);
|
||||||
|
_this.dataWarnings = {
|
||||||
|
"noColorDefined": {
|
||||||
|
title: 'Data has value with undefined color',
|
||||||
|
tip: 'Check metric values, color values or define a new color'
|
||||||
|
},
|
||||||
|
"multipleValues": {
|
||||||
|
title: 'Data has multiple values for one target',
|
||||||
|
tip: 'Change targets definitions or set "use max value"'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
_this.annotations = [];
|
||||||
|
|
||||||
|
_this.events.on('render', _this.onRender.bind(_assertThisInitialized(_this)));
|
||||||
|
|
||||||
|
_this.events.on('data-received', _this.onDataReceived.bind(_assertThisInitialized(_this)));
|
||||||
|
|
||||||
|
_this.events.on('data-error', _this.onDataError.bind(_assertThisInitialized(_this)));
|
||||||
|
|
||||||
|
_this.events.on('data-snapshot-load', _this.onDataReceived.bind(_assertThisInitialized(_this)));
|
||||||
|
|
||||||
|
_this.events.on('init-edit-mode', _this.onInitEditMode.bind(_assertThisInitialized(_this)));
|
||||||
|
|
||||||
|
_this.events.on('refresh', _this.postRefresh.bind(_assertThisInitialized(_this))); // custom event from rendering.js
|
||||||
|
|
||||||
|
|
||||||
|
_this.events.on('render-complete', _this.onRenderComplete.bind(_assertThisInitialized(_this)));
|
||||||
|
|
||||||
|
return _this;
|
||||||
|
}
|
||||||
|
|
||||||
|
_createClass(StatusHeatmapCtrl, [{
|
||||||
|
key: "onRenderComplete",
|
||||||
|
value: function onRenderComplete(data) {
|
||||||
|
this.graph.chartWidth = data.chartWidth;
|
||||||
|
this.renderingCompleted();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "getChartWidth",
|
||||||
|
value: function getChartWidth() {
|
||||||
|
var wndWidth = $(window).width(); // gripPos.w is a width in grid's measurements. Grid size in Grafana is 24.
|
||||||
|
|
||||||
|
var panelWidthFactor = this.panel.gridPos.w / 24;
|
||||||
|
var panelWidth = Math.ceil(wndWidth * panelWidthFactor); // approximate chartWidth because y axis ticks not rendered yet on first data receive.
|
||||||
|
|
||||||
|
var chartWidth = _.max([panelWidth - 200, panelWidth / 2]);
|
||||||
|
|
||||||
|
return chartWidth;
|
||||||
|
} // override calculateInterval for discrete color mode
|
||||||
|
|
||||||
|
}, {
|
||||||
|
key: "calculateInterval",
|
||||||
|
value: function calculateInterval() {
|
||||||
|
var chartWidth = this.getChartWidth();
|
||||||
|
var minCardWidth = this.panel.cards.cardMinWidth;
|
||||||
|
var minSpacing = this.panel.cards.cardHSpacing;
|
||||||
|
var maxCardsCount = Math.ceil((chartWidth - minCardWidth) / (minCardWidth + minSpacing));
|
||||||
|
var intervalMs;
|
||||||
|
var rangeMs = this.range.to.valueOf() - this.range.from.valueOf(); // this is minimal interval! kbn.round_interval will lower it.
|
||||||
|
|
||||||
|
intervalMs = this.discreteHelper.roundIntervalCeil(rangeMs / maxCardsCount); // Calculate low limit of interval
|
||||||
|
|
||||||
|
var lowLimitMs = 1; // 1 millisecond default low limit
|
||||||
|
|
||||||
|
var intervalOverride = this.panel.interval; // if no panel interval check datasource
|
||||||
|
|
||||||
|
if (intervalOverride) {
|
||||||
|
intervalOverride = this.templateSrv.replace(intervalOverride, this.panel.scopedVars);
|
||||||
|
} else if (this.datasource && this.datasource.interval) {
|
||||||
|
intervalOverride = this.datasource.interval;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (intervalOverride) {
|
||||||
|
if (intervalOverride[0] === '>') {
|
||||||
|
intervalOverride = intervalOverride.slice(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
lowLimitMs = kbn.interval_to_ms(intervalOverride);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lowLimitMs > intervalMs) {
|
||||||
|
intervalMs = lowLimitMs;
|
||||||
|
}
|
||||||
|
|
||||||
|
var interval = kbn.secondsToHms(intervalMs / 1000);
|
||||||
|
this.intervalMs = intervalMs;
|
||||||
|
this.interval = interval;
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "issueQueries",
|
||||||
|
value: function issueQueries(datasource) {
|
||||||
|
var _this2 = this;
|
||||||
|
|
||||||
|
this.annotationsPromise = this.annotationsSrv.getAnnotations({
|
||||||
|
dashboard: this.dashboard,
|
||||||
|
panel: this.panel,
|
||||||
|
range: this.range
|
||||||
|
});
|
||||||
|
/* Wait for annotationSrv requests to get datasources to
|
||||||
|
* resolve before issuing queries. This allows the annotations
|
||||||
|
* service to fire annotations queries before graph queries
|
||||||
|
* (but not wait for completion). This resolves
|
||||||
|
* issue 11806.
|
||||||
|
*/
|
||||||
|
// 5.x before 5.4 doesn't have datasourcePromises.
|
||||||
|
|
||||||
|
if ("undefined" !== typeof this.annotationsSrv.datasourcePromises) {
|
||||||
|
return this.annotationsSrv.datasourcePromises.then(function (r) {
|
||||||
|
return _this2.issueQueriesWithInterval(datasource, _this2.interval);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return this.issueQueriesWithInterval(datasource, this.interval);
|
||||||
|
}
|
||||||
|
} // Grafana 6.2 (and older) is using this.interval for queries,
|
||||||
|
// but Grafana 6.3+ is calculating interval again in queryRunner,
|
||||||
|
// so we need to save-restore this.panel.interval.
|
||||||
|
|
||||||
|
}, {
|
||||||
|
key: "issueQueriesWithInterval",
|
||||||
|
value: function issueQueriesWithInterval(datasource, interval) {
|
||||||
|
var origInterval = this.panel.interval;
|
||||||
|
this.panel.interval = this.interval;
|
||||||
|
|
||||||
|
var res = _get(_getPrototypeOf(StatusHeatmapCtrl.prototype), "issueQueries", this).call(this, datasource);
|
||||||
|
|
||||||
|
this.panel.interval = origInterval;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onDataReceived",
|
||||||
|
value: function onDataReceived(dataList) {
|
||||||
|
var _this3 = this;
|
||||||
|
|
||||||
|
this.data = dataList;
|
||||||
|
this.cardsData = this.convertToCards(this.data);
|
||||||
|
console.log("OnDataReceived");
|
||||||
|
this.annotationsPromise.then(function (result) {
|
||||||
|
_this3.loading = false; //this.alertState = result.alertState;
|
||||||
|
|
||||||
|
if (result.annotations && result.annotations.length > 0) {
|
||||||
|
_this3.annotations = result.annotations;
|
||||||
|
} else {
|
||||||
|
_this3.annotations = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("annotationsPromise result " + _this3.annotations.length + " annotations");
|
||||||
|
|
||||||
|
_this3.render();
|
||||||
|
}, function () {
|
||||||
|
_this3.loading = false;
|
||||||
|
_this3.annotations = [];
|
||||||
|
console.log("annotationsPromise onrejected");
|
||||||
|
|
||||||
|
_this3.render();
|
||||||
|
}); //this.render();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onInitEditMode",
|
||||||
|
value: function onInitEditMode() {
|
||||||
|
this.addEditorTab('Options', statusHeatmapOptionsEditor, 2);
|
||||||
|
this.unitFormats = kbn.getUnitFormats();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onRender",
|
||||||
|
value: function onRender() {
|
||||||
|
if (!this.range || !this.data) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.multipleValues = false;
|
||||||
|
|
||||||
|
if (!this.panel.useMax) {
|
||||||
|
if (this.cardsData) {
|
||||||
|
this.multipleValues = this.cardsData.multipleValues;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.noColorDefined = false;
|
||||||
|
|
||||||
|
if (this.panel.color.mode === 'discrete') {
|
||||||
|
this.discreteHelper.updateCardsValuesHasColorInfo();
|
||||||
|
|
||||||
|
if (this.cardsData) {
|
||||||
|
this.noColorDefined = this.cardsData.noColorDefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onCardColorChange",
|
||||||
|
value: function onCardColorChange(newColor) {
|
||||||
|
this.panel.color.cardColor = newColor;
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onDataError",
|
||||||
|
value: function onDataError() {
|
||||||
|
this.data = [];
|
||||||
|
this.annotations = [];
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "postRefresh",
|
||||||
|
value: function postRefresh() {
|
||||||
|
this.noColorDefined = false;
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onEditorAddThreshold",
|
||||||
|
value: function onEditorAddThreshold() {
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: this.panel.defaultColor
|
||||||
|
});
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onEditorRemoveThreshold",
|
||||||
|
value: function onEditorRemoveThreshold(index) {
|
||||||
|
this.panel.color.thresholds.splice(index, 1);
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onEditorRemoveThresholds",
|
||||||
|
value: function onEditorRemoveThresholds() {
|
||||||
|
this.panel.color.thresholds = [];
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onEditorAddThreeLights",
|
||||||
|
value: function onEditorAddThreeLights() {
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "red",
|
||||||
|
value: 2,
|
||||||
|
tooltip: "error"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "yellow",
|
||||||
|
value: 1,
|
||||||
|
tooltip: "warning"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "green",
|
||||||
|
value: 0,
|
||||||
|
tooltip: "ok"
|
||||||
|
});
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
|
/* https://ethanschoonover.com/solarized/ */
|
||||||
|
|
||||||
|
}, {
|
||||||
|
key: "onEditorAddSolarized",
|
||||||
|
value: function onEditorAddSolarized() {
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "#b58900",
|
||||||
|
value: 0,
|
||||||
|
tooltip: "yellow"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "#cb4b16",
|
||||||
|
value: 1,
|
||||||
|
tooltip: "orange"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "#dc322f",
|
||||||
|
value: 2,
|
||||||
|
tooltip: "red"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "#d33682",
|
||||||
|
value: 3,
|
||||||
|
tooltip: "magenta"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "#6c71c4",
|
||||||
|
value: 4,
|
||||||
|
tooltip: "violet"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "#268bd2",
|
||||||
|
value: 5,
|
||||||
|
tooltip: "blue"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "#2aa198",
|
||||||
|
value: 6,
|
||||||
|
tooltip: "cyan"
|
||||||
|
});
|
||||||
|
this.panel.color.thresholds.push({
|
||||||
|
color: "#859900",
|
||||||
|
value: 7,
|
||||||
|
tooltip: "green"
|
||||||
|
});
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "link",
|
||||||
|
value: function link(scope, elem, attrs, ctrl) {
|
||||||
|
rendering(scope, elem, attrs, ctrl);
|
||||||
|
} // group values into buckets by target
|
||||||
|
|
||||||
|
}, {
|
||||||
|
key: "convertToCards",
|
||||||
|
value: function convertToCards(data) {
|
||||||
|
var cardsData = {
|
||||||
|
cards: [],
|
||||||
|
xBucketSize: 0,
|
||||||
|
yBucketSize: 0,
|
||||||
|
maxValue: 0,
|
||||||
|
minValue: 0,
|
||||||
|
multipleValues: false,
|
||||||
|
noColorDefined: false,
|
||||||
|
targets: [],
|
||||||
|
// array of available unique targets
|
||||||
|
targetIndex: {} // indices in data array for each of available unique targets
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!data || data.length == 0) {
|
||||||
|
return cardsData;
|
||||||
|
} // Collect uniq timestamps from data and spread over targets and timestamps
|
||||||
|
// collect uniq targets and their indices
|
||||||
|
|
||||||
|
|
||||||
|
_.map(data, function (d, i) {
|
||||||
|
cardsData.targetIndex[d.target] = _.concat(_.toArray(cardsData.targetIndex[d.target]), i);
|
||||||
|
}); // TODO add some logic for targets heirarchy
|
||||||
|
|
||||||
|
|
||||||
|
cardsData.targets = _.keys(cardsData.targetIndex);
|
||||||
|
cardsData.yBucketSize = cardsData.targets.length; // Maximum number of buckets over x axis
|
||||||
|
|
||||||
|
cardsData.xBucketSize = _.max(_.map(data, function (d) {
|
||||||
|
return d.datapoints.length;
|
||||||
|
})); // Collect all values for each bucket from datapoints with similar target.
|
||||||
|
// TODO aggregate values into buckets over datapoint[TIME_INDEX] not over datapoint index (j).
|
||||||
|
|
||||||
|
for (var i = 0; i < cardsData.targets.length; i++) {
|
||||||
|
var target = cardsData.targets[i];
|
||||||
|
|
||||||
|
for (var j = 0; j < cardsData.xBucketSize; j++) {
|
||||||
|
var card = new Card();
|
||||||
|
card.id = i * cardsData.xBucketSize + j;
|
||||||
|
card.values = [];
|
||||||
|
card.y = target;
|
||||||
|
card.x = -1; // collect values from all timeseries with target
|
||||||
|
|
||||||
|
for (var si = 0; si < cardsData.targetIndex[target].length; si++) {
|
||||||
|
var s = data[cardsData.targetIndex[target][si]];
|
||||||
|
|
||||||
|
if (s.datapoints.length <= j) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var datapoint = s.datapoints[j];
|
||||||
|
|
||||||
|
if (card.values.length === 0) {
|
||||||
|
card.x = datapoint[TIME_INDEX];
|
||||||
|
}
|
||||||
|
|
||||||
|
card.values.push(datapoint[VALUE_INDEX]);
|
||||||
|
}
|
||||||
|
|
||||||
|
card.minValue = _.min(card.values);
|
||||||
|
card.maxValue = _.max(card.values);
|
||||||
|
|
||||||
|
if (card.values.length > 1) {
|
||||||
|
cardsData.multipleValues = true;
|
||||||
|
card.multipleValues = true;
|
||||||
|
card.value = card.maxValue; // max value by default
|
||||||
|
} else {
|
||||||
|
card.value = card.maxValue; // max value by default
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cardsData.maxValue < card.maxValue) cardsData.maxValue = card.maxValue;
|
||||||
|
if (cardsData.minValue > card.minValue) cardsData.minValue = card.minValue;
|
||||||
|
|
||||||
|
if (card.x != -1) {
|
||||||
|
cardsData.cards.push(card);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return cardsData;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return StatusHeatmapCtrl;
|
||||||
|
}(MetricsPanelCtrl)));
|
||||||
|
|
||||||
|
_defineProperty(StatusHeatmapCtrl, "templateUrl", 'module.html');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
'use strict';
|
"use strict";
|
||||||
|
|
||||||
System.register(['app/core/utils/kbn'], function (_export, _context) {
|
System.register(["app/core/utils/kbn"], function (_export, _context) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var kbn, _createClass, StatusHeatmapOptionsEditorCtrl;
|
var kbn, StatusHeatmapOptionsEditorCtrl;
|
||||||
|
|
||||||
function _classCallCheck(instance, Constructor) {
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||||
if (!(instance instanceof Constructor)) {
|
|
||||||
throw new TypeError("Cannot call a class as a function");
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
}
|
|
||||||
}
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||||
|
|
||||||
function statusHeatmapOptionsEditor() {
|
function statusHeatmapOptionsEditor() {
|
||||||
'use strict';
|
'use strict';
|
||||||
@@ -22,45 +24,34 @@ System.register(['app/core/utils/kbn'], function (_export, _context) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
_export('statusHeatmapOptionsEditor', statusHeatmapOptionsEditor);
|
_export("statusHeatmapOptionsEditor", statusHeatmapOptionsEditor);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
setters: [function (_appCoreUtilsKbn) {
|
setters: [function (_appCoreUtilsKbn) {
|
||||||
kbn = _appCoreUtilsKbn.default;
|
kbn = _appCoreUtilsKbn.default;
|
||||||
}],
|
}],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
_createClass = function () {
|
_export("StatusHeatmapOptionsEditorCtrl", StatusHeatmapOptionsEditorCtrl =
|
||||||
function defineProperties(target, props) {
|
/*#__PURE__*/
|
||||||
for (var i = 0; i < props.length; i++) {
|
function () {
|
||||||
var descriptor = props[i];
|
|
||||||
descriptor.enumerable = descriptor.enumerable || false;
|
|
||||||
descriptor.configurable = true;
|
|
||||||
if ("value" in descriptor) descriptor.writable = true;
|
|
||||||
Object.defineProperty(target, descriptor.key, descriptor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return function (Constructor, protoProps, staticProps) {
|
|
||||||
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
||||||
if (staticProps) defineProperties(Constructor, staticProps);
|
|
||||||
return Constructor;
|
|
||||||
};
|
|
||||||
}();
|
|
||||||
|
|
||||||
_export('StatusHeatmapOptionsEditorCtrl', StatusHeatmapOptionsEditorCtrl = function () {
|
|
||||||
function StatusHeatmapOptionsEditorCtrl($scope) {
|
function StatusHeatmapOptionsEditorCtrl($scope) {
|
||||||
_classCallCheck(this, StatusHeatmapOptionsEditorCtrl);
|
_classCallCheck(this, StatusHeatmapOptionsEditorCtrl);
|
||||||
|
|
||||||
|
_defineProperty(this, "panel", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "panelCtrl", void 0);
|
||||||
|
|
||||||
|
_defineProperty(this, "unitFormats", void 0);
|
||||||
|
|
||||||
$scope.editor = this;
|
$scope.editor = this;
|
||||||
this.panelCtrl = $scope.ctrl;
|
this.panelCtrl = $scope.ctrl;
|
||||||
this.panel = this.panelCtrl.panel;
|
this.panel = this.panelCtrl.panel;
|
||||||
this.unitFormats = kbn.getUnitFormats();
|
this.unitFormats = kbn.getUnitFormats();
|
||||||
|
|
||||||
this.panelCtrl.render();
|
this.panelCtrl.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
_createClass(StatusHeatmapOptionsEditorCtrl, [{
|
_createClass(StatusHeatmapOptionsEditorCtrl, [{
|
||||||
key: 'setUnitFormat',
|
key: "setUnitFormat",
|
||||||
value: function setUnitFormat(subItem) {
|
value: function setUnitFormat(subItem) {
|
||||||
this.panel.data.unitFormat = subItem.value;
|
this.panel.data.unitFormat = subItem.value;
|
||||||
this.panelCtrl.render();
|
this.panelCtrl.render();
|
||||||
@@ -69,8 +60,6 @@ System.register(['app/core/utils/kbn'], function (_export, _context) {
|
|||||||
|
|
||||||
return StatusHeatmapOptionsEditorCtrl;
|
return StatusHeatmapOptionsEditorCtrl;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
_export('StatusHeatmapOptionsEditorCtrl', StatusHeatmapOptionsEditorCtrl);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["../src/options_editor.js"],"names":["statusHeatmapOptionsEditor","restrict","scope","templateUrl","controller","StatusHeatmapOptionsEditorCtrl","kbn","$scope","editor","panelCtrl","ctrl","panel","unitFormats","getUnitFormats","render","subItem","data","unitFormat","value"],"mappings":";;;;;;;;;;;;;AAkBO,WAASA,0BAAT,GAAsC;AAC3C;;AACA,WAAO;AACLC,gBAAU,GADL;AAELC,aAAO,IAFF;AAGLC,mBAAa,mEAHR;AAILC,kBAAYC;AAJP,KAAP;AAMD;;wCAReL,0B;;;;AAlBTM,S;;;;;;;;;;;;;;;;;;;;;gDAEMD,8B;AACX,gDAAYE,MAAZ,EAAoB;AAAA;;AAClBA,iBAAOC,MAAP,GAAgB,IAAhB;AACA,eAAKC,SAAL,GAAiBF,OAAOG,IAAxB;AACA,eAAKC,KAAL,GAAa,KAAKF,SAAL,CAAeE,KAA5B;AACA,eAAKC,WAAL,GAAmBN,IAAIO,cAAJ,EAAnB;;AAEA,eAAKJ,SAAL,CAAeK,MAAf;AACD;;;;wCAEaC,O,EAAS;AACrB,iBAAKJ,KAAL,CAAWK,IAAX,CAAgBC,UAAhB,GAA6BF,QAAQG,KAArC;AACA,iBAAKT,SAAL,CAAeK,MAAf;AACD","file":"options_editor.js","sourcesContent":["import kbn from 'app/core/utils/kbn';\n\nexport class StatusHeatmapOptionsEditorCtrl {\n constructor($scope) {\n $scope.editor = this;\n this.panelCtrl = $scope.ctrl;\n this.panel = this.panelCtrl.panel;\n this.unitFormats = kbn.getUnitFormats();\n\n this.panelCtrl.render();\n }\n\n setUnitFormat(subItem) {\n this.panel.data.unitFormat = subItem.value;\n this.panelCtrl.render();\n }\n}\n\nexport function statusHeatmapOptionsEditor() {\n 'use strict';\n return {\n restrict: 'E',\n scope: true,\n templateUrl: 'public/plugins/flant-statusmap-panel/partials/options_editor.html',\n controller: StatusHeatmapOptionsEditorCtrl,\n };\n}\n"]}
|
{"version":3,"sources":["../src/options_editor.ts"],"names":["statusHeatmapOptionsEditor","restrict","scope","templateUrl","controller","StatusHeatmapOptionsEditorCtrl","kbn","$scope","editor","panelCtrl","ctrl","panel","unitFormats","getUnitFormats","render","subItem","data","unitFormat","value"],"mappings":";;;;;;;;;;;;;;;AAsBO,WAASA,0BAAT,GAAsC;AAC3C;;AACA,WAAO;AACLC,MAAAA,QAAQ,EAAE,GADL;AAELC,MAAAA,KAAK,EAAE,IAFF;AAGLC,MAAAA,WAAW,EAAE,mEAHR;AAILC,MAAAA,UAAU,EAAEC;AAJP,KAAP;AAMD;;wCAReL,0B;;;;AAtBTM,MAAAA,G;;;gDAEMD,8B;;;AAKX,gDAAYE,MAAZ,EAAoB;AAAA;;AAAA;;AAAA;;AAAA;;AAClBA,UAAAA,MAAM,CAACC,MAAP,GAAgB,IAAhB;AACA,eAAKC,SAAL,GAAiBF,MAAM,CAACG,IAAxB;AACA,eAAKC,KAAL,GAAa,KAAKF,SAAL,CAAeE,KAA5B;AACA,eAAKC,WAAL,GAAmBN,GAAG,CAACO,cAAJ,EAAnB;AAEA,eAAKJ,SAAL,CAAeK,MAAf;AACD;;;;wCAEaC,O,EAAS;AACrB,iBAAKJ,KAAL,CAAWK,IAAX,CAAgBC,UAAhB,GAA6BF,OAAO,CAACG,KAArC;AACA,iBAAKT,SAAL,CAAeK,MAAf;AACD","sourcesContent":["import kbn from 'app/core/utils/kbn';\n\nexport class StatusHeatmapOptionsEditorCtrl {\n panel: any;\n panelCtrl: any;\n unitFormats: any;\n\n constructor($scope) {\n $scope.editor = this;\n this.panelCtrl = $scope.ctrl;\n this.panel = this.panelCtrl.panel;\n this.unitFormats = kbn.getUnitFormats();\n\n this.panelCtrl.render();\n }\n\n setUnitFormat(subItem) {\n this.panel.data.unitFormat = subItem.value;\n this.panelCtrl.render();\n }\n}\n\nexport function statusHeatmapOptionsEditor() {\n 'use strict';\n return {\n restrict: 'E',\n scope: true,\n templateUrl: 'public/plugins/flant-statusmap-panel/partials/options_editor.html',\n controller: StatusHeatmapOptionsEditorCtrl,\n };\n}\n"],"file":"options_editor.js"}
|
||||||
@@ -55,40 +55,70 @@
|
|||||||
<strong>Note:</strong> Multiple values displayed using color with least index<br/>
|
<strong>Note:</strong> Multiple values displayed using color with least index<br/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gf-form" ng-repeat="threshold in ctrl.panel.color.thresholds">
|
<div class="gf-form" ng-show="ctrl.panel.color.thresholds.length == 0">
|
||||||
|
<label class="gf-form-label width-2">0</label>
|
||||||
<label class="gf-form-label width-2">{{ $index }}</label>
|
<label class="gf-form-input width-30">No statuses defined. Add new status or use presets below.</label>
|
||||||
<label class="gf-form-label width-9" ng-if="ctrl.panel.useMax">If bucket has value</label>
|
|
||||||
<label class="gf-form-label width-9" ng-if="!ctrl.panel.useMax">If bucket value ==</label>
|
|
||||||
<input type="text" class="input-small gf-form-input width-4" ng-model="threshold.value" ng-change="ctrl.render()"/>
|
|
||||||
<label class="gf-form-label">
|
|
||||||
fill
|
|
||||||
</label>
|
|
||||||
<label class="gf-form-label">
|
|
||||||
<spectrum-picker ng-model="threshold.color" ng-change="ctrl.render()"/>
|
|
||||||
</label>
|
|
||||||
<label class="gf-form-label">set tooltip</label>
|
|
||||||
<input type="text" class="input-small gf-form-input width-9" ng-model="threshold.tooltip" ng-change="ctrl.render()"/>
|
|
||||||
|
|
||||||
<label class="gf-form-label">
|
|
||||||
<a class="pointer" ng-click="ctrl.onEditorRemoveThreshold($index)">
|
|
||||||
<i class="fa fa-trash"/>
|
|
||||||
</a>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gf-form">
|
<div class="gf-form-inline" ng-repeat="threshold in ctrl.panel.color.thresholds">
|
||||||
<label class="gf-form-label" ng-show="ctrl.panel.color.thresholds.length == 0">
|
<div class="gf-form">
|
||||||
<a class="pointer" ng-click="ctrl.onEditorAddThreeLights()">
|
<label class="gf-form-label width-2">{{ $index }}</label>
|
||||||
Add trafic lights
|
</div>
|
||||||
</a>
|
<div class="gf-form">
|
||||||
</label>
|
<label class="gf-form-label width-9 query-keyword" ng-if="ctrl.panel.useMax">If bucket has value</label>
|
||||||
<label class="gf-form-label">
|
<label class="gf-form-label width-9 query-keyword" ng-if="!ctrl.panel.useMax">If bucket value ==</label>
|
||||||
<a class="pointer" ng-click="ctrl.onEditorAddThreshold()">
|
<input type="text" class="input-small gf-form-input width-4" ng-model="threshold.value" ng-change="ctrl.render()"/>
|
||||||
Add new status
|
<label class="gf-form-label query-keyword">
|
||||||
</a>
|
fill
|
||||||
</label>
|
</label>
|
||||||
|
<label class="gf-form-label">
|
||||||
|
<spectrum-picker ng-model="threshold.color" ng-change="ctrl.render()"/>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="gf-form">
|
||||||
|
<label class="gf-form-label query-keyword">set tooltip</label>
|
||||||
|
<input type="text" class="input-small gf-form-input width-9" ng-model="threshold.tooltip" ng-change="ctrl.render()"/>
|
||||||
|
</div>
|
||||||
|
<div class="gf-form">
|
||||||
|
<label class="gf-form-label">
|
||||||
|
<a class="pointer" tabindex="1" ng-click="ctrl.onEditorRemoveThreshold($index)">
|
||||||
|
<i class="fa fa-trash"/>
|
||||||
|
</a>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="gf-form-inline">
|
||||||
|
<div class="gf-form"></div>
|
||||||
|
<div class="gf-form">
|
||||||
|
<button class="btn btn-inverse" ng-click="ctrl.onEditorAddThreshold()">
|
||||||
|
<i class="fa fa-plus"></i> Add new status
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="gf-form">
|
||||||
|
<button class="btn btn-inverse" ng-click="ctrl.onEditorRemoveThresholds()">
|
||||||
|
<i class="fa fa-minus"></i> Remove all
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="gf-form-inline" ng-show="ctrl.panel.color.thresholds.length == 0">
|
||||||
|
<div class="gf-form"></div>
|
||||||
|
<div class="gf-form">
|
||||||
|
<label class="gf-form-label">Presets</label>
|
||||||
|
</div>
|
||||||
|
<div class="gf-form">
|
||||||
|
<button class="btn" ng-click="ctrl.onEditorAddThreeLights()">
|
||||||
|
Red-Yellow-Green
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="gf-form">
|
||||||
|
<button class="btn" ng-click="ctrl.onEditorAddSolarized()">
|
||||||
|
Solarized
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gf-form" ng-show="ctrl.panel.color.mode !== 'discrete'">
|
<div class="gf-form" ng-show="ctrl.panel.color.mode !== 'discrete'">
|
||||||
@@ -118,7 +148,16 @@
|
|||||||
label="Show tooltip"
|
label="Show tooltip"
|
||||||
checked="ctrl.panel.tooltip.show" on-change="ctrl.render()">
|
checked="ctrl.panel.tooltip.show" on-change="ctrl.render()">
|
||||||
</gf-form-switch>
|
</gf-form-switch>
|
||||||
</div>
|
<div class="gf-form">
|
||||||
|
<label class="gf-form-label width-8">Y axis sort</label>
|
||||||
|
<div class="gf-form-select-wrapper">
|
||||||
|
<select class="gf-form-input max-width-8"
|
||||||
|
ng-model="ctrl.panel.yAxisSort"
|
||||||
|
ng-options="f for f in ['metrics', 'a → z', 'z → a']"
|
||||||
|
ng-change="ctrl.render()"></select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="section gf-form-group">
|
<div class="section gf-form-group">
|
||||||
<h5 class="section-heading">Bucket</h5>
|
<h5 class="section-heading">Bucket</h5>
|
||||||
@@ -142,12 +181,16 @@
|
|||||||
<input type="number" class="gf-form-input width-5" placeholder="5" data-placement="right" bs-tooltip="'Minimal card width for 1/1 resolution in pixels'" ng-model="ctrl.panel.cards.cardMinWidth" ng-change="ctrl.refresh()" ng-model-onblur>
|
<input type="number" class="gf-form-input width-5" placeholder="5" data-placement="right" bs-tooltip="'Minimal card width for 1/1 resolution in pixels'" ng-model="ctrl.panel.cards.cardMinWidth" ng-change="ctrl.refresh()" ng-model-onblur>
|
||||||
</div>
|
</div>
|
||||||
<div class="gf-form">
|
<div class="gf-form">
|
||||||
<label class="gf-form-label width-9">Spacing</label>
|
<label class="gf-form-label width-9">V spacing</label>
|
||||||
<input type="number" class="gf-form-input width-5" placeholder="2" data-placement="right" bs-tooltip="'Card spacing in pixels'" ng-model="ctrl.panel.cards.cardSpacing" ng-change="ctrl.refresh()" ng-model-onblur>
|
<input type="number" class="gf-form-input width-5" placeholder="2" data-placement="right" bs-tooltip="'Cards vertical spacing in pixels'" ng-model="ctrl.panel.cards.cardVSpacing" ng-change="ctrl.refresh()" ng-model-onblur>
|
||||||
|
</div>
|
||||||
|
<div class="gf-form">
|
||||||
|
<label class="gf-form-label width-9">H spacing</label>
|
||||||
|
<input type="number" class="gf-form-input width-5" placeholder="2" data-placement="right" bs-tooltip="'Cards horizontal spacing in pixels'" ng-model="ctrl.panel.cards.cardHSpacing" ng-change="ctrl.refresh()" ng-model-onblur>
|
||||||
</div>
|
</div>
|
||||||
<div class="gf-form">
|
<div class="gf-form">
|
||||||
<label class="gf-form-label width-9">Rounding</label>
|
<label class="gf-form-label width-9">Rounding</label>
|
||||||
<input type="number" class="gf-form-input width-5" placeholder="0" data-placement="right" bs-tooltip="'Angles rounding in percent'" ng-model="ctrl.panel.cards.cardRound" ng-change="ctrl.refresh()" ng-model-onblur>
|
<input type="number" class="gf-form-input width-5" placeholder="0" data-placement="right" bs-tooltip="'Cards rounding radius in pixels'" ng-model="ctrl.panel.cards.cardRound" ng-change="ctrl.refresh()" ng-model-onblur>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
{"name": "Color mapping", "path": "img/color-mapping.png"},
|
{"name": "Color mapping", "path": "img/color-mapping.png"},
|
||||||
{"name": "Queries example", "path": "img/queries-example.png"}
|
{"name": "Queries example", "path": "img/queries-example.png"}
|
||||||
],
|
],
|
||||||
"version": "0.0.2",
|
"version": "0.2.0",
|
||||||
"updated": "2018-10-17"
|
"updated": "2019-12-03"
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||