/// <summary> /// Réalise le rendu d'un cude. /// </summary> /// <param name="hyperCube">HyperCupe à rendre.</param> /// <param name="context">Context courant de la requête.</param> /// <param name="s">Stream de sortie.</param> internal static void RenderGraph(IHyperCube hyperCube, Context context, Stream s) { TimeLevel level = TimeLevel.ValueOf(context.Level); CounterCubeCriteria criteria = new CounterCubeCriteria(context.RequestName, level); if (context.Content.Equals("sparklines.png")) { HtmlGraphHelper.RenderGraphSparklines(context, hyperCube, criteria, s); } else { throw new NotSupportedException(); } }
/// <summary> /// Rendu de graphique selon les paramètres dans la requête http. /// </summary> /// <param name="hyperCube">Hypercube.</param> /// <param name="context">Context courant de la requête.</param> /// <param name="s">Stream.</param> internal static void ToChart(IHyperCube hyperCube, Context context, Stream s) { HtmlGraphHelper.RenderGraph(hyperCube, context, s); }