dyerware

Support => Wordpress Plugins => Topic started by: kazerniel on July 15, 2011, 08:14:28 PM

Title: Aligning the whole chart left
Post 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 :)
Title: Re: Aligning the whole chart left
Post by: doug@dyerware.com on July 15, 2011, 10:13:33 PM
Can you provide a link to a page?  I'll take a look and see what is going on
Title: Re: Aligning the whole chart left
Post by: kazerniel on July 17, 2011, 08:57:47 AM
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 :)
Title: Re: Aligning the whole chart left
Post by: doug@dyerware.com on July 22, 2011, 12:07:19 PM
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:
Code: [Select]
imgstyle="float:left;" datatablecss="float:left;" 1a) Same as above but because the table does not align cleanly just hide it altogether:
Code: [Select]
imgstyle="float:left;" hidechartdata="true"
2) Wrap the ecb shortcode in a div that restricts the sandbox of the ecb chart:
Code: [Select]
<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