Other chart features

Winnovative control offers the possibility to set the following properties:

- color of the chart background
- color of the chart area background
- transparency of the chart elements
- transparency of the legend box
- enable/disable tooltips

100 100 200 200 110 170 300 140 290 100 60 100 300 160 120 200 120 190

Source code

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
 
            // set chart data source
            WebChart1.DataSource = Winnovative.DataSources.GetTestData2();
 
            // set background color
            WebChart1.BackColor = Color.LightBlue;
            // transparency of the chart elements
            WebChart1.TransparencyLevel = 100;
 
            // set background of the chart grid area
            WebChart1.GridColor = Color.LightYellow;
 
            // show legend box
            WebChart1.LegendBox.Visible = true;
            WebChart1.LegendBox.Margins.Bottom = 300;
            WebChart1.LegendBox.TransparencyLevel = 100;
 
            // display tooltips
            WebChart1.Tooltips.Visible = true;
 
        }
    }