Hi,
I'm trying to render a chart inside the Telerik report. I'm also rendering the same chart in my MVC web application using Telerik Extensions for ASP.NET MVC chart control. But both are giving different charts.
Here is the code:
Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender;
Telerik.Reporting.Chart defChart = (Telerik.Reporting.Chart)procChart.ItemDefinition;
defChart.Series.Clear();
int
xAxisIndicesCount = (from cdsl
in
chartDataSourceList select cdsl.XAxisValue).Distinct().Count();
defChart.PlotArea.XAxis.Items.Clear();
defChart.PlotArea.XAxis.AutoShrink =
false
;
defChart.PlotArea.XAxis.AutoScale =
false
;
defChart.PlotArea.XAxis.AddRange(0, (xAxisIndicesCount > 0) ? xAxisIndicesCount - 1 : 0, 1);
defChart.SeriesOrientation = seriesOrientation;
defChart.DataGroupColumn =
"GroupingValue"
;
defChart.PlotArea.XAxis.DataLabelsColumn =
"XAxisValue"
;
defChart.Legend.Appearance.GroupNameFormat =
"#VALUE"
;
defChart.IntelligentLabelsEnabled =
true
;
procChart.DataSource = chartDataSourceList;
Essentially if you can compare the charts I have attached, in the PDF chart, the series columns are misplaced. Please check and revert if you need further clarifications. I hope you will better be able to figure the issue by comparing the charts, than explaining it here. Please revert asap.
Thanks
Hello friends,
I am using crystal report in my project. in this, I am using crystal's pull method to display data in it.
So when any small change [adding Total, Alignment, or add new field in the existing data source etc.] in report is needed, i can copy modified the .rpt file in to the production server, without the asp.net published files.
Can I use Telerik report in the same way ?
At this point I have accomplished the first goal but I am still not satisfied with the solution to the second goal. I have some ideas on how to keep track of which report jobs are using an image while at the same time only having the single image loaded. I am concerned that by building on this extra layer of tracking it will have a significant impact on performance. Before I went down that road I wanted to check and see if I am trying to over complicate an issue that doesn't need to be complicated. Is their a simpler solution to what I am trying to accomplish using Telerik Reporting?
BooleanEditor.prototype.Init =
function
()
{
var
radioButtonList = document.getElementById(
this
.radioButtonID);
if
(radioButtonList)
{
var
inputs = radioButtonList.getElementsByTagName(
"INPUT"
);
if
(inputs)
{
var
editor =
this
;
for
(
var
i = 0; i < inputs.length; i++)
{
var
input = inputs[i];
input.onclick =
function
()
{
editor.ValueChanged();
};
var
label = input.nextSibling;
var
text =
""
;
var
reportViewer = GetReportViewer();
switch
(i)
{
case
0:
text = reportViewer.GetString(
"ReportParametersTrueValueLabel"
);
break
;
case
1:
text = reportViewer.GetString(
"ReportParametersFalseValueLabel"
);
break
;
}
label.firstChild.nodeValue = text;
}
}
}
return
false
;
}
var
label = input.nextSibling;
label.firstChild.nodeValue = text;
public WebCategoryBarChart()
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
this.chart1.Series[0].Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
Color[] barColors = new Color[8]{
Color.Purple,
Color.SteelBlue,
Color.Aqua,
Color.Yellow,
Color.Navy,
Color.Green,
Color.Blue,
Color.Red
};
int i = 0;
foreach (ChartSeriesItem item in chart1.Series[0].Items)
{
item.Appearance.FillStyle.MainColor = barColors[i++];
}
//
// TODO: Add any constructor code after InitializeComponent call
//
}