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:
- Add a reference to the C1.Web.Wijmo.Controls.Design.4.dll to your project.
- 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.
- In the C1CandlestickChart properties window expand the Axis->X node and set the Origin property to 2.6.
- In the C1CandlestickChart 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:
- Add a reference to the C1.Web.Wijmo.Controls.Design.4.dll to your project.
- 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.
- 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