dyerware
Support => Wordpress Plugins => Topic started by: kazerniel on July 15, 2011, 08:14:28 PM
-
Hi,
I want to place pie charts in posts, but it always aligns the chart on the center, while I would need it on the left. I deleted all "centering" attributes from the css file and the css in the settings panel, but the chart stays in the center. Unfortunately I don't know PHP at all, so could you help me what I need to change to place the whole thing on the left?
Thank you :)
-
Can you provide a link to a page? I'll take a look and see what is going on
-
http://renybt.hu/planetaviridis/plants/amaranth-amarant/ (http://renybt.hu/planetaviridis/plants/amaranth-amarant/)
This is where I inserted it to try it out.
And thank you :)
-
Sorry for the delay :)
Ok there are two options for you to fix this. At the moment both have some compromises:
1) use the imgstyle attribute of ecb to align the chart to the left:
imgstyle="float:left;" datatablecss="float:left;"
1a) Same as above but because the table does not align cleanly just hide it altogether:
imgstyle="float:left;" hidechartdata="true"
2) Wrap the ecb shortcode in a div that restricts the sandbox of the ecb chart:
<div align="left" style="width:50%;">
[ecb ...]
</div>
Note you can replace the 50% above with say, 200px (200 pixels wide)
I need to update the plugin with a general alignment parameter