Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1004
TickmarkInterval StackBarChart
posted

1)the TickmarkInterval didnt work and i dont know. i constate that it work when the legend is rigth or left.

2) and when all my data value are null, i am getting on X Axis just 0 and 1 but i want to maintain the interval and rangemax to 100.

<igchart:UltraChart BackColor="White" BackgroundImageFileName="" BorderColor="Black"
    BorderWidth="0px" ChartType="StackBarChart" EmptyChartText="Data Not Available."
    Version="9.1">
    <Legend Visible="True" Location="Bottom"></Legend>
    <ColorModel AlphaLevel="150" ColorBegin="Pink" ColorEnd="DarkRed" ModelStyle="CustomLinear">
    </ColorModel>
    <Axis>
        <X LineThickness="1" TickmarkInterval="20" TickmarkStyle="Smart" Visible="True">
            <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot"
                Thickness="1" Visible="True" />
            <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot"
                Thickness="1" Visible="False" />
            <Labels Font="Verdana, 7.8pt" FontColor="Black" HorizontalAlign="Far"
                ItemFormatString="&lt;DATA_VALUE:n0&gt;" Orientation="VerticalLeftFacing"
                VerticalAlign="Center">
                <SeriesLabels Font="Verdana, 7.8pt" FontColor="Black" FormatString=""
                    HorizontalAlign="Far" Orientation="Horizontal" VerticalAlign="Center">
                    <Layout Behavior="None">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="None">
                </Layout>
            </Labels>
        </X>
        <Y LineEndCapStyle="NoAnchor" LineDrawStyle="Solid" Visible="True" RangeMin="0" LineColor="Black" RangeType="Automatic" TickmarkInterval="50" LineThickness="1" Extent="150" LogBase="10" RangeMax="0" TickmarkStyle="Smart" TickmarkPercentage="10" NumericAxisType="Linear">
            <StripLines Interval="2" Visible="False">
                <PE FillGradientStyle="None" FillOpacity="255" FillStopOpacity="255" ElementType="SolidFill" Fill="Transparent" Hatch="None" Texture="LightGrain" ImageFitStyle="StretchedFit" FillStopColor="Transparent" StrokeOpacity="255" ImagePath="" Stroke="Black" StrokeWidth="1" ImageWrapMode="Tile" TextureApplication="Normal"></PE>
            </StripLines>
            <ScrollScale Scale="1" Scroll="0" Height="10" Width="15" Visible="False"></ScrollScale>
            <Labels ItemFormatString="&lt;ITEM_LABEL&gt;" VerticalAlign="Center" WrapText="False" FontSizeBestFit="False" SeriesFormatString="&lt;SERIES_LABEL&gt;" ClipText="True" Font="Verdana, 7pt" Flip="False" ItemFormat="ItemLabel" FontColor="Black" Orientation="Horizontal" Visible="True" OrientationAngle="0" HorizontalAlign="Far">
                <SeriesLabels Font="Verdana, 7pt" Visible="True" HorizontalAlign="Center" FontSizeBestFit="False" ClipText="True" FormatString="&lt;SERIES_LABEL&gt;" Orientation="VerticalLeftFacing" WrapText="False" Flip="False" FontColor="Black" VerticalAlign="Near" OrientationAngle="0"></SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
            <MajorGridLines AlphaLevel="255" DrawStyle="Dot" Color="Gainsboro" Visible="True" Thickness="1"></MajorGridLines>
            <MinorGridLines AlphaLevel="255" DrawStyle="Dot" Color="LightGray" Visible="False" Thickness="1"></MinorGridLines>
            <TimeAxisStyle TimeAxisStyle="Continuous"></TimeAxisStyle>
            <Margin>
                <Far MarginType="Percentage" Value="0"></Far>
                <Near MarginType="Percentage" Value="0"></Near>
            </Margin>
        </Y>
        <Y2 LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="False">
            <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1"
                Visible="True" />
            <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1"
                Visible="False" />
            <Labels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near" ItemFormatString="&lt;ITEM_LABEL&gt;"
                Orientation="Horizontal" VerticalAlign="Center" Visible="False">
                <SeriesLabels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near" Orientation="Horizontal"
                    VerticalAlign="Center">
                    <Layout Behavior="Auto">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
        </Y2>
        <X2 LineThickness="1" TickmarkInterval="200" TickmarkStyle="Smart" Visible="False">
            <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1"
                Visible="True" />
            <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1"
                Visible="False" />
            <Labels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Far" ItemFormatString="&lt;DATA_VALUE:00.##&gt;"
                Orientation="VerticalLeftFacing" VerticalAlign="Center" Visible="False">
                <SeriesLabels Font="Verdana, 7pt" FontColor="Gray" FormatString="" HorizontalAlign="Far"
                    Orientation="VerticalLeftFacing" VerticalAlign="Center">
                    <Layout Behavior="Auto">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
        </X2>
        <Z LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="False">
            <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1"
                Visible="True" />
            <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1"
                Visible="False" />
            <Labels Font="Verdana, 7.8pt" FontColor="Black" HorizontalAlign="Near" ItemFormatString=""
                Orientation="Horizontal" VerticalAlign="Center" Visible="False">
                <SeriesLabels Font="Verdana, 7.8pt" FontColor="Black" HorizontalAlign="Near" Orientation="Horizontal"
                    VerticalAlign="Center">
                    <Layout Behavior="Auto">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
        </Z>
        <Z2 LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="False">
            <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1"
                Visible="True" />
            <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1"
                Visible="False" />
            <Labels Font="Verdana, 7.8pt" FontColor="Black" HorizontalAlign="Near" ItemFormatString=""
                Orientation="Horizontal" VerticalAlign="Center" Visible="False">
                <SeriesLabels Font="Verdana, 7.8pt" FontColor="Black" HorizontalAlign="Near" Orientation="Horizontal"
                    VerticalAlign="Center">
                    <Layout Behavior="Auto">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
        </Z2>
    </Axis>
    <TitleBottom Visible="False">
    </TitleBottom>
    <Tooltips BorderThickness="1" Overflow="None" FormatString="&lt;DATA_VALUE:00.##&gt;" EnableFadingEffect="False" FontColor="Black" BorderColor="Black" Display="MouseMove" BackColor="AntiqueWhite" Padding="0"></Tooltips>
</igchart:UltraChart>

thanks

Parents
No Data
Reply
  • 26458
    Suggested Answer
    Offline posted

    Setting TickmarkInterval has no effect when TickmarkStyle is set to Smart. It has to be set to DataInterval for the interval to take effect.

    The only way to set an explicit range on the axis from 0 to 100 is to set
    axis.RangeMin = 0
    axis.RangeMax = 100
    axis.RangeType = AxisRangeType.Custom

Children
No Data