Hello all. I am very new to Telerik charts and have decided to create my first pie chart and as a result I am without a lot of hair I started with. I can not for the life of me figure out how to get this pie chart to show actual numbers on it. I would have thought that numbers on a pie chart would be rather elementary but no matter what I change or set, all I get is the item name but not the actual number the slice of pie represents. Can anyone please, please give me a clue??
Please see attached picture for example of what I am talking about.
Thank you in advance!
Malcolm
Hi,
I have used HTML TextBox in my Report and i have given the values for HTML TextBox like the below format are as follows,
='| | |'
Senario:
In the HTML TextBox, if i give values upto 99 characters it works fine and if i give more than 99 characters then getting Error which i have attached(ErrorMesage.png).
Solution:
Error should not occur If i give any no of characters in HTML TextBox(htmltextbox_report.png).
foreach (var a in b){ ChartSeriesItem objItem = new ChartSeriesItem(); objItem.YValue = 1; objItem.Name = "test"; objItem.ActiveRegion.Click += new RegionClickEventHandler(ActiveRegion_Click); objItem.ActiveRegion.Attributes = "onclick:alert('test')"; objItem.ActiveRegion.Tooltip = "test"; objItem.ActiveRegion.Url = "www.google.com"; objSeries.Items.Add(objItem);}
void ActiveRegion_Click(object sender, RegionClickEventArgs args)
{
throw new NotImplementedException();
}
But the handler is not getting fired nor the alert is shown..
Is there something i miss?
Thanks and best regards
namespace CMS{ public partial class ARQSort : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { CMS.Reports.ARQSort report1 = new CMS.Reports.ARQSort(); using (CMSDatabaseDataContext myCMSDataContext = new CMSDatabaseDataContext()) { IEnumerable<arq_recipient> arqSortQuery = (from a in myCMSDataContext.arq_recipients where a.fdc_accepted == true select a); // Assigning the ObjectDataSource component to the DataSource property of the report. report1.DataSource = arqSortQuery; Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource(); instanceReportSource.ReportDocument = report1; ReportViewer1.ReportSource = instanceReportSource; } } }}