Hi Thomas,<div><br></div><div>I would just use 3 specific functions (linear, sqrt, log) as the possible values of
CHART_SIZE_FUNCTION </div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br><br><div class="gmail_quote">2012/4/11 thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tamas,<br>
How would you express this in a pseudo-generic way inside the<br>
processing keys? Are there any other functions that would make sense<br>
here?<br>
<br>
--<br>
thomas<br>
<div><div></div><div class="h5"><br>
On Wed, Apr 11, 2012 at 20:14, Tamas Szekeres <<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>> wrote:<br>
><br>
> Hi Devs,<br>
><br>
> One of our client requires an addition which could provide nonlinear<br>
> function to visualize the size of the pies depending on the source<br>
> attribute. Currently we can specify the chart size as follows:<br>
><br>
> PROCESSING "CHART_SIZE_RANGE = itemname minsize maxsize minval maxval"<br>
><br>
> This can provide the size as linear function of the item value. As an<br>
> enhancement we would like to add further kind of functions (like square root<br>
> or logarithm) to enhance the visual appearance (see the images attached).<br>
><br>
> This addition could be implemented by introducing a new processing option<br>
> (like: CHART_SIZE_FUNCTION ) and by adding a switch to the size calculation<br>
> in mapchart.c.<br>
><br>
> For example with the square root function we could use:<br>
><br>
> diameter=MS_NINT(<br>
> mindiameter+<br>
> (sqrt((diameter-minvalue))/sqrt((maxvalue-minvalue)))*<br>
> (maxdiameter-mindiameter));<br>
><br>
><br>
> What do you think about this change?<br>
><br>
><br>
> Best regards,<br>
><br>
> Tamas<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> mapserver-dev mailing list<br>
> <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
><br>
</blockquote></div><br></div>