This is a migrated thread and some comments may be shown as answers.

Vertical line

4 Answers 117 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Jacek
Top achievements
Rank 1
Jacek asked on 02 Sep 2014, 02:34 PM
How to draw horizontal line, just like dashed or dotted.

4 Answers, 1 is accepted

Sort by
0
Jacek
Top achievements
Rank 1
answered on 02 Sep 2014, 02:38 PM
Sorry, not vertical, like in title, but just horizontal  :).
0
Danail Vasilev
Telerik team
answered on 03 Sep 2014, 01:29 PM
Hi Jacek,

It is not possible to draw pure lines in the RadHtmlChart. You can, however, take advantage of the plot bands functionality.


Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jacek
Top achievements
Rank 1
answered on 03 Sep 2014, 01:39 PM
For now I have this solution:
   LineSeries srednia = new LineSeries();
            srednia.Name = "Średnia";
            srednia.LabelsAppearance.Visible = false;
            srednia.TooltipsAppearance.Color = System.Drawing.Color.White;
            srednia.MarkersAppearance.Visible = false;
            srednia.Appearance.FillStyle.BackgroundColor = System.Drawing.Color.Black;
            srednia.LineAppearance.LineStyle = Telerik.Web.UI.HtmlChart.Enums.ExtendedLineStyle.Step;


            LineSeries c = new LineSeries();
            int x = 1;
            Color kolor = Color.Green;
            foreach (klasy._QCPunkt QC in QCPunkt)
            {
                chart.PlotArea.XAxis.Items.Add(x++.ToString());
                kolor = Color.Green;
                if (QC.Wynik > WybraneBadanie.akt_x + WybraneBadanie.akt_sd) kolor = Color.LightCoral;
                if (QC.Wynik < WybraneBadanie.akt_x - WybraneBadanie.akt_sd) kolor = Color.SkyBlue;
                c.SeriesItems.Add(QC.Wynik, kolor);
                CategorySeriesItem item1 = new CategorySeriesItem();
                item1.Y = WybraneBadanie.akt_x;
                srednia.SeriesItems.Add(item1);

            }
            chart.PlotArea.Series.Add(srednia);
            chart.PlotArea.Series.Add(c)

But posibility to draw dotted, dashed etc. lines would be great.
 










0
Danail Vasilev
Telerik team
answered on 04 Sep 2014, 11:35 AM
Hi Jacek,

I have logged this feature request here, so that you can monitor, comment and vote on it. As a small token of gratitude for sharing your ideas with us I have updated your Telerik points.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart (HTML5)
Asked by
Jacek
Top achievements
Rank 1
Answers by
Jacek
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or