/// <summary> /// Adds a line series to the given line graph /// </summary> /// <param name="lineGraph">The ID of the line graph</param> /// <param name="title">The series name</param> /// <param name="x">The x coords</param> /// <param name="y">The y coords</param> /// <param name="style">A custom style for the series</param> /// <returns>True if successful, False otherwise</returns> public bool Plot(Guid lineGraph, string title, List <double> x, List <double> y, LineStyle style) { return(service.PlotWithStyle(lineGraph, title, x, y, style)); }
/// <summary> /// Adds a line series to the given line graph /// </summary> /// <param name="lineGraph">The ID of the line graph</param> /// <param name="title">The series name</param> /// <param name="x">The x coords</param> /// <param name="y">The y coords</param> /// <param name="style">A custom style for the series</param> /// <returns>True if successful, False otherwise</returns> public bool AddSeries(Guid lineGraph, string title, List <double> x, List <double> y, LineStyle style) { if (_plotViewDictionary.ContainsKey(lineGraph)) { ((LineGraph)_plotViewDictionary[lineGraph]).AddSeries(x, y, title, style); return(true); } return(false); }
public bool PlotWithStyle(Guid lineGraph, string title, List <double> x, List <double> y, LineStyle style) { try { return(Channel.PlotWithStyle(lineGraph, title, x, y, style)); } catch (Exception) { return(false); } }
/// <summary> /// Adds a line series to the given line graph /// </summary> /// <param name="lineGraph">The ID of the line graph</param> /// <param name="title">The series name</param> /// <param name="x">The x coords</param> /// <param name="y">The y coords</param> /// <param name="style">A custom style for the series</param> /// <returns>True if successful, False otherwise</returns> public bool PlotWithStyle(Guid lineGraph, string title, List <double> x, List <double> y, LineStyle style) { return(AddSeries(lineGraph, title, x, y, style)); }