Author Topic: Aligning the whole chart left  (Read 4602 times)

kazerniel

  • Tadpole
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Aligning the whole chart left
« 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 :)

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Aligning the whole chart left
« Reply #1 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

kazerniel

  • Tadpole
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Aligning the whole chart left
« Reply #2 on: July 17, 2011, 08:57:47 AM »
http://renybt.hu/planetaviridis/plants/amaranth-amarant/

This is where I inserted it to try it out.

And thank you :)

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Aligning the whole chart left
« Reply #3 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

 

anything