Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
440
Couldn't able to change the ultrachart border properties
posted

Hi I am trying to get rounded corners on UltraChart, and used following code, but the border is not coming as expected, please see attached file.

Any help is greatly appreciated,

.aspx

<igchart:UltraChart id="auditQualityUC" runat="server" Width="780px" Height="500px">

<Border CornerRadius="15" DrawStyle="Solid" Raised="False" Color="Black" Thickness="1"></Border>

</igchart:UltraChart

.aspx.cs

 

this.auditQualityUC.ChartType = ChartType.Composite;

 

ChartArea area = new ChartArea();

 

this.auditQualityUC.CompositeChart.ChartAreas.Add(area);

 

AxisItem columnXAxis = new AxisItem(this.auditQualityUC, AxisNumber.X_Axis);

columnXAxis.DataType =

AxisDataType.String;

columnXAxis.SetLabelAxisType = Infragistics.UltraChart.Core.Layers.

SetLabelAxisType.GroupBySeries;

columnXAxis.Labels.ItemFormat =

AxisItemLabelFormat.ItemLabel;

columnXAxis.Labels.SeriesLabels.Format =

AxisSeriesLabelFormat.SeriesLabel;

columnXAxis.Extent = 30;

columnXAxis.LineThickness = 1;

area.Axes.Add(columnXAxis);

 

AxisItem lineXAxis = new AxisItem(this.auditQualityUC, AxisNumber.X_Axis);

lineXAxis.DataType =

AxisDataType.String;

lineXAxis.SetLabelAxisType = Infragistics.UltraChart.Core.Layers.

SetLabelAxisType.ContinuousData;

lineXAxis.Extent = 30;

lineXAxis.LineThickness = 1;

area.Axes.Add(lineXAxis);

 

AxisItem X2Axis = new AxisItem(this.auditQualityUC, AxisNumber.X2_Axis);

X2Axis.Extent = 70;

X2Axis.LineThickness = 1;

area.Axes.Add(X2Axis);

 

AxisItem columnYAxis = new AxisItem(this.auditQualityUC, AxisNumber.Y_Axis);

columnYAxis.DataType =

AxisDataType.Numeric;

columnYAxis.Labels.ItemFormat =

AxisItemLabelFormat.DataValue;

columnYAxis.RangeMin = 0;

columnYAxis.RangeMax = maxObservations;

columnYAxis.RangeType =

AxisRangeType.Custom;

columnYAxis.Extent = 50;

columnYAxis.LineThickness = 1;

area.Axes.Add(columnYAxis);

 

AxisItem lineYAxis = new AxisItem(this.auditQualityUC, AxisNumber.Y2_Axis);

lineYAxis.DataType =

AxisDataType.Numeric;

lineYAxis.Labels.ItemFormat =

AxisItemLabelFormat.DataValue;

lineYAxis.RangeMin = 0;

lineYAxis.RangeMax = 100;

lineYAxis.Extent = 20;

lineYAxis.RangeType =

AxisRangeType.Custom;

lineYAxis.LineThickness = 1;

area.Axes.Add(lineYAxis);

 

// Num Of Observations

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PaintElement element = new PaintElement

();

element.ElementType =

 

PaintElementType

.Gradient;

element.FillGradientStyle =

 

GradientStyle

.VerticalBump;

element.Fill =

 

Color

.FromArgb(152, 190, 126);

element.FillStopColor =

 

Color

.FromArgb(152, 190, 126);

 

 

NumericSeries series1 = new NumericSeries

();

series1.Data.DataSource = auditReportDT;

series1.Data.ValueColumn =

 

"NumOfObsr"

;

series1.Data.LabelColumn =

 

"Mon_Year"

;

series1.PEs.Add(element);

 

 

this

.auditQualityUC.CompositeChart.Series.Add(series1);

 

 

 

// Num Of Audited Observations

 

 

PaintElement element2 = new PaintElement

();

element2.ElementType =

 

PaintElementType

.Gradient;

element2.FillGradientStyle =

 

GradientStyle

.VerticalBump;

element2.Fill =

 

Color

.FromArgb(243, 225, 38);

element2.FillStopColor =

 

Color

.FromArgb(243, 225, 38);

 

 

NumericSeries series2 = new NumericSeries

();

series2.Data.DataSource = auditReportDT;

series2.Data.ValueColumn =

 

"NumOfAuditObsr"

;

series2.Data.LabelColumn =

 

"Mon_Year"

;

series2.PEs.Add(element2);

 

 

this

.auditQualityUC.CompositeChart.Series.Add(series2);

 

 

// % Quality

 

 

PaintElement element3 = new PaintElement

();

element3.ElementType =

 

PaintElementType

.Gradient;

element3.FillGradientStyle =

 

GradientStyle

.VerticalBump;

element3.Fill =

 

Color

.FromArgb(39, 184, 246);

element3.FillStopColor =

 

Color

.FromArgb(39, 184, 246);

 

 

NumericSeries series3 = new NumericSeries

();

series3.Data.DataSource = auditReportDT;

series3.Data.ValueColumn =

 

"QualityPerc"

;

series3.Data.LabelColumn =

 

"Mon_Year"

;

series3.PEs.Add(element3);

 

 

this

.auditQualityUC.CompositeChart.Series.Add(series3);

 

 

 

ChartLayerAppearance columnLayer = new ChartLayerAppearance

();

columnLayer.AxisX = columnXAxis;

columnLayer.AxisY = columnYAxis;

columnLayer.ChartArea = area;

columnLayer.ChartType =

 

ChartType

.ColumnChart;

columnLayer.Series.Add(series1);

columnLayer.Series.Add(series2);

columnLayer.SwapRowsAndColumns =

 

true

;

 

 

this

.auditQualityUC.CompositeChart.ChartLayers.Add(columnLayer);

 

 

ChartLayerAppearance lineLayer = new ChartLayerAppearance

();

lineLayer.AxisX = lineXAxis;

lineLayer.AxisY = lineYAxis;

lineLayer.ChartArea = area;

lineLayer.ChartType =

 

ChartType

.LineChart;

lineLayer.Series.Add(series3);

 

 

this

.auditQualityUC.CompositeChart.ChartLayers.Add(lineLayer);

 

 

LineAppearance app2 = new LineAppearance

();

app2.LineStyle.MidPointAnchors =

 

true

;

app2.Thickness = 3;

app2.IconAppearance.Icon =

 

SymbolIcon

.Square;

app2.IconAppearance.IconSize =

 

SymbolIconSize

.Medium;

 

 

LineChartAppearance lineApp = this.auditQualityUC.CompositeChart.ChartLayers[1].ChartTypeAppearance as LineChartAppearance

;

lineApp.LineAppearances.Add(app2);

 

 

this.auditQualityUC.Style["Z-INDEX"] = "-4"

;

 

 

//this.auditQualityUC.Border.Thickness = 0;

 

 

this.auditQualityUC.FillSceneGraph += new FillSceneGraphEventHandler

(obsrervationsByPersonUltraChart_FillSceneGraph);

>