Hi .
I hzve the requirement for the above chart, so i opted for column line chart but i am not able to display the series labels and the legend as shown(not sure whether this is possible) please help me on this
Below is the code I have written for the same
UltraChart1.ChartType = ChartType.ColumnLineChart
With UltraChart1.ColumnLineChart.ColumnData
.DataSource = Graphdt
.IncludeColumn(
)
.SwapRowsAndColumns =
False
.DataBind()
True
UltraChart1.DataBind()
UltraChart1.Axis.X.Labels.Visible =
UltraChart1.Axis.X.Labels.SeriesLabels.Visible =
UltraChart1.Axis.X.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing
UltraChart1.Axis.X.Extent = 150
UltraChart1.Axis.X2.Visible =
UltraChart1.Axis.Y2.RangeType = AxisRangeType.Custom
UltraChart1.Axis.Y2.RangeMin = -(Math.Abs(MinMonthlyRIG) - (Math.Abs(MinMonthlyRIG)
5) + 5)
UltraChart1.Axis.Y2.RangeMax = Math.Abs(MaxMonthlyRIG) - (Math.Abs(MaxMonthlyRIG)
5) + 5
UltraChart1.Axis.Y2.TickmarkStyle = AxisTickStyle.DataInterval
UltraChart1.Axis.Y2.TickmarkInterval = 5
UltraChart1.Axis.Y2.MajorGridLines.Visible =
UltraChart1.Axis.Y2.Extent = 100
UltraChart1.Axis.Y.RangeType = AxisRangeType.Custom
UltraChart1.Axis.Y.RangeMin = 0
UltraChart1.Axis.Y.RangeMax = MaxYAxisRange
UltraChart1.Axis.Y.TickmarkStyle = AxisTickStyle.DataInterval
UltraChart1.Axis.Y.TickmarkInterval = 20
UltraChart1.Axis.Y.Extent = 100
UltraChart1.ColumnLineChart.Column.SeriesSpacing = 1
.ModelStyle = ColorModels.CustomSkin
.Skin.PEs.Add(
New PaintElement(Color.Maroon))
New PaintElement(Color.LightPink))
New PaintElement(Color.LightGreen))
.Skin.ApplyRowWise =
UltraChart1.Visible =
Code is written in VB.NET
Sorry, I'm afraid it won't be possible to create such a legend as part of the chart. Or I should say that it will be very difficult. You would have to use FillSceneGraph event to custom draw the entire table underneath the chart. I think you are better off with a grid control placed under the chart. It won't be all one control, but it should be much easier to implement and will be more feature-rich and customizable.
Sorry for the late reply..... I did it with the fillscenegraph event ....
Thanks for suggestion