how to close right side of radHtmlChart?

4 posts, 0 answers
  1. Doug
    Doug avatar
    68 posts
    Member since:
    Aug 2014

    Posted 31 Jul 2015 Link to this post

    my chart has open end on right side.
    how can I tell it to close the plot area?
  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 03 Aug 2015 Link to this post

    Hi Doug,

    I am not sure I understand the exact problem properly. Can you, please, provide a little more information on the exact scenario in which the issue occurs? Can you provide us he exact markup needed to replicate the case so we can examine it on our side? Some screenshots of the problem will be also of great help in investigating the case.

    Regards,
    Vessy
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Doug
    Doug avatar
    68 posts
    Member since:
    Aug 2014

    Posted 03 Aug 2015 in reply to Vessy Link to this post

    all I added to a line series is
    <MajorGridLines Visible="false" />
    <MinorGridLines Visible="false"/>
  5. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 06 Aug 2015 Link to this post

    Hi Doug,

    Thank you for the clarification. A possible way to show only the last YAxis MajorGridLine is to keep the major GridLines visible, but set its step to the maximum value of the YAxis. For example:
    <telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="800px" Height="500px">
        <PlotArea>
            <Series>
                <telerik:BarSeries Name="Serie 1" DataFieldY="Quarter1">
                    <Items>
                        <telerik:SeriesItem Name="Quarter1" YValue="15" />
                        <telerik:SeriesItem Name="Quarter2" YValue="150" />
                        <telerik:SeriesItem Name="Quarter2" YValue="50" />
     
                    </Items>
                </telerik:BarSeries>
            </Series>
            <YAxis MaxValue="200" Step="200">
                <MajorGridLines Visible="true" />
                <MinorGridLines Visible="false" />
            </YAxis>
        </PlotArea>
        <ChartTitle Text="Charge current vs. charge time">
        </ChartTitle>
    </telerik:RadHtmlChart>

    I hope this helps.

    Regards,
    Vessy
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top