4 Answers, 1 is accepted
0
![](/forums/images/avatarimages/default.gif)
Jacek
Top achievements
Rank 1
answered on 02 Sep 2014, 02:38 PM
Sorry, not vertical, like in title, but just horizontal :).
0
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
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
![](/forums/images/avatarimages/default.gif)
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.
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
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
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.