Vertical line

5 posts, 0 answers
  1. Jacek
    Jacek avatar
    12 posts
    Member since:
    Apr 2011

    Posted 02 Sep 2014 Link to this post

    How to draw horizontal line, just like dashed or dotted.
  2. Jacek
    Jacek avatar
    12 posts
    Member since:
    Apr 2011

    Posted 02 Sep 2014 in reply to Jacek Link to this post

    Sorry, not vertical, like in title, but just horizontal  :).
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 03 Sep 2014 Link to this post

    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.

     
  5. Jacek
    Jacek avatar
    12 posts
    Member since:
    Apr 2011

    Posted 03 Sep 2014 Link to this post

    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.
     










  6. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 04 Sep 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017