- // exemple d'utilisation
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.HtmlControls;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Xml.Linq;
-
- public partial class TestChart : System.Web.UI.Page
- {
- HistogramChart c = new HistogramChart(ChartsOrientation.Vertical, new System.Drawing.Size(700, 400), "Test histogramme ayant une orientation verticale !!", "graphHisto.png");
- HistogramChart c2 = new HistogramChart(ChartsOrientation.Horizontal, new System.Drawing.Size(600, 400), "Test histogramme ayant une orientation horiontal !!", "graphHisto2.png");
-
- Image img = new Image();
-
- protected void Page_Load(object sender, EventArgs e)
- {
- // graphique test
- object[,] val = new object[,] { {12,23,54},
- {22,12,10},
- {19,60,40},
- {89,40,20},
- {86,30,43},
- {120,105,11}};
-
- // set value
- c.Values = val;
- c2.Values = val;
-
-
- // set item for X axis
- object[] items = new object[] { "A1", "A2", "A3"};
- c.ItemAxeX = items;
- c2.ItemAxeX = items;
-
- // nombre de tranche dans l'axe y
- // le nombre de tranche pour l'axe x est définie automatiquement
- c.NbTranchePartieNonDefinie = 15;
- c2.NbTranchePartieNonDefinie = 15;
-
- // ecart de valeur entre une entre A et B
- c.StepValue = 10;
- c2.StepValue = 10;
-
- // nb baton par tranche
- c.NbBatonParTranche = 3;
- c2.NbBatonParTranche = 3;
-
- // trace
- c.Trace();
- c2.Trace();
- this.ImageGraph.ImageUrl = this.c.Filename;
- this.ImageGraph2.ImageUrl = this.c2.Filename;
- }
- }
// exemple d'utilisation
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class TestChart : System.Web.UI.Page
{
HistogramChart c = new HistogramChart(ChartsOrientation.Vertical, new System.Drawing.Size(700, 400), "Test histogramme ayant une orientation verticale !!", "graphHisto.png");
HistogramChart c2 = new HistogramChart(ChartsOrientation.Horizontal, new System.Drawing.Size(600, 400), "Test histogramme ayant une orientation horiontal !!", "graphHisto2.png");
Image img = new Image();
protected void Page_Load(object sender, EventArgs e)
{
// graphique test
object[,] val = new object[,] { {12,23,54},
{22,12,10},
{19,60,40},
{89,40,20},
{86,30,43},
{120,105,11}};
// set value
c.Values = val;
c2.Values = val;
// set item for X axis
object[] items = new object[] { "A1", "A2", "A3"};
c.ItemAxeX = items;
c2.ItemAxeX = items;
// nombre de tranche dans l'axe y
// le nombre de tranche pour l'axe x est définie automatiquement
c.NbTranchePartieNonDefinie = 15;
c2.NbTranchePartieNonDefinie = 15;
// ecart de valeur entre une entre A et B
c.StepValue = 10;
c2.StepValue = 10;
// nb baton par tranche
c.NbBatonParTranche = 3;
c2.NbBatonParTranche = 3;
// trace
c.Trace();
c2.Trace();
this.ImageGraph.ImageUrl = this.c.Filename;
this.ImageGraph2.ImageUrl = this.c2.Filename;
}
}