Jump to content
Software FX Community

 MarkerStep Property of FXChart


Guest Math

Recommended Posts

Hello,
This one is regarding MarkerStep Property of FXChart. I made a line graph and couldn't see any impact by using different values of MarkerStep Property. Is it data related? Below is my code and can you please suggest any changes I need to make so that I can see the difference by using MarkerStep Property ?
private void BindData()
  {
   CarProduction[] production = new CarProduction[] {
   new CarProduction{ Month = "Jan", Sedan = 1760, Coupe = 535, SUV = 695 } ,
   new CarProduction{ Month = "Feb", Sedan = 1849, Coupe = 395, SUV = 688 } ,
   new CarProduction{ Month = "Mar", Sedan = 2831, Coupe = 685, SUV = 1047 } ,
   new CarProduction{ Month = "Apr", Sedan = 2851, Coupe = 984, SUV = 1652 } ,
   new CarProduction{ Month = "May", Sedan = 2961, Coupe = 1579, SUV = 1889 } ,
   new CarProduction{ Month = "Jun", Sedan = 1519, Coupe = 1539, SUV = 1766 } ,
   new CarProduction{ Month = "Jul", Sedan = 2633, Coupe = 1489, SUV = 1361 } ,
   new CarProduction{ Month = "Aug", Sedan = 1140, Coupe = 650, SUV = 874 } ,
   new CarProduction{ Month = "Sep", Sedan = 1626, Coupe = 653, SUV = 693 } ,
   new CarProduction{ Month = "Oct", Sedan = 1478, Coupe = 2236, SUV = 786 } ,
   new CarProduction{ Month = "Nov", Sedan = 1306, Coupe = 1937, SUV = 599 } ,
   new CarProduction{ Month = "Dec", Sedan = 1607, Coupe = 2138, SUV = 678 }
   };
   chart1.DataSourceSettings.DataSource = production;
chart1.Gallery = Gallery.Lines;
   chart1.AllSeries.MarkerStep = 3;
  }
public class CarProduction
 {
  public string Month { get; set; }
  public int Sedan { get; set; }
  public int Coupe { get; set; }
  public int SUV { get; set; }
 }
 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...