This is a migrated thread and some comments may be shown as answers.

How to set a column to a HatchStyle

1 Answer 77 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Daryl
Top achievements
Rank 1
Daryl asked on 28 Aug 2017, 07:42 PM

Using the Chart that comes with Visual Studios I can set the Hatch Style of a particular column with the code below. I need to know how to do the same using the RadChartView.

                                this.ChtEvolution.Series[0].Points[16].BackHatchStyle = ChartHatchStyle.BackwardDiagonal;
                                this.ChtEvolution.Series[1].Points[16].BackHatchStyle = ChartHatchStyle.BackwardDiagonal;
                                this.ChtEvolution.Series[2].Points[16].BackHatchStyle = ChartHatchStyle.BackwardDiagonal;
                                this.ChtEvolution.Series[3].Points[16].BackHatchStyle = ChartHatchStyle.BackwardDiagonal;
                                this.ChtEvolution.Series[4].Points[16].BackHatchStyle = ChartHatchStyle.BackwardDiagonal;
                                this.ChtEvolution.Series[5].Points[16].BackHatchStyle = ChartHatchStyle.BackwardDiagonal;

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 29 Aug 2017, 10:12 AM
Hi Daryl,

Thank you for writing.

The hatch styles used by the standard chart control are not supported out of the box. RadChartView, however, exposes a powerful API for customizing the looks of the painted elements and you can achieve your task by using a custom renderer: http://docs.telerik.com/devtools/winforms/chartview/customization/custom-rendering.

I am sending you attached a sample project demonstrating the suggested approach. I am also attaching a screenshot showing the result on my end.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ChartView
Asked by
Daryl
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or