private static void InsertHistogram( HtmlRenderer htmlWriter, string title, string xAxisLabel, HistogramData data, int xAxisMaxValue, bool colllapsebyDefault = true, HtmlContentInserter content = null) { htmlWriter.InsertExpander(title, delegate() { htmlWriter.InsertLineGraph( title, "Turn", xAxisLabel, data.GetXAxis(xAxisMaxValue), data.GetYAxis(xAxisMaxValue) ); if (content != null) { content(); } }, collapseByDefault: colllapsebyDefault); }
private static void InsertHistogramIntegrated( HtmlRenderer htmlWriter, string title, string xAxisLabel, HistogramData data, int xAxisMaxValue) { htmlWriter.InsertExpander(title, delegate() { htmlWriter.InsertLineGraph( title, "Turn", xAxisLabel, data.GetXAxis(xAxisMaxValue), data.GetYAxisIntegrated(xAxisMaxValue) ); }, collapseByDefault: true); }