FAQ/CustomizeChart.md
... ...
@@ -0,0 +1,19 @@
1
+#CustomizeChart()
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+The CustomizeChart method is used to modify chart objects on a per-report basis. Different [[charting engines|/API/CodeSamples/ChartingEngine]] require different checks and some are easier to modify than others due to the way the charting engines structure their data. Here is an example method using the Dundas charting engine.
8
+
9
+```csharp
10
+public override void CustomizeChart(object obj)
11
+{
12
+ Dundas.Charting.WebControl.Chart chart = obj as Dundas.Charting.WebControl.Chart;
13
+ chart.Width=700;
14
+ foreach (Dundas.Charting.WebControl.Series series in chart.Series)
15
+ {
16
+ series.BackGradientType = Dundas.Charting.WebControl.GradientType.None;
17
+ }
18
+}//end method
19
+```
... ...
\ No newline at end of file