public object GetResponse(WebService service) { StrategyComparisonResults comparisonResults = service.GetResultsFor(this); var options = GoogleChartsHelper.GetLineGraphOptions( "Point Spread", "Score", "Percentage", comparisonResults.pointSpreadHistogramData.GetXAxis(), comparisonResults.pointSpreadHistogramData.GetYAxis()); return(options); }
public object GetResponse(WebService service) { StrategyComparisonResults comparisonResults = service.GetResultsFor(this); int maxTurn = comparisonResults.gameEndOnTurnHistogramData.GetXAxisValueCoveringUpTo(97); var options = GoogleChartsHelper.GetLineGraphOptions( "Probability of Game Ending on Turn", "Score", "Percentage", comparisonResults.gameEndOnTurnHistogramData.GetXAxis(maxTurn), comparisonResults.gameEndOnTurnHistogramData.GetYAxis(maxTurn)); return(options); }
protected object GetLineGraphData( StrategyComparisonResults comparisonResults, string title, ForwardAndReversePerTurnPlayerCounters counters) { if (!counters.forwardTotal.HasNonZeroData) { return(null); } int maxTurn = comparisonResults.gameEndOnTurnHistogramData.GetXAxisValueCoveringUpTo(97); var options = GoogleChartsHelper.GetLineGraphOptions( "title", comparisonResults.comparison.playerActions[0].PlayerName, comparisonResults.comparison.playerActions[1].PlayerName, counters, comparisonResults.statGatherer.turnCounters, maxTurn); return(options); }