日期:2014-05-20  浏览次数:20866 次

有个问题关于anychart的,进来看下吧
贴出主要代码
<palettes>
  <palette name="myPalette" type="ColorRange" color_count="6">
  <gradient>
  <key color="#00ffcc"/>
  <key color="#efef61"/>
  <key color="#ffcc99"/>
  <key color="#5f84ef"/>
  <key color="#e9b105"/>
  <key color="#cc0000"/>
  </gradient>
  </palette>
</palettes>

  <thresholds>
  <threshold name="autoTr1" type="Quantiles" auto_value="{%ProjectStage}" range_count="6" palette="myPalette"/>
  </thresholds>

  <data threshold="autoTr1"> 
  <% Response.Write(Data);%>
  </data> 

thresholds指定的palette就是上面的palettes部分,ProjectStage是从后台取得的值,有1,2,3,4,5,6
这几个值,按理说前面显示应该俺数字显示不同颜色,现在怎么显示的颜色都乱了啊
谁帮我下
thanks

------解决方案--------------------
取值是否是乱的
而且从后台取出来的是123456,这个是和色对应的值吗
是不是值不对,应该是个二进制数啥的