protected void Page_Load(object sender, EventArgs e)
    {
        OpenFlashChart.OpenFlashChart chart = new OpenFlashChart.OpenFlashChart();
        chart.Title = new Title("Bar Chart");

        HBar bar = new OpenFlashChart.HBar();
        bar.Colour = "#345";

        bar.FillAlpha = 0.4;
        bar.Text = "Test";

        bar.FontSize = 10;
        bar.Add(new HBarValue(0,5));
        bar.Add(new HBarValue(6, 8));
        bar.Add(new HBarValue(8, 10));
        chart.AddElement(bar);
        //chart.Y_Axis.SetLabels(new string[] { "hbar1", "hbar2", "hbar3" });
        //chart.Y_Axis.Labels.Steps = 3;
        chart.Tooltip = new ToolTip("提示:#val#");
        string s = chart.ToPrettyString();

        Response.Clear();
        Response.CacheControl = "no-cache";
        Response.Write(s);
        Response.End();
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        OpenFlashChart.OpenFlashChart chart = new OpenFlashChart.OpenFlashChart();
        chart.Title = new Title("Bar Chart");

        HBar bar = new OpenFlashChart.HBar();

        bar.Colour = "#345";

        bar.FillAlpha = 0.4;
        bar.Text      = "Test";

        bar.FontSize = 10;
        bar.Add(new HBarValue(0, 5));
        bar.Add(new HBarValue(6, 8));
        bar.Add(new HBarValue(8, 10));
        chart.AddElement(bar);
        //chart.Y_Axis.SetLabels(new string[] { "hbar1", "hbar2", "hbar3" });
        //chart.Y_Axis.Labels.Steps = 3;
        chart.Tooltip = new ToolTip("提示:#val#");
        string s = chart.ToPrettyString();

        Response.Clear();
        Response.CacheControl = "no-cache";
        Response.Write(s);
        Response.End();
    }