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

Fill bar chart with diagonal stripes (or other patterns

3 Answers 1108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matthew Hile
Top achievements
Rank 1
Matthew Hile asked on 07 Sep 2012, 12:07 PM
I am trying to fill a bar graph with stripes so that it looks like the attached image. Is there a way to do this? How about other patterns?

Thanks, 

Matthew

3 Answers, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 12 Sep 2012, 02:07 PM
Hello,

You can specify different fill styles for the chart series through the [series].Appearance.FillStyle property. The FillStyle.FillType property determines the exact fill type which in your case will be FillType.Hatch. Through the FillStyle.FillSettings.HatchStyle you can additionally determine the exact hatch style.

Hope this helps.

All the best,
Chavdar
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Matthew Hile
Top achievements
Rank 1
answered on 13 Sep 2012, 11:29 AM
I created the report through the wizard. My understanding from a previous issue (http://www.telerik.com/community/forums/reporting/telerik-reporting/changing-x-axis-item-labels.aspx) was that I could not alter it programatically. "When the chart is bound to a datasource declaratively, you cannot affect the series in any way, because they are generated at run time."

Is that the case for this fill pattern as well?

Thanks, 

Matthew

0
Chavdar
Telerik team
answered on 14 Sep 2012, 12:36 PM
Hello,

When the series are entirely created from the data then you do not have control over the visual appearance of the series. The only way to change their appearance is by selecting a different SeriesPalette. However, if you know the exact number of series, you can define them at design time and bind them to the data via the DataYColumn, DataXColumn, etc. properties. In this case you can define whatever series appearance you would like.

All the best,
Chavdar
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Matthew Hile
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Matthew Hile
Top achievements
Rank 1
Share this question
or