ComponentOne CandlestickChart for ASP.NET Web Forms
Quick Start / Step 3 of 4: Customizing the CandlestickChart
In This Topic
    Step 3 of 4: Customizing the CandlestickChart
    In This Topic

    In this topic you will customize the axis annotation.

    1. Click the C1CandlestickChart's smart tag again and select the Series Styles option from the CandlestickChart Tasks Menu. The Candlestick Chart Style Collection Editor will open.
    2. Click Add to create a CandlestickChartStyle Series in the right-hand pane of the collection editor. There will be six style options in the left-hand pane:  

    1.  Select the Close property and open the options by clicking the drop-down arrow. There are many options available that allow you to customize the look of your C1CandlestickChart. For this Quick Start, you'll focus on the Fill properties. Click the drop-down arrow next to the Fill property.
    2. Locate the Color property in the list. You can either enter a color name, or you can click the ellipses button  to open the More Colors dialog box and select a color.
    3. Locate the Width property and enter a numeric value for the width.
    4. Repeat the steps above for the rest of the Style option properties, and then click OK to add the styles to your control. The added markup will resemble the following:
    Copy Code
            <HighLow Width="6">
                <Fill Color="#339933"></Fill>
            <Open Width="10">
                <Fill Color="#99CCFF"></Fill>
            <Close Width="5">
                <Fill Color="Blue"></Fill>
            <FallingClose Width="9">
                <Fill Color="Fuchsia"></Fill>
            <RaisingClose Width="8">
                <Fill Color="#660066"></Fill>
            <UnchangeClose Width="4">
                <Fill Color="#336600"></Fill>
    1. If you're not already in Source View, switch to that view. Add the following markup just above your closing </cc1 C1CandlestickChart> tag. This markup will change the appearance of your chart's axes:

    Copy Code
            <GridMajor Visible="True"></GridMajor>
            <GridMinor Visible="True"></GridMinor>
            <TickMajor Position="Cross">
        <Y Visible="False" Compass="West">
            <Labels TextAlign="Center"></Labels>
            <GridMajor Visible="True"></GridMajor>
            <GridMinor Visible="False"></GridMinor>

    In this topic, you used both the Candlestick Chart Style Collection Editor and adding markup to customize your C1CandlestickChart control. In the next step, you'll run your project.

    See Also