我正在尝试启用 Shield ASP.NET MVC 图表的 ZoomMode,但收到以下错误:
Server Error in '/' Application.
________________________________________
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1502: The best overloaded method match for 'Shield.Mvc.UI.Chart.ChartBuilder<object>.ZoomMode(Shield.Mvc.UI.Chart.ZoomMode)' has some invalid arguments
根据文档(https://www.shieldui.com/documentation/javascript.chart/api/zoomMode),有 3 种缩放模式:
可能的值为:“x”、“y”和“xy”。为什么我会收到该错误,因为我在文档中声明它:
@(Html.ShieldChart()
.Name("chart")
.ZoomMode("XY")
.Export(false)
?