Telerik RadChart与多个系列绑定

时间:2012-09-10 17:00:31

标签: telerik radchart

我想用多个系列绑定不同数据集(dtDev,dtProd,dtQA)的rad图表,可以告诉我如何编码?

我们有三个日期dtDev,dtProd,dtQA,只是盲目的例子。

请healp,谢谢你!

monthlyradchartcontrole.Clear()
Dim dtDev as dataset = nothing
dtDev = obj.datareturn(parameters)

monthlyradchartcontrole.DataSource = dtDev

monthlyradchartcontrole.DataBind()

monthlyradchartcontrole.Series(0).DataXColumn = "ScheduledStartDate"
monthlyradchartcontrole.Series(0).DataYColumn = "ChamberUtilization"

monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Text = monthlyXaxislableName
monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.Visible = True
                monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red
monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Position.Auto = True

monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.Visible = True
monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Text = monthlyYaxislableName
                monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red
monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.Auto = True

monthlyradchartcontrole.Legend.Visible = False

谢谢,

1 个答案:

答案 0 :(得分:0)

您的陈述是将T1和T2中的列彼此相邻:

T1.a, T1.b, T2.a, T2.b

我认为不是你想要的。你可能想要:

a, b

所以你应该使用一个联盟:

select T1.a, T1.b 
  from T1
union select T1.a, T1.b 
  from T2
  into T3

如果您确实希望将多个表的列插入另一个表中,请尝试以下方法:

select T1.a, T2.b
  from T1 inner join T2 on T1.ClientID = T2.ClientID
  into T3