ComponentOne CandlestickChart for ASP.NET Web Forms
Candlestick Chart Elements / Axes / Axis Appearance / Displaying Positive and Negative Axes Values
In This Topic
    Displaying Positive and Negative Axes Values
    In This Topic

    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.

    1. Add a reference to the C1.Web.Wijmo.Controls.Design.4.dll to your project.
    2. Add the C1CandlestickChart from the toolbox to your page. For more information on adding the C1CandlestickChart icon to your Toolbox, see Getting Started with ASP.NET Web Forms Edition.
    3. In the C1CandlestickChart properties window expand the Axis->X  node and set the Origin property to 2.6.
    4. In the C1CandlestickChart properties window expand the Axis->Y  node and set the Origin property to 0 and Alignment to Far.
    1. Add a reference to the C1.Web.Wijmo.Controls.Design.4.dll to your project.
    2. Add the C1CandlestickChart from the toolbox to your page. For more information on adding the C1CandlestickChart icon to your Toolbox, see Getting Started with ASP.NET Web Forms Edition.
    3. Click the Source tab and add the following code within the <Axis> tags:
      Markup
      Copy Code
      <Axis>
          <X Origin="2.6" ></X>
          <Y Alignment="Far" Visible="true" Origin="0" ></Y>
      </Axis>
      

     

    See Also