小编Kin*_*gla的帖子

asp.net渲染折线图

我一直在尝试使用基本的asp.net Chart类渲染折线图.无论我做什么,它总是呈现柱形图.这是我的代码,我将数据表绑定到图表.

var IEtable = (table as System.ComponentModel.IListSource).GetList();

var chart = new Chart(width: 1000, height: 1000)
    .AddSeries(chartType: "Line").AddLegend("Key")
    .AddTitle("Time Series Metric")
    .DataBindCrossTable(IEtable, "Key", "Date", "Value");
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?从现在开始超过12个小时,我一直在用这个东西搞砸了.

asp.net charts line

5
推荐指数
1
解决办法
638
查看次数

标签 统计

asp.net ×1

charts ×1

line ×1