Is line style Smooth not working in line chart?
Seems to work for Area chart...
Using version 15.0.1<TelerikChart>
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Line" Name="Product 1" Data="@_series1Data">
<ChartSeriesLine Style="@ChartSeriesLineStyle.Smooth" />
</ChartSeries>
<ChartSeries Type="ChartSeriesType.Area" Name="Product 2" Data="@_series2Data">
<ChartSeriesLine Style="@ChartSeriesLineStyle.Smooth" />
</ChartSeries>
</ChartSeriesItems>
<ChartCategoryAxes>
<ChartCategoryAxis Categories="@_xAxisItems" />
</ChartCategoryAxes>
<ChartTitle Text="Quarterly revenue per product"></ChartTitle>
</TelerikChart>
@code {
readonly List<object> _series1Data = [10, 2, 7, 5];
readonly List<object> _series2Data = [5, 12, 8, 2];
readonly object[] _xAxisItems = ["Q1", "Q2", "Q3", "Q4"];
}
14.0.0 changed the Template parameter of ChartSeriesLabels so it only supports JavaScript function names and not arbitrary JavaScript: Blazor Breaking Changes 14.0.0 - Telerik UI for Blazor
However, now that Template property is marked as deprecated in code, which causes warnings when developing and during the build. Obviously we want to reduce warnings wherever possible, but even if using Template properly, you will always get the obsolete warning when that property exists in your .razor file.
Is there any reason this change was communicated with the .NET obsolete attribute, which is now resulting in false positive warnings all over the place? Is there any recommendation on what to do with these warnings? I did not find any recommendations on this in the Telerik documentation for the chart, the 14.0.0 release notes, or the 14.0.0 breaking changes article. I don't want to suppress CS0618 project-wide, since it's very useful to have. Should I just write manual warnings suppressions around each use of ChartSeriesLabels across my project? Is Telerik planning to no longer obsolete the Template property in future versions, or is it actually being deprecated in favor of something else?

Hi,
When I add a chart series of a different type to a telerik chart then there is a margin left and right of the plot area added. So between the y-axis and where the plot starts there is whitespace (the same on the right side, where the x-axis expands beyond the plot area).
Dependencies:
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all"/>
<PackageReference Include="Telerik.FontIcons" Version="2.1.0" />
<PackageReference Include="Telerik.UI.for.Blazor" Version="5.0.1" />
Example:
@page "/AreaChartDemo"
@using Telerik.Blazor
@using Telerik.Blazor.Components
<TelerikChart>
<ChartTooltip Visible="true"></ChartTooltip>
<ChartTitle Text="Gross domestic product growth /GDP annual %/"></ChartTitle>
<ChartLegend Position="ChartLegendPosition.Bottom"></ChartLegend>
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Area" Name="Chile" Data="@Data" Field="@nameof(ModelData.Series1)"></ChartSeries>
<ChartSeries Type="ChartSeriesType.Area" Name="India" Data="@Data" Field="@nameof(ModelData.Series2)"></ChartSeries>
<ChartSeries Type="ChartSeriesType.Area" Name="Haiti" Data="@Data" Field="@nameof(ModelData.Series3)"></ChartSeries>
<ChartSeries Type="ChartSeriesType.Line" Name="foo" Data="@Data" Field="@nameof(ModelData.Idx1)" Margin="0" AutoFit="true" Padding="0"></ChartSeries>
</ChartSeriesItems>
<ChartCategoryAxes>
<ChartCategoryAxis Categories="@Categories"></ChartCategoryAxis>
</ChartCategoryAxes>
<ChartValueAxes>
<ChartValueAxis AxisCrossingValue="@AxisCrossingValue">
<ChartValueAxisLabels Format="{0}%"></ChartValueAxisLabels>
</ChartValueAxis>
</ChartValueAxes>
</TelerikChart>
@code {
public class ModelData
{
public double Series1 { get; set; }
public double Series2 { get; set; }
public double Series3 { get; set; }
public double Idx1 { get; } = 0.0;
}
public string[] Categories = new string[] { "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011" };
public object[] AxisCrossingValue = new object[] { -10 };
public List<ModelData> Data = new List<ModelData>()
{
new ModelData()
{
Series1 = 3.907,
Series2 = 1.988,
Series3 = -0.253
},
new ModelData()
{
Series1 = 7.943,
Series2 = 2.733,
Series3 = 0.362
},
new ModelData()
{
Series1 = 7.848,
Series2 = 3.994,
Series3 = -3.519
},
new ModelData()
{
Series1 = 9.284,
Series2 = 3.464,
Series3 = 1.799
},
new ModelData()
{
Series1 = 9.263,
Series2 = 4.001,
Series3 = 2.252
},
new ModelData()
{
Series1 = 9.801,
Series2 = 3.939,
Series3 = 3.343
},
new ModelData()
{
Series1 = 3.89,
Series2 = 1.333,
Series3 = 0.843
},
new ModelData()
{
Series1 = 8.238,
Series2 = -2.245,
Series3 = 2.877
},
new ModelData()
{
Series1 = 9.552,
Series2 = 4.339,
Series3 = -5.416
},
new ModelData()
{
Series1 = 6.855,
Series2 = 2.727,
Series3 = 5.59
}
};
}
Thanks

