Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }