BarChart for ASP.NET WebForms
Using the Origin to Display Positive and Negative Axes Values
Task-Based Help > Axis Tasks > Using the Origin to Display Positive and Negative Axes Values

Use the Origin property to tell the axis where to draw its starting point. This is optimal for displaying positive and negative values on the same chart.

To set the Origin property in design view:

  1. Add a reference to the C1.Web.Wijmo.Controls.Design.3.dll to your project.
  2. Add the C1BarChart from the toolbox to your page. For more information on adding the C1BarChart icon to your Toolbox, see Getting Started with ASP.NET Web Forms Edition.
  3. In the C1BarChart properties window expand the Axis->X node and set the Origin property to 2.6.
  4. In the C1BarChart properties window expand the Axis->Y node and set the Origin property to 0 and Alignment to Far.

To set the Origin property in source view:

  1. Add a reference to the C1.Web.Wijmo.Controls.Design.3.dll to your project.
  2. Add the C1BarChart from the toolbox to your page. For more information on adding the C1BarChart icon to your Toolbox, see Getting Started with ASP.NET Web Forms.
  3. Click the Source tab and add the following code within the <Axis> tags:

    To write code in Source View

    <Axis>
    <X Origin="2.6"></X>
    <Y Alignment="Far" Visible="true" Origin="0"></Y>
    </Axis>
See Also