I use Infragistics13.2 and VS2013 VB.net.
I'd like to add a AxisY like the right line.
How can I add in the following sources?
tprChart.TitleTop.Text = "VitalSign" tprChart.TitleLeft.HorizontalAlign = StringAlignment.Center tprChart.Legend.SpanPercentage = 10
Dim data As New DataTable Dim tprInf As New Class1 Dim dtTprInf As DataTable = tprInf.BMISGetTprInf(" 34337") Dim DtmStr As String Dim dateT As DateTime
For Each aDrRow As DataRow In dtTprInf.Rows If aDrRow("UPDDTM").ToString <> "" Then DtmStr = aDrRow("UPDDTM").ToString dateT = DateTime.ParseExact(DtmStr, "yyyyMMddHHmm", Nothing) seriesWeight.Points.Add(New NumericTimeDataPoint(dateT, Convert.ToDouble(aDrRow("WEIGHT")), dateT, False)) seriesHeight.Points.Add(New NumericTimeDataPoint(dateT, Convert.ToDouble(aDrRow("HEIGHT")), dateT, False)) seriesTemp.Points.Add(New NumericTimeDataPoint(dateT, Convert.ToDouble(aDrRow("TEMPER")), dateT, False))
End If Next
tprChart.Series.Add(seriesWeight) tprChart.Series.Add(seriesHeight) tprChart.Series.Add(seriesTemp)
Hello Min,
Thank you for contacting Infragistics Support.
If I understand you correctly you need to display right side y axis instead of left one. In order to achieve this you need to create y axis with axisNumber property set to Y2_Axis. You may use code like this:
Dim axisY As AxisItem = New AxisItem()
axisY.axisNumber = Infragistics.UltraChart.Shared.Styles.AxisNumber.Y2_Axis
Then you need to add this axis to your ChartArea axes collection. Please follow the next two links to find how you can add Y2_Axis through designer or in run time http://help.infragistics.com/Doc/WinForms/2010.3/CLR2.0?page=Chart_Creating_a_Composite_Chart_Using_the_Chart_Wizard_Part_1_of_2.html and http://help.infragistics.com/Doc/WinForms/2010.3/CLR2.0?page=Chart_Creating_a_Composite_Chart_in_Code_Part_1_of_2.html
Please let me know if you have any additional questions.
Waiting for your feedback.