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
space between first column and Y Axis, Labels Problem
posted

hello,

with ColumnSpacing i have space between each Column. And then with FillSceneGraph space between first Column and Y Axis but sincce i change that i have problem with the

ColumnChart.Axis.X.Labels.Layout.Padding = 5; some Labels (Date.ToShortDateString()) are display (07.08.2009) some labels partially like this : 07.08...

FillScene Event:

        private void Chart_FillSceneGraph(object sender, FillSceneGraphEventArgs e)
        {
            Axis yAxis = e.Grid["Y"] as Axis;
            foreach (Primitive currentPrimitive in e.SceneGraph)
            {
                Line l = currentPrimitive as Line;
                if (l != null && l.p1.Y == l.p2.Y)
                {
                    l.p1.X = yAxis.startPoint.X;
                }

            }

        }

PRELOAD FILE:

<?xml version="1.0" encoding="utf-8" ?>
<igchart:UltraChart BackColor="White" ChartType="ColumnChart" BackgroundImageFileName=""
        BorderColor="Black" BorderWidth="0px"
        EmptyChartText="Data Not Available. "
        Version="9.1">
    <Axis>
        <PE ElementType="None" Fill="Cornsilk" />
        <X Extent="58" LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart"
            Visible="True" RangeMin="0" RangeMax="0">
            <Margin>
                <Far Value="3.0303030303030303" />
            </Margin>
            <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot"
                Thickness="1" Visible="True" />
            <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot"
                Thickness="1" Visible="False" />
            <Labels Font="Microsoft Sans Serif, 7.8pt" FontColor="black" HorizontalAlign="Near"
                ItemFormatString="&lt;ITEM_LABEL&gt;" Orientation="VerticalLeftFacing"
                VerticalAlign="Center">
                <SeriesLabels Font="Microsoft Sans Serif, 7.8pt" FontColor="black" HorizontalAlign="Center"
                    Orientation="Horizontal" VerticalAlign="Center">
                    <Layout Behavior="Auto">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
        </X>
        <Y Extent="60" LineThickness="1" TickmarkInterval="10" TickmarkStyle="Smart"
            Visible="True" RangeMin="0" RangeMax="0">
            <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, 9pt" FontColor="black" HorizontalAlign="Far"
                ItemFormatString="&lt;DATA_VALUE:00.##&gt;" Orientation="Horizontal"
                VerticalAlign="Center">
                <SeriesLabels Font="Verdana, 9pt" FontColor="black" HorizontalAlign="Center"
                    Orientation="VerticalLeftFacing" VerticalAlign="Center">
                    <Layout Behavior="Auto">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
        </Y>
        <Y2 LineThickness="1" TickmarkInterval="10" 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, 9pt" FontColor="black" HorizontalAlign="Near"
                ItemFormatString="&lt;DATA_VALUE:00.##&gt;" Orientation="Horizontal"
                VerticalAlign="Center" Visible="False">
                <SeriesLabels Font="Verdana, 9pt" FontColor="black" HorizontalAlign="Center"
                    Orientation="VerticalLeftFacing" VerticalAlign="Center">
                    <Layout Behavior="Auto">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
        </Y2>
        <X2 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="Far"
                ItemFormatString="&lt;ITEM_LABEL&gt;" Orientation="VerticalLeftFacing"
                VerticalAlign="Center" Visible="False">
                <SeriesLabels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Center"
                    Orientation="Horizontal" 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, 7pt" FontColor="DimGray" HorizontalAlign="Near"
                ItemFormatString="" Orientation="Horizontal" VerticalAlign="Center">
                <SeriesLabels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Center"
                    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, 7pt" FontColor="Gray" HorizontalAlign="Near"
                ItemFormatString="" Orientation="Horizontal" VerticalAlign="Center"
                Visible="False">
                <SeriesLabels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Center"
                    Orientation="Horizontal" VerticalAlign="Center">
                    <Layout Behavior="Auto">
                    </Layout>
                </SeriesLabels>
                <Layout Behavior="Auto">
                </Layout>
            </Labels>
        </Z2>
    </Axis>
    <Data SwapRowsAndColumns="True">
    </Data>
    <Border Thickness="0" />
    <DeploymentScenario Scenario="FileSystem" ImageURL="../../../Content/ChartImages/Chart_#SEQNUM(100).png"
ImageType="Png" FilePath="..\..\..\Content\ChartImages"></DeploymentScenario>
    <Tooltips Font-Bold="False" Font-Italic="False" Font-Overline="False"
        Font-Strikeout="False" Font-Underline="False" />
</igchart:UltraChart>

 

Thanks for

Parents
No Data
Reply
  • 28496
    Offline posted

    you might have better results if you try changing the Orientation of your axis labels. 

    or, try:

    Axis.X.Labels.Layout.Behavior = None

Children
No Data