I keep getting these errors after i updated to the latest release for a lot of charting components. This one is with ChartSeriesType.Area. The areas are there but don't have any coloring and are invisible.
telerik-blazor.js:1 Error: <path> attribute d: Expected number, "M140.35 13 L NaN 13 NaN 173.2…".
I have a Telerik Blazor chart with time-based data updating in real time. The X-axis labels are not aligned with the major ticks — they are showing between two ticks instead of directly on them.
I am currently using CategoryField for the time values.
How can I make the labels align with the major ticks?
Code Snippet:
<!-- Category Axis -->
Hey,
I am working on a Telerik for Blazor UI project and I'm really liking alll the Telerik features so far. However, when there are too many data points on my graph, the x axis becomes really hard to read, so I added a feature to scale the number of visible x-axis categories based on the number of intervals.
For this purpose, I was hoping to add a feature so that when one zooms into the graph, more of the x-axis intervals become visible based on how many can comfortably fit on screen. To this end, I need to know how much a user has zoomed in so that I can scale things accordingly. However, from all I can find online, there is no way to query a TelerikChart for how zoomed in you are. I might be missing something, but in case I am not, I think this feature could be very helpful so that one can add events based on the zoom in and have things change accordingly.
Thanks
If my data for a Line Chart has only point set, the chart will place the single points in the center of the chart. I'd prefer to see single point on the Left of the chart.
I'd like to see the data point (1st rate, 2nd rate, EIR Fee, Handling Fee) for year 2023 be left aligned in the chart, not centered.
Searched the documentation and can't find where I might be able to accomplish this?
Rob.

If I use ChartCategoryAxisBaseUnit.Years the X-axis looks great.
However, if the data doesn't have any entry for every year (rates don't necessarily change every year) I get an odd chart with dips for the years where no rate was changed, resulting in this:
As you can see, dip in 2011. I don't want to see a dip as it's not representative, what I want to see is a straight line going up from 2010 to 2012 as the 2011 is really just an interpolated label for the X axis.
Is there a solution to this issue?
Rob

Hi, I try to use Gantt so i bump into it doesn't have summery row template?
I understood that everyone is busy, so i started to explore rendered html of gantt and found 3 timeline tables! while try to fix bug with not synced scroll this code o got from here https://www.telerik.com/blazor-ui/documentation/components/gantt/timeline/templates/task
look:
<TelerikChart>
<ChartTitle Text="MissingValues.Zero Tooltip Bug (No Nulls)"></ChartTitle>
<ChartTooltip Visible="true"></ChartTooltip>
<ChartLegend Position="ChartLegendPosition.Bottom"></ChartLegend>
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Line"
Name="Sample Series"
Data="@Data"
Field="@nameof(ChartP.Count)"
CategoryField="@nameof(ChartP.Category)"
MissingValues="ChartSeriesMissingValues.Zero"
Style="ChartSeriesStyle.Normal">
<ChartSeriesTooltip Visible="true" Context="ctxt">
<Template>
@{
var point = ctxt.DataItem as ChartP;
}
<div style="font-size:13px;">
<strong>Category:</strong> @point?.Category.ToString("yyyy-MM-dd HH:mm")<br />
<strong>Count:</strong> @point?.Count<br />
<strong>Extra:</strong> @point?.ExtraInfo
</div>
</Template>
</ChartSeriesTooltip>
<ChartSeriesMarkers Visible="false" Type="ChartSeriesMarkersType.Circle" Size="6">
<ChartSeriesMarkersBorder Width="1" />
</ChartSeriesMarkers>
</ChartSeries>
</ChartSeriesItems>
<ChartCategoryAxes>
<ChartCategoryAxis Min="@StartOfDayLocal" Max="@EndOfDayLocal" Type="ChartCategoryAxisType.Date"
BaseUnit="ChartCategoryAxisBaseUnit.Minutes" BaseUnitStep="15">
<ChartCategoryAxisLabels Format="{0:HH:mm}" Step="4">
<ChartCategoryAxisLabelsRotation Angle="45" />
</ChartCategoryAxisLabels>
</ChartCategoryAxis>
</ChartCategoryAxes>
<ChartValueAxes>
<ChartValueAxis>
<ChartValueAxisLabels Format="{0}" />
</ChartValueAxis>
</ChartValueAxes>
</TelerikChart>
@code {
public class ChartP
{
public DateTime Category { get; set; } // X axis
public int Count { get; set; } // Y value
public string? ExtraInfo { get; set; } // Info for tooltip
}
private static DateTime StartOfDayLocal =>
DateTime.SpecifyKind(DateTime.Today, DateTimeKind.Local);
private DateTime EndOfDayLocal => StartOfDayLocal.AddDays(1);
public List<ChartP> Data = new()
{
new ChartP { Category = StartOfDayLocal.AddHours(2), Count = 5, ExtraInfo = "Real Point A" },
new ChartP { Category = StartOfDayLocal.AddHours(3), Count = 7, ExtraInfo = "Real Point B" },
new ChartP { Category = StartOfDayLocal.AddHours(4), Count = 3, ExtraInfo = "Real Point C" },
new ChartP { Category = StartOfDayLocal.AddHours(5), Count = 2, ExtraInfo = "Real Point D" },
};
}