I'm trying to insert an interactive plot using <embed src="..."></embed>
and make it responsive with bootstrap. Works fine but I want to reduce the max size of the chart and I can't find a solution. This is the working (but huge) plot:
<div class="embed-responsive embed-responsive-4by3">
<embed src="{{payment_methods_plots[account]}}"></embed>
</div>
My three failed approaches are:
- Putting inside a div and style it with CSS
style="max-height: ...px;"
: Cut the image by half. - Use the
height
property of<embed>
: Not working. - Trying to add the CSS property
(max-height: ...px;)
toembed-responsive-4by3
: Failed.
EDIT: The charts are dynamic charts generated by pygal python library (codified in base64 ). This is an example of a graph: