-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1432 from CartoDB/1430-add-viz-default-config
Add viz default helpers
- Loading branch information
Showing
85 changed files
with
6,394 additions
and
2,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ wheels/ | |
*.egg | ||
Pipfile | ||
Pipfile.lock | ||
package-lock.json | ||
|
||
# Swap files | ||
.*.sw[nop] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 11 additions & 7 deletions
18
cartoframes/assets/templates/viz/widgets/animation.html.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
|
||
<as-animation-controls-widget | ||
animated | ||
id='{{id}}' | ||
heading='{{widget.title}}' | ||
description='{{widget.description}}' | ||
></as-animation-controls-widget> | ||
<div> | ||
<as-animation-controls-widget | ||
animated | ||
id="{{id}}" | ||
heading="{{widget.title}}" | ||
description="{{widget.description}}" | ||
></as-animation-controls-widget> | ||
{% if widget.footer %} | ||
<footer>{{widget.footer}}</footer> | ||
{% endif %} | ||
</div> |
2 changes: 1 addition & 1 deletion
2
...ets/templates/viz/widgets/default.html.j2 → ...ssets/templates/viz/widgets/basic.html.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div id={{id}}> | ||
<div> | ||
<as-widget-header | ||
header="{{widget.title}}" | ||
subheader="{{widget.description}}"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<as-category-widget | ||
id="{{id}}" | ||
description="{{widget.description}}" | ||
heading="{{widget.title}}"> | ||
</as-category-widget> | ||
<div> | ||
<as-category-widget | ||
id="{{id}}" | ||
description="{{widget.description}}" | ||
heading="{{widget.title}}"> | ||
</as-category-widget> | ||
{% if widget.footer %} | ||
<footer>{{widget.footer}}</footer> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 10 additions & 5 deletions
15
cartoframes/assets/templates/viz/widgets/histogram.html.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<as-histogram-widget | ||
id="{{id}}" | ||
description="{{widget.description}}" | ||
heading="{{widget.title}}"> | ||
</as-histogram-widget> | ||
<div> | ||
<as-histogram-widget | ||
id="{{id}}" | ||
description="{{widget.description}}" | ||
heading="{{widget.title}}"> | ||
</as-histogram-widget> | ||
{% if widget.footer %} | ||
<footer>{{widget.footer}}</footer> | ||
{% endif %} | ||
</div> |
19 changes: 12 additions & 7 deletions
19
cartoframes/assets/templates/viz/widgets/time-series.html.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<as-time-series-widget | ||
animated | ||
id="{{id}}" | ||
time-format="{% if widget.options.timeFormat %}{{widget.options.timeFormat}}{% else %}auto{% endif %}" | ||
description="{{widget.description}}" | ||
heading="{{widget.title}}"> | ||
</as-time-series-widget> | ||
<div> | ||
<as-time-series-widget | ||
animated | ||
id="{{id}}" | ||
time-format="{% if widget.options.timeFormat %}{{widget.options.timeFormat}}{% else %}auto{% endif %}" | ||
description="{{widget.description}}" | ||
heading="{{widget.title}}"> | ||
</as-time-series-widget> | ||
{% if widget.footer %} | ||
<footer>{{widget.footer}}</footer> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.