Hi ,
I would like to know how I can hatch a zone under a graph in a composite line ?
Thanks
Hi
I`m not sure what is your final goal, but maybe you could used FillSceneGraphe method and chart`s primitives. Could you please take a look at the attached sample where I`m using this approach to draw my custom vertical lines between my series lines - The read vertical lines.
Let me know if you have any questions.
Hi,
It is not exactly that, what I want to do is to have a grid/color zone below your green curve.
do you mean something like this (take a look at the sceenshot below). If so , please take a look at the attached sample for more details. Let me know if you have any questions.
Regards
Yest that is exactly it !
I have a second problem, this is my scenario :
ChartArea area = new ChartArea(); this.ChartAlphaRealized.CompositeChart.ChartAreas.Add(area); ChartLayerAppearance myColumnLayer2 = new ChartLayerAppearance(); myColumnLayer2.ChartType = ChartType.AreaChart; myColumnLayer2.ChartArea = area; ChartLayerAppearance myColumnLayerAlpha = new ChartLayerAppearance(); myColumnLayerAlpha.ChartType = ChartType.ScatterChart; myColumnLayerAlpha.ChartArea = area; //Other possible approach for DataBinding NumericSeries series2 = new NumericSeries(); series2.Label = "Lab2"; series2.Data.LabelColumn = "Date"; series2.Data.ValueColumn = "Volume_rate"; series2.Data.DataSource = VolumeNumeric; series2.DataBind(); series2.PEs.Add(new PaintElement(Color.Blue)); myColumnLayer2.Series.Add(series2); ChartAlphaRealized.CompositeChart.Series.Add(series2); AxisItem axis1 = new AxisItem(); axis1.Extent = 20; axis1.DataType = AxisDataType.Numeric; axis1.Labels.ItemFormatString = "<DATA_VALUE:##.##>"; axis1.OrientationType = AxisNumber.Y_Axis; axis1.SetLabelAxisType = SetLabelAxisType.DateData; //By defaut the AxisRangeType = Automatic //You are able to set the axis menually with the code: axis1.RangeType = AxisRangeType.Custom; axis1.RangeMin = MinAlphaCumulValue; axis1.RangeMax = MAxAlphaCumulValue; axis1.MajorGridLines.Visible = false; area.Axes.Add(axis1); AxisItem axisX = new AxisItem(); axisX.DataType = AxisDataType.String; axisX.Labels.ItemFormatString = "<ITEM_LABEL>"; axisX.OrientationType = AxisNumber.X_Axis; axisX.SetLabelAxisType = SetLabelAxisType.ContinuousData; axisX.MajorGridLines.Visible = false; area.Axes.Add(axisX); // axisX.ScrollScale.Visible = true; myColumnLayer2.AxisX = axisX; myColumnLayer2.AxisY = axis1; this.ChartAlphaRealized.CompositeChart.ChartLayers.Add(myColumnLayer2); //for alpha NumericSeries series1 = new NumericSeries(); series1.DataBind(AlphaTable, "Alpha_partial", "Date"); series1.PEs.Add(new PaintElement(Color.Red)); myColumnLayerAlpha.Series.Add(series1); ChartAlphaRealized.CompositeChart.Series.Add(series1); myColumnLayerAlpha.AxisX = axisX; myColumnLayerAlpha.AxisY = axis1; this.ChartAlphaRealized.CompositeChart.ChartLayers.Add(myColumnLayerAlpha); ScatterChartAppearance sca1 = new ScatterChartAppearance(); sca1.ConnectWithLines = true; sca1.Icon = SymbolIcon.Circle; sca1.IconSize = SymbolIconSize.Large; myColumnLayerAlpha.ChartTypeAppearance = sca1;
However, the scatterline does not appair, do you know why ?
eltorfuerte said: However, the scatterline does not appair, do you know why ?
Maybe I didn`t understand your scenario, but if you want to achieve desired behavior (from the screenshot in the previous post) you should used LineAreaChart instead of ScatterChart (with property ConnectWithLines = true). Please take a look at the attached sample in my previous post for more details and let me know if you have any questions.
That works thanks a lot !