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?
Those described above, I think just draw a box.My requirement is to add series.Is there any way ?
Hello Min,
Within the FillSceneGraph event you can add your own primitive(s) mapped between two datapoints, as illustrated in your image.
I recommended using a Box primitive. An example can be found here:
http://help.infragistics.com/doc/WinForms/2014.2/CLR4.0/?page=Chart_Access_Axis_Inside_FillSceneGraph_Event_of_a_Non_Composite_Chart.html
Let me know if you have any questions regarding this matter.
I have done some problems.Thank you for your answer.
And no.3 to explain..I'd like to add a candlechart style on the line chart.How can I do?..FillSceneGraph -> only this way?..
Thank you for contacting Infragistics Support. Killer
Please find bellow the answers to your questions:
1. You said you are done with this.
2. If I understand you correctly you want to show values on each point of each chart. In order to do so you need to add ChartTextAppearance to each line chart in your composite chart. You can do this in following three steps:
a. Get the LineChartAppearance of the ChartLayerAppearance;
b. Create ChartTextAppearance object and set its properties. In order values to appear on each point of the chart line you need to set both Row and Column properties of ChartTextAppearance object to -2;
c. Add ChartTextAppearance abject to LineChartAppearance ChartText collection.
3 I am not sure I understand this point completely. Can you please explain in details what you need here? If you need to put some additional elements to the chart you may use FillSceneGraph event. This event allows you to modify, add and remove graphic elements from the chart. More about FillSceneGraph you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2014.2/CLR4.0/html/Chart_Modify_Scene_Graph_Using_FillSceneGraph_Event.html
4. You said you are done with this
5. If you need to set the format of the displayed values you can set ItemFormatString property. More about this property you may find in the following link http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=Chart_Use_Predefined_and_Custom_Label_Styles.html
6. Logarithmic scale – yes you did it correct in your chart. You first need to set the NumericAxisType property to Logarithmic and then to set the LogBase – the logarithm base.
7. You can use the same technic as with the ChartTextAppearance. Instead of ChartTextAppearance you need to create LineAppearance object, set its properties and add it to LineAppearances collection of LineChartAppearance.
Please find attached your revised sample.
Please give me a little more information regarding your third question in order to investigate this for you.
Waiting for your feedback.
I solved no.1 & 4
Dim axYTemp As New AxisItem() axYTemp.Extent = 20 axYTemp.RangeType = AxisRangeType.Custom axYTemp.RangeMin = 35 axYTemp.RangeMax = 42 axYTemp.DataType = AxisDataType.Numeric axYTemp.Labels.ItemFormatString = "<DATA_VALUE:##.##>" axYTemp.OrientationType = AxisNumber.Y_Axis axYTemp.LineThickness = 1 area.Axes.Add(axYTemp)
I want set logbase 10...
axYTemp.LogBase = 10 Is it right?
Please solve the above-mentioned issues.
And.. I want to different shape on the each series (line style)Is it possible?
Please check the source