Closed DHBAT closed 1 month ago
Refer to the provided XCharts tutorial: Get started with XCharts in 5 minutes. When using the code "linechart.AddSerie("line");", an error occurs. The error message is: Type "Line" cannot be used as type parameter "T" in generic type or method "BaseChart.AddSerie(string,bool,bool)". There is no implicit reference conversion from "Line" to "XCharts.Runtime.Serie". How can I solve this problem? Here is my complete screenshot:
XCharts 2.x
chart.AddSerie(SerieType.Line, "Line");
XCharts 3.x
chart.AddSerie<Line>("Line");
You might need to confirm which version of XCharts you are currently using.
Refer to the provided XCharts tutorial: Get started with XCharts in 5 minutes. When using the code "linechart.AddSerie("line") ;", an error occurs. The error message is: Type "Line" cannot be used as type parameter "T" in generic type or method "BaseChart.AddSerie(string,bool,bool)". There is no implicit reference conversion from "Line" to "XCharts.Runtime.Serie" . How can I solve this problem? Here is my complete screenshot: