【发布时间】:2014-11-18 14:13:08
【问题描述】:
使用 FusionCharts 时如何禁用/删除图例区域?我将使用一个非常小的图表,因此不需要图例区域。
【问题讨论】:
标签: fusioncharts
使用 FusionCharts 时如何禁用/删除图例区域?我将使用一个非常小的图表,因此不需要图例区域。
【问题讨论】:
标签: fusioncharts
添加 showLegend='0' 标记应该禁用它。像这样使用它:
<chart showLegend='0'...>
查看FusionCharts Legend API 以获取有关图例的更多帮助。
【讨论】:
如何将 Show legend 属性设置为我的 Fusion Graph。我的代码是这样的。
public Pie2DChart GetServiceEsclationChart(DataTable BarChartdt, string CaseType)
{
Pie2DChart oChart3 = new Pie2DChart();
// Set properties
oChart3.Background.BgColor = "ffffff";
oChart3.Background.BgAlpha = 50;
oChart3.ChartTitles.Caption = "Case Type Count";
oChart3.ChartTitles.Caption = CaseType;
// oChart.ChartTitles.SubCaption = "2013-2014 Year";
// Set a template
oChart3.Template = new Libero.FusionCharts.Template.OfficeTemplate();
// Set data
oChart3.DataSource = BarChartdt;
oChart3.DataTextField = "Name";
oChart3.DataValueField = "Value";
//Load it into ViewData.
// ViewData["SREsclation"] = oChart3;
return oChart3;
}
【讨论】: