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

click the slice of pie chart

15 Answers 264 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
yasotha
Top achievements
Rank 1
yasotha asked on 15 Aug 2011, 03:58 PM
Is it possible to navigate to a table containg the project details for the click event on pie chart (Both pie chart and table in same report.)?

That is the pie chart use to display number of process associated with each project.
So when click on one slice (represent a project) it should navigate to a table with project details in the same report.


15 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 Aug 2011, 04:03 PM
Hi Ysotha,

The short answer is no, the supported interactivity in Telerik Reporting currently works for the whole report item only, for more information please refer to Adding Interactivity to Reports

Regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
yasotha
Top achievements
Rank 1
answered on 15 Aug 2011, 05:23 PM
Hi Steve,

Thanks for your reply.I have another query as well.
Is it possible to pass the datapoint value of pie chart for click event to a parameter?

Regards
Yasotha
0
Steve
Telerik team
answered on 16 Aug 2011, 11:36 AM
Hi Ysotha,

It is not possible to get the value of the pie slice, as the action is performed over the whole chart item and we are not aware in which part of the chart image you have clicked.

Greetings,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
yasotha
Top achievements
Rank 1
answered on 16 Aug 2011, 03:57 PM
Hi Steve,

Thanks, I would like to display the dates against the name of the projects in a gantt chart.
That is X- axis : Date
Y- axis: Project Name.
I tried in teleric reporting but getting an error "Value cannot be null , Parameter name : key"
Could you please let me know any solutions. Does telerik supports date data type to display in a chart?

Thanks
Yasotha
0
Steve
Telerik team
answered on 16 Aug 2011, 04:33 PM
Hello Ysotha,

Check the following blog post that elaborates on your inquiry: Displaying Incremental DateTime Values in the X-Axis of RadChart.

Greetings,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
yasotha
Top achievements
Rank 1
answered on 17 Aug 2011, 10:47 AM
Hi Steve,

Thanks for your reply. It works ok. But i need to display the project start date and end date Vs project name in a gantt chart.
Is it possible to implement this? Do you any sample code to create a gantt chart.

Regards
Yasotha
0
Steve
Telerik team
answered on 17 Aug 2011, 11:38 AM
Hi Ysotha,

The main difference about Gantt charts are that they visualize time based information. With that in mind, the creation of the chart itself is pretty standard i.e. you can use as basis the following help article Creating Chart Programmatically - more complex example where only the part of creating the series item should be replaced with something like this:

ChartSeriesItem item = new ChartSeriesItem() { YValue = 5, YValue2 = 7 };
RadChart1.Series[0].Items.Add(item);

The easiest way to get on the right track is to setup the series and their items through the report designer and then check the code it has generated for the chart in the InitializeComponent() method.

Regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
yasotha
Top achievements
Rank 1
answered on 17 Aug 2011, 02:58 PM
Hi Steve,

Is it possible to retrive the data from database and represent in a gantt chart rather than setup the series and their items through the report designer?
 
Thanks and Regards
Yasotha
0
Steve
Telerik team
answered on 18 Aug 2011, 02:56 PM
Hello Ysotha,

Yes, you can use the DataSource property of the chart to bind it to one of the supported Data Source Components. You can review our demo reports using chart where we have used this technique.

All the best,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
yasotha
Top achievements
Rank 1
answered on 26 Aug 2011, 10:42 AM

Hi Steve,

Is it possible to integrate Telerik Reporting into Share Point?


Thanks and Regads
Yasotha

0
Peter
Telerik team
answered on 31 Aug 2011, 02:39 PM
Hi Ysotha,

Yes, you can integrate Telerik Reporting Web report viewer in SharePoint. For more information check out Deploying Web ReportViewer in SharePoint help article.

Additionally you may find useful How to use SharePoint List for Telerik Reporting Datasource blog.

Best wishes,
Peter
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Vijetha
Top achievements
Rank 1
answered on 05 Oct 2011, 09:28 AM
Hi,

I want to display the % of a pie chart using chartseries in report viewer for Telerik.Reporting.Chart chartGeneric;

I added this chart dynamically to my report.

Below are the line of code which i have written to diplay % of slices
my datatabe
----------------
name   Amount
Sony     120
Nani    100
Hhhh    132
sdjkh    45
uiiuo    67


 public Report1()
        {
NeedDataSource += new EventHandler(Report_GetDataSource);
        }

 void Report_GetDataSource(object sender, EventArgs e)
        {
              generateChart(resultsTable)
        }

 private void generateChart(DataTable dtResults)
        {
                chartGeneric.IntelligentLabelsEnabled = false;
                ChartSeries serie = new ChartSeries();
                serie.Type = ChartSeriesType.Pie;
                serie.Clear();
                serie.Name = dtResults.Columns[0].ColumnName.Trim() + " - " + dtResults.Columns[1].ColumnName.Trim();
                serie.Appearance.ShowLabelConnectors = true;
                serie.Appearance.LegendDisplayMode = Telerik.Reporting.Charting.ChartSeriesLegendDisplayMode.ItemLabels;
                foreach (DataRow dr in dtResults.Rows)
                {
                    ChartSeriesItem item = new ChartSeriesItem();
                    item.YValue = Convert.ToDouble(dr["Total"].ToString());
                    item.Name = (string)dr["Name"].ToString();
                    item.Appearance.Exploded = true;
                    item.Label.TextBlock.Text = (string)dr["Name"].ToString()+"
 - #%
";
                    serie.Items.Add(item);
                }
                chartGeneric.Series.Add(serie);
           }

But this does not work for me .Instead it shows the amount values on the slices.

My requirement is i have to dispaly the name and the total percentages on the slices which is same as given in below url but does not work any thing for me.

http://www.telerik.com/help/reporting/buildingdatatbindlistcomplex.html

0
Steve
Telerik team
answered on 05 Oct 2011, 10:05 AM
Hello Vijetha,

There is already a working example for your inquiry available in the Data Binding Chart to a Generic List of Objects help article. Note that this code is used in the NeedDataSource event of the chart item and not the NeedDataSource of the report.

Kind regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vijetha
Top achievements
Rank 1
answered on 05 Oct 2011, 02:33 PM
Hi Guy,

Please find the attached file .

When binding data to chart series as in the obove example i have posted.If my data source is having more of rows some of adjacent slices names of the chart are overlapped and also some text is missing for large text.

Please suggest how to over come this problem.

If this is a restriction for the chart.Then what will be the possible workaround.

Version:Reporting Q2 2011
0
Steve
Telerik team
answered on 05 Oct 2011, 03:18 PM
Hi Vijetha,

When you have so many small values right next to each other, it is possible to have their labels overlap. Generally you can influence this behavior by setting the chart AutoLayout property to True. It makes sure that no chart elements overlap whenever possible.
Another thing to try is setting the IntelligentLabelsEnabled property to True, which should try to arrange them in a manner that they do not overlap with each other or with the pie.
Other things to try include increasing the distance between the pie and the labels. This is controlled by the chart1.Series[i].Appearance.LabelAppearance.Distance property.
Another thing that comes to mind is the StartAngle property, but of course this depends on the data and in some angles might still lead to such problems.

Regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
yasotha
Top achievements
Rank 1
Answers by
Steve
Telerik team
yasotha
Top achievements
Rank 1
Peter
Telerik team
Vijetha
Top achievements
Rank 1
Share this question
or