Can I Draw a Line and Without the Interior Filled In?
Hello,
I've attached a pic below of the chart I'd like to create. I want to draw the dark blue line without any interior color. Is this possible?
Here is some of the the code I'm using to draw my chart.
ChartSeries dewpointSeries = new ChartSeries("dewpointSeries Point", ChartSeriesType.Line);
dewpointSeries.Style.Interior = new Syncfusion.Drawing.BrushInfo(Color.Blue);
dewpointSeries.Style.Interior = new Syncfusion.Drawing.BrushInfo(Color.Blue);
dewpointSeries.SortBy = ChartSeriesSortingType.X; //if I sort by Y I still get chart interior filled in
dewpointSeries.SortOrder = ChartSeriesSortingOrder.Descending;
Thank you for your help!
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SJ
Suyamburaja Jayakumar
Syncfusion Team
July 15, 2020 05:24 PM UTC
Hi Beth Taylor,
Greetings from Syncfusion.
Currently we have validated the reported issue, we need some more information for the reported issue, can you please share the following details which will be helpful for us to analyze the reported issue at our end and to provide a possible solution at earlier?
· If possible, can you please provide ViewModel and Model
· Please provide a chart related code snippet.
Regards,
Suyamburaja J
BT
Beth Taylor
July 16, 2020 01:07 PM UTC
Attached is the data I am using to create the dark blue line. It is X,Y.
This is the code I use to add the points to a chart.
ChartSeries dewpointSeries = new ChartSeries("dewpointSeries Point", ChartSeriesType.Line);
dewpointSeries.Style.Interior = new Syncfusion.Drawing.BrushInfo(Color.Blue);
dewpointSeries.Style.Interior = new Syncfusion.Drawing.BrushInfo(Color.Blue);
foreach (GraphData data in DewPoint)
{
dewpointSeries.Points.Add(data.Temperature, data.Pressure);
}
{
dewpointSeries.Points.Add(data.Temperature, data.Pressure);
}
dewpointSeries.SortPoints = true;
dewpointSeries.SortBy = ChartSeriesSortingType.X;
dewpointSeries.SortOrder = ChartSeriesSortingOrder.Descending;
chartPhaseDiagram.Series.Add(dewpointSeries);
Attachment: dewPoints_aab8e7c9.zip
SJ
Suyamburaja Jayakumar
Syncfusion Team
July 19, 2020 07:38 AM UTC
Hi Beth Taylor,
Thanks for your update.
We would let you know that the requirement has been achieved by using the Chart series SortPoints as false. Please refer the below code snippet.
C#:
|
chartSeries1 = new ChartSeries("dewpointSeries Point", ChartSeriesType.Line);
chartSeries1.Style.Interior = new Syncfusion.Drawing.BrushInfo(Color.Blue);
chartSeries1.SortPoints = false;
chartSeries1.SortBy = ChartSeriesSortingType.X;
chartSeries1.SortOrder = ChartSeriesSortingOrder.Descending;
|
Screenshot:
Please let us know if you need any further assistance on this.
Regards,
Suyamburaja J
Marked as answer
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
- Marked answer
-
BT Beth Taylor
- Jul 14, 2020 01:59 PM UTC
- Jul 19, 2020 07:38 AM UTC