FusionChart HLinearGauge图表 [英] FusionChart HLinearGauge chart

查看:104
本文介绍了FusionChart HLinearGauge图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在创建一个融合图HLinearGauge。



以下是我的XML格式示例



Hi,

I am creating a fusionchart HLinearGauge.

Below is my sample XML format

<graph lowerLimit='0' upperLimit='100' lowerLimitDisplay='Bad' upperLimitDisplay='Good' palette='1' numberSuffix='%' chartRightMargin='20'>

  <colorRange>
    <color minValue='0' maxValue='75' code='FF654F' label='Bad' />
    <color minValue='75' maxValue='90' code='F6BD0F' label='Moderate' />
    <color minValue='90' maxValue='100' code='8BBA00' label='Good' />
  </colorRange>

  <pointers>
    <pointer value='92' />
  </pointers>
</graph>





以下是我的代码





Below is my code behind

protected void Page_Load(object sender, EventArgs e)
        {
            Literal1.Text = InfoSoftGlobal.FusionCharts.RenderChartHTML("FusionCharts/HLinearGauge.swf", "XML/Gauges.xml", "", "chart", "448", "250", false);
        }





当我运行它显示的代码时,加载数据时出错



When I run the code it shows, error on loading data

推荐答案

尝试将此XML值保存在变量中并将变量传递到Fusionchart中。



string value =
Try to save this XML value in a variable and pass the variable into the Fusionchart.

string value =
@"<graph >

  <colorRange>
    <color minValue='0' maxValue='75' code='FF654F' label='Bad' />
    <color minValue='75' maxValue='90' code='F6BD0F' label='Moderate' />
    <color minValue='90' maxValue='100' code='8BBA00' label='Good' />
  </colorRange>

  <pointers>
    <pointer value='92' />
  </pointers>
</graph>";





Literal1.Text = InfoSoftGlobal.Fu sionCharts.RenderChartHTML(FusionCharts / HLinearGauge.swf,,value,chart,448,250,false);



Literal1.Text = InfoSoftGlobal.FusionCharts.RenderChartHTML("FusionCharts/HLinearGauge.swf", "", value, "chart", "448", "250", false);


这篇关于FusionChart HLinearGauge图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