Completed
Last Updated: 02 Dec 2021 14:49 by ADMIN
Release 2.30.0
Angelo
Created on: 01 Jul 2020 03:34
Category: Charts
Type: Feature Request
6
Expose a parameter to control the line width for Line chart

The code below does not produce a chart series with a line that is 50 width?  What am i missing?

 

@page "/chartdemo"
Line series

<TelerikChart>
    <ChartSeriesItems>
        <ChartSeries Type="ChartSeriesType.Line" Name="Product 1" Data="@series1Data">
            <ChartSeriesMarkers Size="10"></ChartSeriesMarkers>
        </ChartSeries>
        <ChartSeries Type="ChartSeriesType.Line" Size="10" Name="Product 2" Data="@series2Data">
            <ChartSeriesLine Width="50"></ChartSeriesLine>
        </ChartSeries>
    </ChartSeriesItems>

    <ChartCategoryAxes>
        <ChartCategoryAxis Categories="@xAxisItems"></ChartCategoryAxis>
    </ChartCategoryAxes>

    <ChartTitle Text="Quarterly revenue per product"></ChartTitle>

    <ChartLegend Position="ChartLegendPosition.Right">
    </ChartLegend>
</TelerikChart>

@code {
    public List<object> series1Data = new List<object>() { 10, 2, 5, 6 };
    public List<object> series2Data = new List<object>() { 5, 8, 2, 7 };
    public string[] xAxisItems = new string[] { "Q1", "Q2", "Q3", "Q4" };

 }

    
4 comments
Christian
Posted on: 29 Oct 2021 11:27

Hi,

please add this feature to all chart series types where applicable - e.g. the scatter line.. and please do not open another feature request for this as this would absolutely make sense in terms of consistency. Maybe you can adapt the thread title to reflect that this feature request would affect all applicable series types.

 

Thank You and Best Regards,

Christian

ADMIN
Svetoslav Dimitrov
Posted on: 02 Jul 2020 14:06

Hello Angelo,

I have created the following Feature Request regarding the control over the dash type. You can see it from here, I have added a Vote on your behalf and you can follow it for email notifications on status updates

Regards,
Svetoslav Dimitrov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Angelo
Posted on: 01 Jul 2020 13:30

Hi Svestoslav,

I think the parameter to set the dash type of the chart line need to be added as well.  Thanks.

Angelo

ADMIN
Svetoslav Dimitrov
Posted on: 01 Jul 2020 11:13

Hello Angelo,

The setup you have sent us is valid for Area charts. I am attaching an screenshot where the line of the Area chart is 50 pixels. 

That being said, I am changing this to a Feature Request since the control over the line width of a Line is not exposed. When it is, the setup would look like this: 

<ChartSeries Type="ChartSeriesType.Line" Name="Product 2" Data="@series2Data" Width="50" />

I am also changing the title of this thread to better represent the desired outcome. I have given your Vote to raise the popularity of this request.

Regards,
Svetoslav Dimitrov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Attached Files: