<title>{{{ params$title }}}</title> {{{ get_assets() }}} <style> text{ font-family: {{{ params$font }}}; } </style> </head> <body> <div class="g-search"> <input type="text" placeholder="Search…"> <button style="display:none;" class="g-search-clear">X</button> </div> <script type="text/javascript"> plot = new_plot({ data: {{ data }}, data_ranges: {{{ get_data_ranges() }}}, categorical_domains: {{{ get_categorical_domains() }}}, width: {{ params$out_width }}, height: {{ params$out_height }}, padding: {{ params$padding }}, labels: { title: {{ params$title }}, subtitle: {{ params$subtitle }}, x_title: {{ params$x_title }}, y_title: {{ params$y_title }}, color_title: {{ params$color_title }} }, rotate: { x_title: {{ params$rotate_x_title }}, y_title: {{ params$rotate_y_title }}, x_labels: {{ params$rotate_x_labels }}, y_labels: {{ params$rotate_y_labels }}, }, scale_limits: { x: {{ params$x_lim }}, y: {{ params$y_lim }} }, jitter: { x: {{ params$x_jitter }}, y: {{ params$y_jitter }} }, x_format: {{ params$x_format }}, y_format: {{ params$y_format }}, ordinal_scale_padding: 1, linear_scale_padding: 40 }); // sidebar static_line_width = 5; distance_between_show_names_and_color_groups = 80; interpolate = {{ params$interpolate }}; opacity = {{ params$opacity }}; stroke_width = {{ params$stroke_width }}; show_sidebar = {{ params$show_sidebar }}; color_scale = {{{ get_d3_color_scale() }}} r_color_group = {{{ get_d3_color_group() }}} color_legend_counts = {{ get_color_legend_counts() }}; tooltip_content = {{{ get_tooltip_content() }}} </script> <script src="clickme_assets/Lines/plot.js"></script> </body>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.