<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond,new york,times,serif;font-size:14pt">Thanks Forums, yesterday I already can appear graph from Mapserv vs 5.x<br><br>But, why just appear bar or pie without values?<br><br>Anyone can explain about the coding that should i write?<br><br>if i have mapfile with many layer and also many class, how to write it and display graph dynamic?<br><br>here the example:<br><br>i have 1 database with 4 tables (tA,tB,tC,tD), in one table has 4 fields <span style="font-weight: bold;">but </span>if<br>i want to display just 2 fields (region and total) from each table , how to write it down in Layer TYPE CHART?<br><br>if i wrote like this, it will display bar on the map all same, no short tall graph and all same pie, no part of it.<br><br><font size="2"><span style="font-family: arial,helvetica,sans-serif; font-weight: bold;"># tA</span><br style="font-family:
 arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; LAYER</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; #NAME "tA"</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; STATUS DEFAULT</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp; </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE CHART</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROCESSING "CHART_TYPE=BAR"</span><br style="font-family: arial,helvetica,sans-serif;"><span
 style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROCESSING "CHART_SIZE=40 30" #specify size of the chart for pie or bar graphs</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #PROCESSING "CHART_SIZE=20 10" #specify width n height for graphs</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; CONNECTIONTYPE POSTGIS</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; CONNECTION "user=xpassword=pass dbname=db host=localhost port=5432"</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">DATA "the_geom FROM tA USING UNIQUE num"&nbsp;&nbsp; ## HOW
 TO WRITE ?</span></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; CLASS</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "Region 1"</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE "./template_gender.html"</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">EXPRESSION ([total]&gt;=1000 and [total]&lt;=2000)&nbsp;&nbsp; # is it rite?</span></span><br style="font-family:
 arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">SIZE [region]</span><br style="font-family: arial,helvetica,sans-serif;"></span><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 255 0</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span></font><font size="2"><span style="font-family: arial,helvetica,sans-serif;">CLASS</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "Region 2"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE "./template_gender.html"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ([total]&gt;=2001 and [total]&lt;=3000) </span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE [region]<br style="font-family: arial,helvetica,sans-serif;">
  </span><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 255 255</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS</span></font><font size="2"><span style="font-family: arial,helvetica,sans-serif;"></span><span style="font-family: arial,helvetica,sans-serif;"></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">END LAYER</span></font><br><br>############################################<br><br><font size="2"><span style="font-family: arial,helvetica,sans-serif; font-weight: bold;"># tB</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; LAYER</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; #NAME "tA"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; STATUS DEFAULT</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp; </span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE CHART</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROCESSING "CHART_TYPE=BAR"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROCESSING "CHART_SIZE=40 30" #specify size of the chart for pie or bar graphs</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #PROCESSING "CHART_SIZE=20 10" #specify width n height for graphs</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; CONNECTIONTYPE POSTGIS</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; CONNECTION "user=xpassword=pass dbname=db host=localhost port=5432"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">DATA "the_geom FROM tA USING UNIQUE num"&nbsp;&nbsp; ## HOW TO WRITE ?</span></span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; </span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; CLASS</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "Region 1"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE "./template_gender.html"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">EXPRESSION ([total]&gt;=1000 and [total]&lt;=2000)&nbsp;&nbsp; # is it rite?</span></span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">SIZE [region]</span><br style="font-family: arial,helvetica,sans-serif;">
  </span><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 255 0</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span></font><font size="2"><span style="font-family: arial,helvetica,sans-serif;">CLASS</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "Region 2"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE "./template_gender.html"</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ([total]&gt;=2001 and [total]&lt;=3000) </span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE [region]<br style="font-family: arial,helvetica,sans-serif;">
  </span><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 255 255</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS</span></font><font size="2"><span style="font-family: arial,helvetica,sans-serif;"></span><span style="font-family: arial,helvetica,sans-serif;"></span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">END LAYER</span></font><br><span style="font-weight: bold;">:<br>:<br>until 2 layers more that describe 2 tables.<br><br></span>Thanks all,<br><br>-Theresia :)<span style="font-weight: bold;"><br></span></div><br>







      </body></html>