Hello,
I understand that the Q1 2014 version of the radHTMLChart allows the location of an additional Y axis can be specified.
The documentation describes how to specify the AxisCrossingPoint through aspx, but my chart is created programmatically.
Attached is a screen shot of how the graph currently looks. I would like to move the additional Y axis (the one that runs 0 - 6) to the right hand side of the graph.
My code is below.
Thanks to anybody who can assist.
Daniel
I understand that the Q1 2014 version of the radHTMLChart allows the location of an additional Y axis can be specified.
The documentation describes how to specify the AxisCrossingPoint through aspx, but my chart is created programmatically.
Attached is a screen shot of how the graph currently looks. I would like to move the additional Y axis (the one that runs 0 - 6) to the right hand side of the graph.
My code is below.
Thanks to anybody who can assist.
Daniel
public void SetupSlotsReleasedChart(RadHtmlChart radChart){ DataTable dtDataTable = new DataTable(); ResultData oResultData = new ResultData(); InternetHomeController oController = new InternetHomeController(); // Get Tenant KPI Data for a specific Tenant KPI ID (for Homepage Graph) oResultData = oController.GetKPIGraphData(ref dtDataTable); // Set the Chart Title and Set the X Axis and Y Axis Labels radChart.ChartTitle.Text = "Slots Released"; radChart.PlotArea.XAxis.TitleAppearance.Text = "Month"; radChart.PlotArea.YAxis.TitleAppearance.Text = "No. Hourly Slots"; // The "Total Slots Value" will be the bar graph ColumnSeries totalSlotsValueColumnSeries = new ColumnSeries(); // The "Total Slots Failed Value" will be the bar graph ColumnSeries totalSlotsFailedValueColumnSeries = new ColumnSeries(); // Add and additional Y axis to be used for the Slots Released Percentageand Slots Released Target value series AxisY axisY = new AxisY(); axisY.Name = "Percentage_Axis"; radChart.PlotArea.AdditionalYAxes.Add(axisY); // The "Slots Released Percentage Value" will be a line graph LineSeries slotsValueLineSeries = new LineSeries(); // This series will use the additional Y axis created above slotsValueLineSeries.AxisName = "Percentage_Axis"; // The "Slots Released Target Value" will be a line graph LineSeries slotsTargetValueLineSeries = new LineSeries(); // This series will use the additional Y axis created above slotsTargetValueLineSeries.AxisName = "Percentage_Axis"; // Do not show the number values on the line graphs slotsValueLineSeries.LabelsAppearance.Visible = false; slotsTargetValueLineSeries.LabelsAppearance.Visible = false; // Display Legend on graph for the Value and Target series slotsValueLineSeries.Name = "Slots Released %"; slotsTargetValueLineSeries.Name = "Target"; // Display Legend on graph for the Total Slots and Total Slots Failed values (bar chart) totalSlotsValueColumnSeries.Name = "Total Slots"; totalSlotsFailedValueColumnSeries.Name = "Total Slots Failed"; foreach (DataRow row in dtDataTable.Rows) { // Populate the Total Slots Value bar graph series totalSlotsValueColumnSeries.SeriesItems.Add(Decimal.Parse(row["SRTotalSlotsValue"].ToString())); // Populate the Total Slots Failed Value bar graph series totalSlotsFailedValueColumnSeries.SeriesItems.Add(Decimal.Parse(row["SRTotalSlotsFailedValue"].ToString())); // Populate the Slots Released Percentage Value line graph series slotsValueLineSeries.SeriesItems.Add(Decimal.Parse(row["SRValue"].ToString())); // Populate the Slots Released Target line graph series slotsTargetValueLineSeries.SeriesItems.Add(Int32.Parse(row["SRTargetValue"].ToString())); // Set the labels on the X Axis AxisItem xAxisItem = new AxisItem(row["MonthDesc"].ToString()); radChart.PlotArea.XAxis.Items.Add(xAxisItem); } // Add the Total Slots Value bar graph to the plot area radChart.PlotArea.Series.Add(totalSlotsValueColumnSeries); // Add the Total Slots Failed Value bar graph to the plot area radChart.PlotArea.Series.Add(totalSlotsFailedValueColumnSeries); // Add the Slots Released Percentage Value line graph to the plot area radChart.PlotArea.Series.Add(slotsValueLineSeries); // Add the Delay in Communication Target line graph series to the plot area radChart.PlotArea.Series.Add(slotsTargetValueLineSeries);}