user503853
user503853

Reputation:

How to disable Fusioncharts legend area?

How can I disable/remove the legend area when using FusionCharts? I'll be using a very small chart, so the legend area is not necessary.

Upvotes: 2

Views: 2885

Answers (2)

Manjula D
Manjula D

Reputation: 57

How to set Show legend property to my Fusion Graph.My code like this.

   public Pie2DChart GetServiceEsclationChart(DataTable BarChartdt, string CaseType)
    {
        Pie2DChart oChart3 = new Pie2DChart();

        // Set properties
        oChart3.Background.BgColor = "ffffff";
        oChart3.Background.BgAlpha = 50;
        oChart3.ChartTitles.Caption = "Case Type Count";
        oChart3.ChartTitles.Caption = CaseType;
        // oChart.ChartTitles.SubCaption = "2013-2014 Year";

        // Set a template
        oChart3.Template = new Libero.FusionCharts.Template.OfficeTemplate();

        // Set data             
        oChart3.DataSource = BarChartdt;
        oChart3.DataTextField = "Name";
        oChart3.DataValueField = "Value";


        //Load it into ViewData.
        // ViewData["SREsclation"] = oChart3;
        return oChart3;
    }

Upvotes: 0

Josh
Josh

Reputation: 5721

Adding a showLegend='0' tag should disable it. Use it like this:

<chart showLegend='0'...>

Check out FusionCharts Legend API for more help on legends.

Upvotes: 7

Related Questions