/// <summary> /// 仪表盘XML数据头 /// </summary> /// <param name="c"></param> /// <returns></returns> public string GetFusionChartAngularGaugeStartXML(AngularGaugeChart c) { StringBuilder sb_AngularGaugeStart = new StringBuilder(); sb_AngularGaugeStart.Append("<chart caption='" + c.Caption + "' bgAlpha='" + c.BgAlpha + "' bgColor='" + c.BgColor + "' lowerLimit='" + c.LowerLimit + "' upperLimit='" + c.UpperLimit + "' numberSuffix='" + c.NumberSuffix + "' showBorder='" + c.ShowBorder + "' basefontColor='" + c.BasefontColor + "' chartTopMargin='" + c.ChartTopMargin + "' chartBottomMargin='" + c.ChartBottomMargin + "' chartLeftMargin='" + c.ChartLeftMargin + "' chartRightMargin='" + c.ChartRightMargin + "' toolTipBgColor='" + c.ToolTipBgColor + "' gaugeFillMix='" + c.GaugeFillMix + "' gaugeFillRatio='" + c.GaugeFillRatio + "' >"); return(sb_AngularGaugeStart.ToString()); }
/// <summary> /// 获取仪表盘XML字符串 /// </summary> /// <param name="dt"></param> /// <param name="c"></param> /// <param name="llist"></param> /// <param name="slist"></param> /// <param name="chartType"></param> /// <returns></returns> public string GetXMLData(AngularGaugeChart c, IList <colorRange> colorlist, IList <dials> diallist, IList <style> slist, IList <trendpoints> trendpointList, IList <annotations> annotationList, string chartName, string isload = "") { GetFusionChartDataXML getXML = new GetFusionChartDataXML(); StringBuilder sb_XMLData = new StringBuilder(); sb_XMLData.Append(getXML.GetFusionChartAngularGaugeStartXML(c)); sb_XMLData.Append(getXML.GetFusionChartAngularGaugeXML(colorlist, diallist, trendpointList, annotationList)); sb_XMLData.Append(getXML.GetFusionChartStyleXML(slist)); sb_XMLData.Append(getXML.GetFusionChartEndXML()); return(RenderChart( "../Scripts/FusionChart/Swf/AngularGauge.swf", "", sb_XMLData.ToString(), chartName, "350", "200", false, false )); }