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?
i have a some problem
Attach sample source
sample source
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
Hello Min,
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 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?..
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.
If I have any questions,I'll ask for help.Thanks a lot Milko.
I am just checking about the progress of this issue. Let me know if you need my further assistance on it.
Thank you for using Infragistics Components.
Thank you for your feedback.
Please find bellow the requirements you need to fulfill in order to add candle chart to your Composite chart:
- The candle series has to be of CandleSeries type. You cannot use NumericTimeSeries or other type of series for candle chart;
- Candle chart need three axes – AxisX, AxisY and AxisY2. Please note the AxisX should be of String data type and the SetLabelAxisType property should be DateData. While for NumericTimeSeries the SetLabelAxisType property should be ContinuousData you cannot use same x axis for line and candle chart.
- For candle chart you need to add points of type CandleDataPoint. You cannot use NumericTimeDataPoint.
Following the next link you may find more information about candle chart data requirements http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=Chart_Working_with_Candle_Chart_Data.html
Please find attached revised version of your sample project and let me know if you need any additional information
Thasks Milko.
Can I check my source?
I can't add candle chart with line chart.
Y2_Axis = SetLabelAxisType.GroupBySeries
X_Axis = SetLabelAxisType.ContinuousData
Yes, you can add CandleSeries to your composite chart. Please keep in mind the line chart X axis SetLAbelAxisType property should be set as Continuous. The same property for candle chart should be set as DateData. This will make it difficult to align these two axis. This is why my suggestion is to use FillSceneGraph event and to add the rectangles you need. Please follow the link bellow to find how you can create composite chart containing different chart types http://help.infragistics.com/doc/WinForms/2014.2/CLR4.0/?page=Chart_Creating_a_Composite_Chart_in_Code_Part_1_of_2.html
Please let me know if you need any further assistance.