In Y axis data is repeated as 00 00 00 00 00 01 01 01 01 01, the data should be 00,01 02 .... Here i cant set Min Range and Max Range.
Please help to solve the above problem Iam using UltraChart 9.2 .
Thanks in advance
Regards and Thanks
Paul Sussil
Hi,
I'm not sure how you produce this behavior. Are you using some label text formating? Can you send me some code to reproduce it so I could review it locally. Thank you!
Good Day,
Thanks for your quick response
My chart code looks like:
<
ForeColor="Black" Version="9.1" BackgroundImageFileName="" Width="475px">
<Border CornerRadius="5"></Border>
<TitleRight Visible="True" Location="Right">
</TitleRight>
<Data DataMember="" SwapRowsAndColumns="False" UseMinMax="False" UseRowLabelsColumn="False"
MinValue="-1.7976931348623157E+308" RowLabelsColumn="-1" ZeroAligned="False"
MaxValue="1.7976931348623157E+308">
<EmptyStyle Text="Empty" EnableLineStyle="False" ShowInLegend="False" EnablePE="False"
EnablePoint="False">
<PointPE 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"></PointPE>
<PointStyle CharacterFont="Microsoft Sans Serif, 7.8pt"></PointStyle>
<LineStyle MidPointAnchors="False" EndStyle="NoAnchor" DrawStyle="Dash" StartStyle="NoAnchor">
</LineStyle>
<PE FillGradientStyle="None" FillOpacity="255" FillStopOpacity="255" ElementType="SolidFill"
ImageWrapMode="Tile" TextureApplication="Normal"></PE>
</EmptyStyle>
</Data>
<TitleLeft Visible="True" HorizontalAlign="Center" Location="Left">
</TitleLeft>
<ColorModel AlphaLevel="150" ModelStyle="CustomSkin">
<Skin ApplyRowWise="False">
<PEs>
<igchartprop:PaintElement ElementType="Gradient" Fill="108, 162, 36" FillGradientStyle="Vertical"
FillStopColor="148, 244, 17">
</igchartprop:PaintElement>
<igchartprop:PaintElement ElementType="Gradient" Fill="7, 108, 176" FillGradientStyle="Vertical"
FillStopColor="53, 200, 255">
<igchartprop:PaintElement ElementType="Gradient" Fill="230, 190, 2" FillGradientStyle="Vertical"
FillStopColor="255, 255, 81">
<igchartprop:PaintElement ElementType="Gradient" Fill="215, 0, 5" FillGradientStyle="Vertical"
FillStopColor="254, 117, 16">
<igchartprop:PaintElement ElementType="Gradient" Fill="252, 122, 10" FillGradientStyle="Vertical"
FillStopColor="255, 108, 66">
</PEs>
</Skin>
</ColorModel>
<Legend SpanPercentage="15" DataAssociation="ColumnData" Visible="True" Location="Bottom"
BackgroundColor="Window" BorderColor="Window"></Legend>
<Axis>
<Y LineEndCapStyle="Flat" Visible="True" TickmarkInterval="20" LineThickness="1"
Extent="60" TickmarkStyle="Smart" RangeMin="0" LogBase="10" LogZero="0" RangeMax="0"
NumericAxisType="Linear">
<Labels ItemFormatString="<DATA_VALUE:00>" VerticalAlign="Center" Font="Verdana, 7pt"
Orientation="Horizontal" HorizontalAlign="Far">
<SeriesLabels Font="Verdana, 7pt" HorizontalAlign="Far" Orientation="VerticalLeftFacing"
VerticalAlign="Near" FormatString="">
</SeriesLabels>
</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>
</Y>
<Y2 Visible="False" TickmarkInterval="0">
<Labels ItemFormatString="<DATA_VALUE:00.##>" VerticalAlign="Center" Orientation="Horizontal"
HorizontalAlign="Near" Visible="False">
<SeriesLabels HorizontalAlign="Near" Orientation="VerticalLeftFacing" VerticalAlign="Center"
FormatString="<SERIES_LABEL>">
</Y2>
<X2 Visible="False" TickmarkInterval="0">
<Labels ItemFormatString="<ITEM_LABEL>" VerticalAlign="Center" Orientation="VerticalLeftFacing"
HorizontalAlign="Far" Visible="False">
<SeriesLabels HorizontalAlign="Center" Orientation="Horizontal" VerticalAlign="Center">
</X2>
<Z2 Visible="False" TickmarkInterval="0">
<Labels ItemFormatString="<ITEM_LABEL>" VerticalAlign="Center" Orientation="Horizontal"
<SeriesLabels HorizontalAlign="Near" Orientation="Horizontal" VerticalAlign="Center">
</Z2>
<Z Visible="False" TickmarkInterval="0">
</Z>
<X LineEndCapStyle="Flat" Visible="True" TickmarkInterval="1" LineThickness="1" Extent="30"
TickmarkStyle="Smart">
<Labels VerticalAlign="Near" Font="Verdana, 8pt, style=Bold" Orientation="Horizontal"
HorizontalAlign="Near" ItemFormatString="<ITEM_LABEL>">
<MajorGridLines AlphaLevel="255" DrawStyle="Dot" Color="Gainsboro" Visible="False"
</X>
<PE ElementType="None" Fill="Cornsilk" />
</Axis>
<TitleBottom Visible="False" HorizontalAlign="Far" Location="Bottom">
</TitleBottom>
<TitleTop Visible="False">
</TitleTop>
<Tooltips Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<DeploymentScenario ImageURL="..\ECHSCharts/Chart_#SEQNUM(100).png" FilePath="..\ECHSCharts\" />
</igchart:UltraChart>
My DataTable looks like:
UltraChart1.DataSource = dt
UltraChart1.DataBind()
With Regards
Hi Paul,
Thank you for the code!
By default the y axis has set ItemFormatString="<DATA_VALUE:00>" and as I see your data has set only 1s which makes the observed behavior. If you set it to be
ItemFormatString="<DATA_VALUE>",
you will see the exact interval values of the y axis.
Let me know if you have further problems.
Thanks for your suggestion.
I have modified the code, data repetition problem solved but i didnt get actual output. My client requirement is not solved fully. Now am getting chart like
My client requirement is in Y axis the data should be in whole or integer value not in double ,i.e 1,2,3...
Hi Sandman,
Thank you for your prompt response.
I have added the options that you have suggested
1) TickmarkInterval="1"
2) ItemFormatString="<DATA_VALUE:00>"
Now, I am seem to be getting a new problem; the labels are being repeated in Y Axis; for example, the values 01, 02, 03, 04 are repeated twice as shown in the attached image...
thanks
You should set the following y axis properties:
TickmarkStyle="DataInterval" TickmarkInterval="1"
and keep the default y axis label
ItemFormatString="<DATA_VALUE:00>"
As I see your data has only 1s, so the y axis will show 00 and 01. If you provide bigger y axis value data, you will observed the desired behavior.