我正在尝试在MVC中使用System.Web.Helpers.Chart,我想在MVC中隐藏图表中的标签。任何帮助将不胜感激。正如1解决方案中所述,我什至尝试过
<Series>
<Series Name=""Series1"" ChartType=""Pie""=""PieLabelStyle=Disabled"">
</Series>
</Series>
但是没有用
string strTheme = @"<Chart BackSecondaryColor=""White"" PaletteCustomColors=""100, 221, 23 ; 255, 98, 98"" Palette=""None"">
<Series>
<Series Name=""Series1"" ChartType=""Pie"" CustomProperties=""PieLabelStyle=Disabled"">
</Series>
</Series>
<Legends>
<Legend _Template_=""All"" BackColor=""Transparent"" Font=""200pt"" IsTextAutoFit=""True"" />
</Legends>
</Chart>";
var myChart = new Chart(width: 315, height: 310, theme: strTheme)
.AddSeries(
name: "ChartTitle",
chartType: "Pie",
xValue: new[] { "Complete : 88", "Incomplete : 33" },
yValues: new[] { "80", "20" })
.AddLegend()
.Write();