Module talk:Chart: Difference between revisions

Content deleted Content added
Line 45:
:::however, playing with "height" and "width" for the whole chart will produce smaller (or larger) versions. one drawback is that the legends text will still show at normal size, which might cause problems, like overlapping legends and such. maybe it should be possible to embed the whole chart inside a "div" with "style='font-size:50%;' " or somesuch:
 
<div style="font-size:60%;">
<div style="margin-left:65px; margin-bottom:15px;">{{rbox|Carrot|#|Blue|White}} and {{rbox|Peach|#|Gold|Black}}</div>
{{ #invoke:Chart | bar chart
Line 65:
 
::::That's very good. I played with something similar, but the font-size and overlap was the killer - never even thought of font-size:x% (duh...). I might be able to make that work. Thanks. The pseudo-thumbnail might not need group legends I suppose. How about an option to not display them "group names=none". Then we could drop coloured boxes/text in the template like: {{rbox|Blue|#|Blue|White}} and {{rbox|Gold|#|Gold|Black}} if the position was awful - see above ? <span style="font-family:Arial;font-weight:bold;color:#000;">[[User:Begoon|<span style="color:#0645AD;">Begoon</span>]]&thinsp;[[User talk:Begoon|<span style="color:gray;"><sup>talk</sup></span>]]</span> 14:25, 27 June 2013 (UTC)
 
:::::Or, I guess I could cheat:
<div style="font-size:60%; height:220px; overflow:hidden; ">
<div style="margin-left:65px; margin-bottom:15px;">{{rbox|Carrot|#|Blue|White}} and {{rbox|Peach|#|Gold|Black}}</div>
{{ #invoke:Chart | bar chart
| height = 200
| width = 250
| stack = 1
| group 1 = 40000 : 50000 : 60000 : 20000 : 30000 : 35000
| group 2 = 20000 : 60000 : 12000 : 44000 : 12000 : 20000
| group 3 = 55000 : 14000 : 33000 : 5000 : 20000 : 10000
| colors = green : yellow : orange
| group names = Apple : Banana : Orange
| units suffix = Kg
| x legends = Before : During : After : Post mortem : Blah : Bloh
}}
</div>
 
::::: <span style="font-family:Arial;font-weight:bold;color:#000;">[[User:Begoon|<span style="color:#0645AD;">Begoon</span>]]&thinsp;[[User talk:Begoon|<span style="color:gray;"><sup>talk</sup></span>]]</span> 15:00, 27 June 2013 (UTC)