Jump to content
Software FX Community

Tim.Burnett

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Tim.Burnett

  1. hi, I can't for the life of me figure out how to simply plot a bunch of points with x,y coordinates, ideally with both x and y axis logarithmic. Trying to decide whether to purchase SoftwareFX for our project. Tried various combinations of SeriesAttributes.BindingPath and AxisX.DataPath etc etc and I'm getting frustrated what am I missing? The following does the Y axis correctly but the X axis is just in order that the points are added and does not use my RoomPressure property as the X value. The chart FlowRPChart is currently set to Gallery="Line" but really I don't want lines connection the point. thanks, Tim public class Reading { public double TotalFlow { get; set; } public double RoomPressure { get; set; } public Reading(double totalFlow, double roomPressure) { this.TotalFlow = totalFlow; this.RoomPressure = roomPressure; } } private void Go_Click(object sender, RoutedEventArgs e) { List<Reading> Readings = new List<Reading>(); Readings.Add(new Reading(114, 45)); Readings.Add(new Reading(190, 48)); Readings.Add(new Reading(76, 40)); Readings.Add(new Reading(73, 36)); Readings.Add(new Reading(79, 38)); Readings.Add(new Reading(67, 35)); Readings.Add(new Reading(65, 34)); Readings.Add(new Reading(62, 31)); this.FlowRPChart.ItemsSource = Readings; SeriesAttributes series = new SeriesAttributes(); series.Content = "Flow"; series.BindingPath = "TotalFlow"; series.BindingPathX = "RoomPressure"; FlowRPChart.Series.Add(series); FlowRPChart.AxisX.DataPath = "RoomPressure"; }
×
×
  • Create New...