Telerik Forums
UI for Universal Windows Platform Forum
0 answers
71 views
Hi,

Today, Lance (Telerik) updated my sample provided in https://www.telerik.com/forums/radcartesianchart-datetimecontinuousaxis-minimum-and-maximum-are-not-respected to bypass the bug on the Min/Max not taking into account.

I re-updated the sample (attached) with 2 videos. The sample is in line with my business app: 1440 data point per serie (up to 5 series).

The performance of LineSeries are really bad, I'm quite surprised because these are just lines.

However, if you replace the "<chart:LineSeries" in MainPage.xaml to "<chart:SplineSeries", it is like in real-time when changing the date. This is awesome and frankly I do not understand how come it is fast versus LineSeries where it takes 3 to 5 seconds to refresh. You can see the 2 videos.

My only fear is Spline has the following bug https://www.telerik.com/forums/radcartesianchart-weird-rendering

Thanks
Sébastien
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 28 Jun 2022
0 answers
140 views

I'm facing issue while binding RadCartesianChart, application is crashing. With the help of application log both x-axis and y-axis value are passing but still getting null reference exception.

Logged the stack. Please help

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.UI.Xaml.Controls.Chart.PresenterBase.CreateContentPresenter(Object content, DataTemplate template)
   at Telerik.UI.Xaml.Controls.Chart.Axis.CreateLabelVisual(AxisLabelModel label)
   at Telerik.UI.Xaml.Controls.Chart.Axis.GetLabelVisual(AxisLabelModel label, Int32 index)
   at Telerik.UI.Xaml.Controls.Chart.Axis.MeasureLabel(AxisLabelModel label, Object content)
   at Telerik.Charting.AxisModel.MeasureCo
----Stack----
   at Telerik.UI.Xaml.Controls.Chart.PresenterBase.CreateContentPresenter(Object content, DataTemplate template)
   at Telerik.UI.Xaml.Controls.Chart.Axis.CreateLabelVisual(AxisLabelModel label)
   at Telerik.UI.Xaml.Controls.Chart.Axis.GetLabelVisual(AxisLabelModel label, Int32 index)
   at Telerik.UI.Xaml.Controls.Chart.Axis.MeasureLabel(AxisLabelModel label, Object content)
   at Telerik.Charting.AxisModel.MeasureCore(RadSize availableSize)
   at Telerik.Charting.AxisModel.Measure(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.AxisStack.Measure(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.PrepareAxesStacks(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.ArrangeAxes(RadRect availableRect)
   at Telerik.Charting.ChartAreaModelWithAxes.ArrangeOverride(RadRect rect)
   at Telerik.Core.Node.Arrange(RadRect rect, Boolean shouldRoundLayout)
   at Telerik.Core.RootElement.Arrange()
   at Telerik.UI.Xaml.Controls.Chart.RadChartBase.CallUpdateUI()
   at Telerik.UI.Xaml.Controls.Chart.RadChartBase.InvalidateLayout()
-------------

 

Thanks

Shoeb
Top achievements
Rank 1
 updated question on 06 Jul 2021
0 answers
59 views

Hi, 

 

I have following code for line chart and I would like to change the X value filed from number (1,2,3 ... ,12) to name of the months (Jan, Feb... Dec). Down below is my code. 

 

 

<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="1500px" Height="500px" DataSourceID="dsResults" InvokeLoadData="OnPageLoad" >

                                        <Legend>
                                            <Appearance Position="Right" BackgroundColor="#cccccc" Visible="true">
                                                <TextStyle FontSize="14" Bold="true" />
                                            </Appearance>
                                        </Legend>
                                        <PlotArea>
                                            <Series>
                                                <telerik:LineSeries Name="CY Percent Obligated" DataFieldY="CY_PCT_OBS">
                                                    <Appearance>
                                                        <FillStyle BackgroundColor="#003300" />
                                                    </Appearance>
                                                    <MarkersAppearance MarkersType="Square" BackgroundColor="#003300" BorderColor="ForestGreen" />
                                                    <LabelsAppearance Visible="false">
                                                    </LabelsAppearance>
                                                    <TooltipsAppearance BackgroundColor="White">
                                                        <ClientTemplate>
                                                            #=dataItem.CY_PCT_OBS#
                                                        </ClientTemplate>
                                                    </TooltipsAppearance>
                                                </telerik:LineSeries>
                                                <telerik:LineSeries Name="Percent Obligated 2017" DataFieldY="PY1_PCT_OBS">
                                                    <Appearance>
                                                        <FillStyle BackgroundColor="#009933" />
                                                    </Appearance>
                                                    <MarkersAppearance MarkersType="Square" BackgroundColor="#009933" BorderColor="ForestGreen" />
                                                    <LabelsAppearance Visible="false">
                                                    </LabelsAppearance>
                                                    <TooltipsAppearance BackgroundColor="White">
                                                        <ClientTemplate>
                                                            #=dataItem.PY1_PCT_OBS#
                                                        </ClientTemplate>
                                                    </TooltipsAppearance>
                                                </telerik:LineSeries>
                                                ...

                                            </Series>
                                           <XAxis BaseUnit="Months" MinValue="1" MaxValue="12" DataLabelsField="FM" MajorTickType="Outside" Color="Black" Width="2px">
                                                <LabelsAppearance DataFormatString="MM" RotationAngle="0" Skip="0" Step="1">
                                                    <TextStyle Bold="true" FontSize="16" Color="Black" />
                                                </LabelsAppearance>
                                                <TitleAppearance Position="Center" RotationAngle="0" Text="Fiscal month"></TitleAppearance>
                                            </XAxis>
                                            <YAxis Color="Black" Width="2px">
                                                <LabelsAppearance DataFormatString="{0}%" RotationAngle="0" Skip="0" Step="1">
                                                    <TextStyle Bold="true" Color="Black" />
                                                </LabelsAppearance>
                                                <TitleAppearance Position="Center" RotationAngle="0" Text="Percentage"></TitleAppearance>
                                            </YAxis>
                                        </PlotArea>
                                        
                                    </telerik:RadHtmlChart >

Thaman
Top achievements
Rank 1
 asked on 10 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?