How can I get the index of the series item on a Line Chart when clicking on it?
I am using OnSeriesClick
function OnSeriesClick(args) {
alert(args.value);
}
I don't care about the value of the item, what I need is the index of it in the series.
Thanks,
I am able to bind pie chart data from code behind but I am not sure how to bind my Javascript object to Pie chart.
I am using ASP.NET Web Form and using AJAX to call Handler. I need to bind data after handler returns data.
Server Error in '/MagVLT' Application.
Input value is invalid
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Input value is invalid
Source Error:
Line 434: </td> Line 435: <td> Line 436: <telerik:RadChart ID="rdcTotalBet" runat="server" DataSourceID="SqlDataSource1" DefaultType="Line" Line 437: Skin="Mac"> Line 438: <Series> |
Source File: c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx Line: 436
Stack Trace:
[ArgumentException: Input value is invalid] Telerik.Charting.Styles.MarginsConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) +638 System.ComponentModel.TypeConverter.ConvertFromInvariantString(String text) +63 Telerik.Charting.Styles.ChartMargins.Parse(String value, CultureInfo culture) +46 ASP.cemshome_aspx.__BuildControl__control154(StyleExtendedLabel __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436 ASP.cemshome_aspx.__BuildControl__control153(ChartLegend __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436 ASP.cemshome_aspx.__BuildControlrdcTotalBet() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436 ASP.cemshome_aspx.__BuildControl__control115() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:429 ASP.cemshome_aspx.__BuildControl__control114(HtmlTableCellCollection __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:428 ASP.cemshome_aspx.__BuildControl__control113() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:428 ASP.cemshome_aspx.__BuildControl__control112(HtmlTableRowCollection __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:427 ASP.cemshome_aspx.__BuildControltabRevenue() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:427 ASP.cemshome_aspx.__BuildControl__control3(Control __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:10 System.Web.UI.UpdatePanel.CreateContents() +97 ASP.cemshome_aspx.__BuildControl__control2() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:10 ASP.cemshome_aspx.__BuildControlContent1(Control __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:9 ASP.cemsmaster_master.__BuildControlcphDetail() in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:238 ASP.cemsmaster_master.__BuildControlform1() in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:55 ASP.cemsmaster_master.__BuildControlTree(cemsmaster_master __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:1 ASP.cemsmaster_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\magvlt\9729e21d\12fe1d48\App_Web_cemsmaster.master.cdcab7d2.szqdenly.0.cs:0 System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1305 System.Web.UI.Page.get_Master() +69 System.Web.UI.Page.ApplyMasterPage() +18 System.Web.UI.Page.PerformPreInit() +58 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1256 |
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4205
Hello everyone.
I just can't manage to upgrade my RadChart to a RadHtmlChart because of the differences...
Is there an easier way than doing it manually?
Any sort of help is appreciated. Thanks!
<telerik:RadChart ID="RadChart1" runat="server" DataGroupColumn="jours"
DataSourceID="SDSGraph7I" Skin="Mac" Width="800px">
<Series>
<telerik:ChartSeries DataYColumn="valeur" Name="J">
<Appearance>
<FillStyle MainColor="55, 167, 226" SecondColor="22, 85, 161">
<FillSettings GradientMode="Vertical">
</FillSettings>
</FillStyle>
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
</Appearance>
</telerik:ChartSeries>
<telerik:ChartSeries DataYColumn="valeur" Name="J+1">
<Appearance>
<FillStyle MainColor="223, 87, 60" SecondColor="200, 38, 37">
<FillSettings GradientMode="Vertical">
</FillSettings>
</FillStyle>
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
</Appearance>
</telerik:ChartSeries>
<telerik:ChartSeries DataYColumn="valeur" Name="J+2">
<Appearance>
<FillStyle MainColor="118, 203, 76" SecondColor="73, 166, 22">
<FillSettings GradientMode="Vertical">
</FillSettings>
</FillStyle>
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
</Appearance>
</telerik:ChartSeries>
<telerik:ChartSeries DataYColumn="valeur" Name="J+3">
<Appearance>
<FillStyle MainColor="119, 83, 76" SecondColor="88, 59, 52">
<FillSettings GradientMode="Vertical">
</FillSettings>
</FillStyle>
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
</Appearance>
</telerik:ChartSeries>
<telerik:ChartSeries DataYColumn="valeur" Name="J+4">
<Appearance>
<FillStyle MainColor="255, 222, 0" SecondColor="242, 188, 0">
<FillSettings GradientMode="Vertical">
</FillSettings>
</FillStyle>
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
</Appearance>
</telerik:ChartSeries>
<telerik:ChartSeries DataYColumn="valeur" Name="J+5">
<Appearance>
<FillStyle MainColor="164, 65, 221" SecondColor="125, 24, 167">
<FillSettings GradientMode="Vertical">
</FillSettings>
</FillStyle>
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
</Appearance>
</telerik:ChartSeries>
<telerik:ChartSeries DataYColumn="valeur" Name="J+6">
</telerik:ChartSeries>
</Series>
<PlotArea>
<XAxis AutoScale="False" DataLabelsColumn="grpcattarif" MaxValue="4"
MinValue="1" Step="1">
<Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134">
<MajorGridLines Color="209, 222, 227" PenStyle="Solid" />
<TextAppearance TextProperties-Color="51, 51, 51">
</TextAppearance>
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Color="51, 51, 51">
</Appearance>
</TextBlock>
</AxisLabel>
<Items>
<telerik:ChartAxisItem Value="1">
<TextBlock Text="BREST ">
</TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="2">
<TextBlock Text="BRIEUC ">
</TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="3">
<TextBlock Text="QUIMPER ">
</TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="4">
<TextBlock Text="VANNES ">
</TextBlock>
</telerik:ChartAxisItem>
</Items>
</XAxis>
<YAxis>
<Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134"
MinorTick-Color="134, 134, 134" MinorTick-Width="0">
<MajorGridLines Color="209, 222, 227" />
<MinorGridLines Color="233, 239, 241" />
<TextAppearance TextProperties-Color="51, 51, 51">
</TextAppearance>
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Color="51, 51, 51">
</Appearance>
</TextBlock>
</AxisLabel>
</YAxis>
<Appearance>
<FillStyle FillType="Solid" MainColor="White">
</FillStyle>
<Border Color="134, 134, 134" />
</Appearance>
</PlotArea>
<Appearance Corners="Round, Round, Round, Round, 6">
<FillStyle FillType="Image">
<FillSettings BackgroundImage="{chart}" ImageDrawMode="Flip" ImageFlip="FlipX">
</FillSettings>
</FillStyle>
<Border Color="138, 138, 138" />
</Appearance>
<ChartTitle>
<Appearance Position-AlignedPosition="Top">
<FillStyle MainColor="">
</FillStyle>
</Appearance>
<TextBlock Text="Point Parc � 7 jours">
<Appearance TextProperties-Font="Tahoma, 13pt">
</Appearance>
</TextBlock>
</ChartTitle>
<Legend>
<Appearance Dimensions-Margins="15%, 3%, 1px, 1px"
Position-AlignedPosition="TopRight">
<ItemMarkerAppearance Figure="Square">
<Border Color="134, 134, 134" />
</ItemMarkerAppearance>
<FillStyle MainColor="">
</FillStyle>
<Border Color="Transparent" />
</Appearance>
</Legend>
</telerik:RadChart>
hi sir,
i have dynamically creted a dountchart radhtmlchart in code behind , now i want to wrap the text. I the data length is too large then the chart go smaller example is show below, otherwise is normal.
I need solution ASAP
the sample code:
Dim chart As New RadHtmlChart
chart.ID = "chart"
chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 75
chart.PlotArea.XAxis.DataLabelsField = _ChartSeriesFieldTitlexaxis
chart.PlotArea.Series.Clear()
Dim series As New DonutSeries
series.NameField = _ChartSeriesFieldTitlexaxis
series.DataFieldY = _ChartDataFieldTitle
chart.PlotArea.Series.Add(series)
chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "d"
chart.PlotArea.XAxis.BaseUnit = DateTimeBaseUnit.Days
chart.PlotArea.XAxis.TitleAppearance.Text = _ChartSeriesFieldTitlexaxis
chart.PlotArea.YAxis.TitleAppearance.Text = _ChartDataFieldTitle
chart.DataSource = firstTable
chart.DataBind()
Hi,
we display a RadChart and hook up to its Click() event. All works fine when we click on a chart segment. But if the chart has a legend, the legend is clickable (too) and if a user clicks it we get below error.
Is there a way to fix this? Can we make the legend non-clickable?
The version we use is 2020.2.617.45
Thanks
Michael
Beim Ausführen der aktuellen Webanforderung wurde einen unbehandelte
Ausnahme generiert. Informationen über den Ursprung und die Position der
Ausnahme können mit der Ausnahmestapelüberwachung angezeigt werden.
|
|
Hi Telerik Community,
I have a question which is a little difficult to explain, that is why I attached an image to make it more clear.
I have multiple data points, and each data point has a Pitch attribute associated with it, this Pitch measurement unit is Degrees.
Using the Telerik Chart framework, is it possible to plot each data point at its associated degree angle value and then plot the next data point in relation to the previous. Essentially what we need to do is visually show a profile that is mathematically accurate. I have been able to successfully and accurately achieve this on paper using a protractor but want to digitally achieve this using the Telerik Chart.
Each data point also has a depth value which needs to be shown visually in relation to its associated pitch data point, this will give us the ground elevation relative to the pitch data point.
Would appreciate some guidance on this.
Kind Regards.
Path traversal in all versions of RadChart for ASP.NET AJAX by Telerik allows a remote attacker to read and delete an image with extension ".BMP",".EXIF",".GIF",".ICON",".JPEG",".PNG",".TIFF", or ".WMF" on the server through a specially crafted request.
Versions prior to Q3 2012 may also be exposed to arbitrary files access within the web application, including the web.config.
To avoid the vulnerability you must remove its HTTP handler from your web.config (its type is Telerik.Web.UI.ChartHttpHandler), e.g.
REMOVE these lines from your web.config file:
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
and
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
Note: this will prevent the RadChart control from working in your app.
RadChart has been discontinued in 2014 in favor of RadHtmlChart. We advise that you migrate to RadHtmlChart:
Telerik would like to thank movrment from Infiniti Team - VinCSS (A member of Vingroup) for helping in making this information public.
External reference: CVE-2019-19790