generated from worldbank/template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8570928
commit 585ee8f
Showing
10 changed files
with
215 additions
and
2,125 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Emissions from AIS Data | ||
|
||
## Count of Vessels | ||
|
||
<!-- <div id= "content"> | ||
<iframe src="interactive/vessel_count/index.html" name="Vessel Count" id="vessel-count" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen="" width="100%"></iframe> | ||
</div> --> | ||
|
||
<!-- <div id= "content"> | ||
<iframe scrolling="no" src="interactive/vessel_count/index.html" data-id="visualisation/19738193" class="flourish-embed-iframe" title='Interactive or visual content' frameborder='0' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe> | ||
</div> --> | ||
|
||
<div class="flourish-embed flourish-chart" data-src="visualisation/19738193?2274258"><script src="https://public.flourish.studio/resources/embed.js"></script><noscript><img src="https://public.flourish.studio/visualisation/19738193/thumbnail" width="100%" alt="chart visualization" /></noscript></div> | ||
|
||
<!-- <div class="flourish-embed" data-src="interactive/vessel_count/index.html"><script src="interactive/vessel_count/flourish.embed.js"></script></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
You can put static files in this directory. |
1 change: 1 addition & 0 deletions
1
docs/images/interactive/vessel_count/choices/icons/cross-inverse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
docs/images/interactive/vessel_count/choices/styles/css/choices.min.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Host the contents of this zipfile at a URL of your choice. Then on the page where you would like to embed the visualization or story, use one of the following embed codes, replacing {{URL}} with the real URL corresponding to the directory these unpacked files are in (see the notes below). | ||
|
||
Preferred method: flourish.embed.js | ||
----------------------------------- | ||
|
||
Use the included flourish.embed.js file to embed (recommended; best for responsive). Target a container div where you want the visualization to appear using the data-src attribute, as follows: | ||
|
||
<div class="flourish-embed" data-src="{{URL}}/index.html"><script src="{{URL}}/flourish.embed.js"></script></div> | ||
|
||
You only need to include the script once in your HTML page, even if you have multiple visualizations displayed (though there is no harm in including it multiple times; it will only run once). | ||
|
||
In order to fully utilize the dynamic resizing features of Flourish, such as Flourish.setHeight, which adjusts the size of your visualization based on different devices and chart types, it's important to configure the domain where you're embedding the visualization. This setup is especially relevant when you are self-hosting the visualizations. To enable this feature, you need to add the domain of your embed site to a specific field in your company settings. Look for a setting titled 'Self-hosted embed domain' on your company's page in the Flourish platform. Simply enter the domain where you're embedding the visualization into this field. This step is crucial for the Flourish.setHeight function to operate correctly, ensuring that your visualizations and stories resize appropriately according to the context they are viewed in. | ||
|
||
If you simply want to make the embed fill a fixed-height container, add data-height="100%" to your embed code. See an example of this here: https://help.flourish.studio/article/502-how-to-set-custom-height-to-self-hosted-visualizations. | ||
|
||
Alternative method: iframe embed | ||
-------------------------------- | ||
|
||
You can also embed via a simple iframe (this is best if your CMS blocks scripts): | ||
|
||
<iframe scrolling="no" src="{{URL}}" data-id="visualisation/19738193" class="flourish-embed-iframe" title='Interactive or visual content' frameborder='0' style='width:100%;height:600px;' sandbox='allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation'></iframe> | ||
|
||
Be sure to specify scrolling="no" to avoid problems on iOS. | ||
|
||
Notes | ||
----- | ||
|
||
1. Your {{URL}} must be a full path, not a local file URL - in other words it should begin http:// or https://, not file://. | ||
2. If necessary, also update the height and width. | ||
3. You may not remove the Flourish credit unless you are a premium customer or have permission from Flourish HQ. | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.