A Line chart component displays data as continuous lines that connect points defined by the values of their items. It is useful for displaying a trend over time or comparing several sets of similar data in both Blazor WebAssembly (WASM) and Server-side dashboard applications.
The Line chart is a data bound component which also provides the flexibility to bind axes and series to various data sources separately or together.
More about chart data binding in Blazor.
You can customize all aspects of the Line chart—from the markers, area background color, opacity, line width, dash types and series color to its labels content, font, size, position, line styles and even missing values.
The Line chart supports different styles for the lines connecting its data points – Normal (straight line), Step (horizontal and vertical lines) and Smooth (fitted curve).
If you want to show trend over time, the Line chart can let you provide DateTime values for its x-axis and it will aggregate the data points falling in the intervals you choose.
The Line Chart can render more than one axis in each dimension and you can associate each series with its own axes. This lets you show data that varies on orders of magnitude in the same chart without loss of detail.
You can also mix different types of series in a single chart to create more compelling visuals – such as line charts and column charts, or area charts.
Each data item in the Line chart component is denoted by a marker. You have full control over the marker visibility, size (in pixels) and type: circle (default), cross, square and triangle.
If some values are missing from the Line series data, you have options to configure how those missing values to be visualized by the component:
The Line Chart renders in the browser to preserve server resources. It has SVG markup and <canvas> rendering modes to improve performance further, and it can even animate during rendering for a smoother user experience.
The Label Format Strings in UI for Blazor Line chart, are culture aware so your users see, for example, the expected number formats with the decimal and thousands separators they are used to.
The Telerik Blazor Line component has several built-in themes such as Default (our own styling), Material (based on the Material Design guidelines), Bootstrap (which looks like the Bootstrap styling to integrate better) and Fluent (based on Microsoft Fluent UI). Each theme predefines several series colors, so your data is visualized according to your design guidelines. You can further customize any of the out-of-the box themes, style a specific chart component or create new theme to match your colors and branding by using the Telerik SASS ThemeBuilder application
The Telerik UI for Blazor Line Chart component supports right-to-left configuration. The RTL functionality is supported by most of our components to accommodate users who communicate in a right-to-left language script, such as Arabic and Hebrew.
Learn more in our Blazor Right-to-Left Support documentation