c# - How to modify select parts of default chart style? -


I have a LineSeries that I am trying to create with code instead of XAML.

I am using a LineSeries, but I want to remove the markers, and it is just the line. To do this, I have changed the style so that the heights and width are zero:

Various methods of style style Modify Style = New Style (TypePoint (Datapoint), B Chat style.); Line style. Add (New Setter (Datapoint. Highproperty, 0.0)); Line style. Set up Add (new setter (Datapoint with property, 0.0)); // add a series of charts to var a = New LineSeries (); A.IndependentValueBinding = New system.window.Data Binding ("key"); A.DependentValueBinding = New system Windows Data Binding ("value"); A.DataPointStyle = lineStyle;

It works, though the colors change from the original style - these are both yellow / orange. I like they were not! Am I better off implementing new colors or can I modify the default style instead of a new application?

"post-text" itemprop = "text">

For example, just add them to black:

  lineStyle.Setters.Add (new Setter (DataPoint.Background, Brushes.Black));  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -