View source: R/set_photo_slider_details.R
set_photo_slider_details | R Documentation |
Set photo slider chart details
set_photo_slider_details(
.,
mode = NULL,
spotlight_size = NULL,
spotlight_blur = NULL,
spotlight_speed = NULL,
photo_1_big = NULL,
has_photo_1_small = NULL,
photo_1_small = NULL,
photo_2_big = NULL,
has_photo_2_small = NULL,
photo_2_small = NULL,
slider_radius = NULL,
slider_fill_type = NULL,
slider_fill_image = NULL,
slider_fill_overlay = NULL,
slider_fill_standalone = NULL,
slider_line_thickness = NULL,
slider_line_color = NULL,
chart_layout_body_font = NULL,
chart_layout_font_color = NULL,
chart_layout_background_color_enabled = NULL,
chart_layout_background_image_enabled = NULL,
chart_layout_background_color = NULL,
chart_layout_background_image_src = NULL,
chart_layout_background_image_size = NULL,
chart_layout_background_image_position = NULL,
chart_layout_max_width_target = NULL,
chart_layout_max_width = NULL,
chart_layout_max_width_align = NULL,
chart_layout_layout_order = NULL,
chart_layout_space_between_sections = NULL,
chart_layout_space_between_sections_custom = NULL,
chart_layout_margin_top = NULL,
chart_layout_margin_right = NULL,
chart_layout_margin_bottom = NULL,
chart_layout_margin_left = NULL,
chart_layout_border_enabled = NULL,
chart_layout_border_top_width = NULL,
chart_layout_border_top_style = NULL,
chart_layout_border_top_color = NULL,
chart_layout_border_right_width = NULL,
chart_layout_border_right_style = NULL,
chart_layout_border_right_color = NULL,
chart_layout_border_bottom_width = NULL,
chart_layout_border_bottom_style = NULL,
chart_layout_border_bottom_color = NULL,
chart_layout_border_left_width = NULL,
chart_layout_border_left_style = NULL,
chart_layout_border_left_color = NULL,
chart_layout_read_direction = NULL,
chart_layout_font_size_mobile_small = NULL,
chart_layout_font_size_mobile_big = NULL,
chart_layout_font_size_tablet = NULL,
chart_layout_font_size_desktop = NULL,
chart_layout_font_size_big_screen = NULL,
chart_layout_breakpoint_mobile_small = NULL,
chart_layout_breakpoint_mobile_big = NULL,
chart_layout_breakpoint_tablet = NULL,
chart_layout_breakpoint_desktop = NULL,
chart_layout_breakpoint_big_screen = NULL,
chart_layout_header_align = NULL,
chart_layout_title = NULL,
chart_layout_title_styling = NULL,
chart_layout_title_font = NULL,
chart_layout_title_size = NULL,
chart_layout_title_size_custom = NULL,
chart_layout_title_weight = NULL,
chart_layout_title_color = NULL,
chart_layout_title_line_height = NULL,
chart_layout_title_space_above = NULL,
chart_layout_title_space_above_custom = NULL,
chart_layout_subtitle = NULL,
chart_layout_subtitle_styling = NULL,
chart_layout_subtitle_font = NULL,
chart_layout_subtitle_size = NULL,
chart_layout_subtitle_size_custom = NULL,
chart_layout_subtitle_weight = NULL,
chart_layout_subtitle_color = NULL,
chart_layout_subtitle_line_height = NULL,
chart_layout_subtitle_space_above = NULL,
chart_layout_subtitle_space_above_custom = NULL,
chart_layout_header_text = NULL,
chart_layout_header_text_styling = NULL,
chart_layout_header_text_size = NULL,
chart_layout_header_text_size_custom = NULL,
chart_layout_header_text_weight = NULL,
chart_layout_header_text_color = NULL,
chart_layout_header_text_line_height = NULL,
chart_layout_header_text_space_above = NULL,
chart_layout_header_text_space_above_custom = NULL,
chart_layout_header_border = NULL,
chart_layout_header_border_width = NULL,
chart_layout_header_border_color = NULL,
chart_layout_header_border_style = NULL,
chart_layout_header_border_space = NULL,
chart_layout_header_logo_enabled = NULL,
chart_layout_header_logo_src = NULL,
chart_layout_header_logo_alt = NULL,
chart_layout_header_logo_link_url = NULL,
chart_layout_header_logo_height = NULL,
chart_layout_header_logo_align = NULL,
chart_layout_header_logo_position_inside = NULL,
chart_layout_header_logo_position_outside = NULL,
chart_layout_header_logo_margin_top = NULL,
chart_layout_header_logo_margin_right = NULL,
chart_layout_header_logo_margin_bottom = NULL,
chart_layout_header_logo_margin_left = NULL,
chart_layout_footer_align = NULL,
chart_layout_footer_text_size = NULL,
chart_layout_footer_text_color = NULL,
chart_layout_footer_styling = NULL,
chart_layout_footer_font = NULL,
chart_layout_footer_text_weight = NULL,
chart_layout_source_name = NULL,
chart_layout_source_url = NULL,
chart_layout_multiple_sources = NULL,
chart_layout_source_name_2 = NULL,
chart_layout_source_url_2 = NULL,
chart_layout_source_name_3 = NULL,
chart_layout_source_url_3 = NULL,
chart_layout_source_label = NULL,
chart_layout_footer_note = NULL,
chart_layout_footer_note_secondary = NULL,
chart_layout_advanced_note_styling = NULL,
chart_layout_footer_timestamp_format = NULL,
chart_layout_footer_logo_enabled = NULL,
chart_layout_footer_logo_src = NULL,
chart_layout_footer_logo_src_light = NULL,
chart_layout_footer_logo_alt = NULL,
chart_layout_footer_logo_link_url = NULL,
chart_layout_footer_logo_height = NULL,
chart_layout_footer_logo_margin = NULL,
chart_layout_footer_logo_order = NULL,
chart_layout_footer_align_vertical = NULL,
chart_layout_footer_border = NULL,
chart_layout_footer_border_width = NULL,
chart_layout_footer_border_color = NULL,
chart_layout_footer_border_style = NULL,
chart_layout_footer_border_space = NULL,
chart_layout_screenreader_text_primary = NULL,
chart_layout_screenreader_label = NULL,
chart_layout_screenreader_hide_primary = NULL
)
. |
The prior Flourish object. No need to specify name if piping graph as the graph will take the first argument (i.e. the prior existing graph). |
mode |
Before/after mode. Choices: slide, fade, spotlight. Flourish type hint: string, defaults to |
spotlight_size |
Spotlight size. Flourish type hint: number, defaults to |
spotlight_blur |
Spotlight blur. Flourish type hint: number, defaults to |
spotlight_speed |
Spotlight animation. Time it takes to animate from one spotlight position to another in the story player Flourish type hint: number, defaults to |
photo_1_big |
Flourish type hint: url, defaults to |
has_photo_1_small |
Add smaller version for mobile. (Optional) Mobile versions will be loaded quicker on smaller screens. Flourish type hint: boolean, defaults to |
photo_1_small |
Photo 1 (mobile version). This picture should be roughly 500px wide. Flourish type hint: url, defaults to |
photo_2_big |
Flourish type hint: url, defaults to |
has_photo_2_small |
Add smaller version for mobile. (Optional) Mobile versions will be loaded quicker on smaller screens. Flourish type hint: boolean, defaults to |
photo_2_small |
Photo 2 (mobile version). This picture should be roughly 500px wide. Flourish type hint: url, defaults to |
slider_radius |
Size. Flourish type hint: number, defaults to |
slider_fill_type |
Type. Choices: color, image. Flourish type hint: string, defaults to |
slider_fill_image |
Image. Flourish type hint: url, defaults to |
slider_fill_overlay |
Fill. Flourish type hint: color, defaults to |
slider_fill_standalone |
Fill (outside picture). Flourish type hint: color, defaults to |
slider_line_thickness |
Slider line thickness. Flourish type hint: number, defaults to |
slider_line_color |
Slider line color. Flourish type hint: color, defaults to |
chart_layout_body_font |
Main font. This font will apply to the whole graphic by default. You can optionally change the font for the title, subtitle, footer, etc in the Header and Footer settings panels. Flourish type hint: font, defaults to |
chart_layout_font_color |
Text color. This color will apply to the whole graphic by default, You can optionally change the color for individual text elements, in other settings panels. Flourish type hint: color, defaults to |
chart_layout_background_color_enabled |
Color. Choices: |
chart_layout_background_image_enabled |
Image. Choices: |
chart_layout_background_color |
Background color. Flourish type hint: color, defaults to |
chart_layout_background_image_src |
Image URL. Flourish type hint: url, defaults to |
chart_layout_background_image_size |
Size. Choices: cover, contain, auto, 100% 100%. Flourish type hint: string, defaults to |
chart_layout_background_image_position |
Position. Choices: top left, top center, top right, center left, center center, center right, bottom left, bottom center, bottom right. Flourish type hint: string, defaults to |
chart_layout_max_width_target |
Maximum width. Choices: none, wrapper, primary. Apply a maximum width to just the main graphic or everything (main graphic plus header, footer, etc). Flourish type hint: string, defaults to |
chart_layout_max_width |
Maximum width. Leave blank to stretch to container width. Flourish type hint: number, defaults to |
chart_layout_max_width_align |
Align. Choices: left, center, right. Flourish type hint: string, defaults to |
chart_layout_layout_order |
Layout order. Flourish type hint: string, defaults to |
chart_layout_space_between_sections |
Space between sections. Choices: 0.5, 1, 1.5, custom. Flourish type hint: string, defaults to |
chart_layout_space_between_sections_custom |
Custom. Flourish type hint: number, defaults to |
chart_layout_margin_top |
Top. Flourish type hint: number, defaults to |
chart_layout_margin_right |
Right. Flourish type hint: number, defaults to |
chart_layout_margin_bottom |
Bottom. Flourish type hint: number, defaults to |
chart_layout_margin_left |
Left. Flourish type hint: number, defaults to |
chart_layout_border_enabled |
Show borders around visualisation. Flourish type hint: boolean, defaults to |
chart_layout_border_top_width |
Top. Flourish type hint: number, defaults to |
chart_layout_border_top_style |
Style. Choices: solid, dashed, dotted. Flourish type hint: string, defaults to |
chart_layout_border_top_color |
Color. Flourish type hint: color, defaults to |
chart_layout_border_right_width |
Right. Flourish type hint: number, defaults to |
chart_layout_border_right_style |
Style. Choices: solid, dashed, dotted. Flourish type hint: string, defaults to |
chart_layout_border_right_color |
Color. Flourish type hint: color, defaults to |
chart_layout_border_bottom_width |
Bottom. Flourish type hint: number, defaults to |
chart_layout_border_bottom_style |
Style. Choices: solid, dashed, dotted. Flourish type hint: string, defaults to |
chart_layout_border_bottom_color |
Color. Flourish type hint: color, defaults to |
chart_layout_border_left_width |
Left. Flourish type hint: number, defaults to |
chart_layout_border_left_style |
Style. Choices: solid, dashed, dotted. Flourish type hint: string, defaults to |
chart_layout_border_left_color |
Color. Flourish type hint: color, defaults to |
chart_layout_read_direction |
Read direction. Choices: ltr, rtl. This will change the reading direction of the main text elements on the page. Its not possible to adjust this on all elements, such as axes. Note that when direction is set to right to left any alignment icons will be reversed. Flourish type hint: string, defaults to |
chart_layout_font_size_mobile_small |
Flourish type hint: number, defaults to |
chart_layout_font_size_mobile_big |
Flourish type hint: number, defaults to |
chart_layout_font_size_tablet |
Flourish type hint: number, defaults to |
chart_layout_font_size_desktop |
Flourish type hint: number, defaults to |
chart_layout_font_size_big_screen |
Flourish type hint: number, defaults to |
chart_layout_breakpoint_mobile_small |
Flourish type hint: number, defaults to |
chart_layout_breakpoint_mobile_big |
Flourish type hint: number, defaults to |
chart_layout_breakpoint_tablet |
Flourish type hint: number, defaults to |
chart_layout_breakpoint_desktop |
Flourish type hint: number, defaults to |
chart_layout_breakpoint_big_screen |
Flourish type hint: number, defaults to |
chart_layout_header_align |
Alignment. Choices: left, center, right. Flourish type hint: string, defaults to |
chart_layout_title |
Flourish type hint: html, defaults to |
chart_layout_title_styling |
Styling. Flourish type hint: boolean, defaults to |
chart_layout_title_font |
Title Font. Flourish type hint: font, defaults to |
chart_layout_title_size |
Size. Choices: 1.4, 1.6, 2, custom. Flourish type hint: string, defaults to |
chart_layout_title_size_custom |
Custom. Specify a custom responsive font size in rems The best results will be with values between 1.2 and 3. Flourish type hint: number, defaults to |
chart_layout_title_weight |
Weight. Choices: bold, normal. Flourish type hint: string, defaults to |
chart_layout_title_color |
Color. Flourish type hint: color, defaults to |
chart_layout_title_line_height |
Line height. Flourish type hint: number, defaults to |
chart_layout_title_space_above |
Space above. Choices: 0, 0.5, 1, custom. Flourish type hint: string, defaults to |
chart_layout_title_space_above_custom |
Custom. Flourish type hint: number, defaults to |
chart_layout_subtitle |
Flourish type hint: html, defaults to |
chart_layout_subtitle_styling |
Styling. Flourish type hint: boolean, defaults to |
chart_layout_subtitle_font |
Subtitle Font. Flourish type hint: font, defaults to |
chart_layout_subtitle_size |
Size. Choices: 1.4, 1.6, 2, custom. Flourish type hint: string, defaults to |
chart_layout_subtitle_size_custom |
Custom. Specify a custom responsive font size in rems The best results will be with values between 1.2 and 3. Flourish type hint: number, defaults to |
chart_layout_subtitle_weight |
Weight. Choices: bold, normal. Flourish type hint: string, defaults to |
chart_layout_subtitle_color |
Color. Flourish type hint: color, defaults to |
chart_layout_subtitle_line_height |
Line height. Flourish type hint: number, defaults to |
chart_layout_subtitle_space_above |
Space above. Choices: 0, 0.5, 1, custom. Flourish type hint: string, defaults to |
chart_layout_subtitle_space_above_custom |
Custom. Flourish type hint: number, defaults to |
chart_layout_header_text |
Flourish type hint: html, defaults to |
chart_layout_header_text_styling |
Styling. Flourish type hint: boolean, defaults to |
chart_layout_header_text_size |
Size. Choices: 1.2, 1.4, 1.6, custom. Flourish type hint: string, defaults to |
chart_layout_header_text_size_custom |
Custom. Specify a custom responsive font size in rems The best results will be with values between 1.2 and 3. Flourish type hint: number, defaults to |
chart_layout_header_text_weight |
Weight. Choices: bold, normal. Flourish type hint: string, defaults to |
chart_layout_header_text_color |
Color. Flourish type hint: color, defaults to |
chart_layout_header_text_line_height |
Line height. Flourish type hint: number, defaults to |
chart_layout_header_text_space_above |
Space above. Choices: 0, 0.5, 1, custom. Flourish type hint: string, defaults to |
chart_layout_header_text_space_above_custom |
Custom. Flourish type hint: number, defaults to |
chart_layout_header_border |
Choices: top, bottom, top_and_bottom, none. Flourish type hint: string, defaults to |
chart_layout_header_border_width |
Width. Flourish type hint: number, defaults to |
chart_layout_header_border_color |
Color. Flourish type hint: color, defaults to |
chart_layout_header_border_style |
Style. Choices: solid, dashed, dotted. Flourish type hint: string, defaults to |
chart_layout_header_border_space |
Space. Space between border and header text. Flourish type hint: number, defaults to |
chart_layout_header_logo_enabled |
Choices: |
chart_layout_header_logo_src |
Image. Flourish type hint: url, defaults to |
chart_layout_header_logo_alt |
Alt text. Flourish type hint: string, defaults to |
chart_layout_header_logo_link_url |
Link. Flourish type hint: string, defaults to |
chart_layout_header_logo_height |
Height. Flourish type hint: number, defaults to |
chart_layout_header_logo_align |
Align. Choices: inside, outside. Align logo inside either the header or the main visualization container. Flourish type hint: string, defaults to |
chart_layout_header_logo_position_inside |
Position. Choices: top, left, right. Flourish type hint: string, defaults to |
chart_layout_header_logo_position_outside |
Position. Choices: left, right. Flourish type hint: string, defaults to |
chart_layout_header_logo_margin_top |
Top. Flourish type hint: number, defaults to |
chart_layout_header_logo_margin_right |
Right. Flourish type hint: number, defaults to |
chart_layout_header_logo_margin_bottom |
Bottom. Flourish type hint: number, defaults to |
chart_layout_header_logo_margin_left |
Left. Flourish type hint: number, defaults to |
chart_layout_footer_align |
Alignment. Choices: left, center, right, justify. Flourish type hint: string, defaults to |
chart_layout_footer_text_size |
Size. Flourish type hint: number, defaults to |
chart_layout_footer_text_color |
Color. Flourish type hint: color, defaults to |
chart_layout_footer_styling |
Advanced footer styles. Flourish type hint: boolean, defaults to |
chart_layout_footer_font |
Font. Flourish type hint: font, defaults to |
chart_layout_footer_text_weight |
Weight. Choices: bold, normal. Flourish type hint: string, defaults to |
chart_layout_source_name |
Source name. Flourish type hint: string, defaults to |
chart_layout_source_url |
Source url. Flourish type hint: string, defaults to |
chart_layout_multiple_sources |
Multiple sources. Flourish type hint: boolean, defaults to |
chart_layout_source_name_2 |
Source name. Flourish type hint: string, defaults to |
chart_layout_source_url_2 |
Source url. Flourish type hint: string, defaults to |
chart_layout_source_name_3 |
Source name. Flourish type hint: string, defaults to |
chart_layout_source_url_3 |
Source url. Flourish type hint: string, defaults to |
chart_layout_source_label |
Source label. Flourish type hint: string, defaults to |
chart_layout_footer_note |
Note. To add the time/date stamp of when the data was last updated add |
chart_layout_footer_note_secondary |
Note (secondary). The secondary note is placed below the source and primary note. To add the time/date stamp of when the data was last updated add |
chart_layout_advanced_note_styling |
Advanced. Flourish type hint: boolean, defaults to |
chart_layout_footer_timestamp_format |
Time/date stamp formatting. Choices: %H:%M:%S, %I:%M %p, %H:%M, %H:%M %p, %H:%M:%S, %d %b %Y, %H:%M, %d %b %Y, %H:%M, %d/%m/%Y, %H:%M, %m/%d/%Y, %H:%M, %d-%m-%Y, %H:%M, %m-%d-%Y, %d %b %Y, %m/%d/%Y, %d/%m/%Y, %m-%d-%Y, %d-%m-%Y, %Y-%m-%d, %Y-%m-%d %H:%M:%S. Flourish type hint: string, defaults to |
chart_layout_footer_logo_enabled |
Image. Choices: |
chart_layout_footer_logo_src |
Image. Flourish type hint: url, defaults to |
chart_layout_footer_logo_src_light |
Image (light version). If provided this version will be used whenever the background color is dark. Flourish type hint: hidden, defaults to |
chart_layout_footer_logo_alt |
Alt text. Flourish type hint: string, defaults to |
chart_layout_footer_logo_link_url |
Link. Flourish type hint: string, defaults to |
chart_layout_footer_logo_height |
Height. Flourish type hint: number, defaults to |
chart_layout_footer_logo_margin |
Margin. Flourish type hint: number, defaults to |
chart_layout_footer_logo_order |
Position. Choices: left, right. Flourish type hint: string, defaults to |
chart_layout_footer_align_vertical |
V. align. Choices: flex-start, center, flex-end. Flourish type hint: string, defaults to |
chart_layout_footer_border |
Choices: top, bottom, top_and_bottom, none. Flourish type hint: string, defaults to |
chart_layout_footer_border_width |
Width. Flourish type hint: number, defaults to |
chart_layout_footer_border_color |
Color. Flourish type hint: color, defaults to |
chart_layout_footer_border_style |
Style. Choices: solid, dashed, dotted. Flourish type hint: string, defaults to |
chart_layout_footer_border_space |
Space. Space between border and footer text. Flourish type hint: number, defaults to |
chart_layout_screenreader_text_primary |
Screenreader description. A text alternative to the visual content that will only be visible to screenreaders, e.g. The line chart shows China consistently higher than the other countries since 1990. Do not replicate your title, since that will also be read by screenreaders. Flourish type hint: text, defaults to |
chart_layout_screenreader_label |
Screenreader label. A short text label given to the main Flourish embed wrapper to provide an accessible name that is only visible to screenreaders Added in the form of an "aria-label". Flourish type hint: string, defaults to |
chart_layout_screenreader_hide_primary |
Screenreader mode for main visual container. Choices: |
A Flourish chart
try(
flourish(chart_type = "photo_slider", api_key = Sys.getenv("FLOURISH_API_KEY")) |>
set_photo_slider_details()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.