Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this user
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
proost
/
CoNekT
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
15
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
5c102fb
build
db
docs
migration
planet
admin
controllers
extensions
forms
helpers
models
static
templates
admin
error
macros
chartjs.html
cluster_actions.html
neighborhood_actions.html
pagination.html
modals
pagination
static_pages
tables
base.html
blast.html
clade.html
compare_profiles.html
compare_specificity.html
custom_network.html
expression_cluster.html
expression_graph.html
expression_heatmap.html
expression_network.html
expression_profile.html
expression_profile_comparison.html
family.html
go.html
interpro.html
login.html
register.html
search_enriched_clusters.html
search_results.html
search_specific_profiles.html
sequence.html
species.html
__init__.py
ftp.py
tests
utils
.gitattributes
.gitignore
README.md
config.template.py
db_action.py
master_build.template.py
planet.template.wsgi
requirements.txt
run.py
run_unittest.py
test_profile_build.py
Breadcrumbs
CoNekT
/
planet
/
templates
/
macros
/
chartjs.html
Blame
Blame
Latest commit
History
History
46 lines (44 loc) · 1.62 KB
Breadcrumbs
CoNekT
/
planet
/
templates
/
macros
/
chartjs.html
Top
File metadata and controls
Code
Blame
46 lines (44 loc) · 1.62 KB
Raw
{% macro expression_profile(target, url) -%} $( document ).ready(function() { $.getJSON( "{{ url}}", function( data ) { var ctx = document.getElementById("{{ target }}").getContext("2d"); data['options']['responsive'] = true; data['options']['maintainAspectRatio'] = false; data['options']['tooltips'] = { enabled: true, mode: 'label', itemSort: function(a, b, data) { conversion = {'Minimum': 0, 'Mean': 1, 'Maximum': 2} if (conversion[data.datasets[a.datasetIndex].label] > conversion[data.datasets[b.datasetIndex].label]) { return -1 } else if (conversion[data.datasets[a.datasetIndex].label] < conversion[data.datasets[b.datasetIndex].label]) { return 1 } else { return 0 } }, callbacks: { label: function(tooltipItems, data) { return data.datasets[tooltipItems.datasetIndex].label + ': ' + tooltipItems.yLabel.toFixed(2); } } } var myChart = new Chart(ctx, data); }); }); {%- endmacro %} {% macro pie_chart(target, url) -%} $( document ).ready(function() { $.getJSON( "{{ url}}", function( data ) { var ctx = document.getElementById("{{ target }}").getContext("2d"); data['options'] = { responsive: true, maintainAspectRatio: false, legend: { position: 'bottom' } } var myChart = new Chart(ctx, data); }); }); {%- endmacro %}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
You can’t perform that action at this time.