RadHtmlChart- Column width

3 posts, 0 answers
  1. Leg
    Leg avatar
    3 posts
    Member since:
    Oct 2013

    Posted 31 Oct 2013 Link to this post

    Good nigth

    I am using RadHtmlChart Column Chart and i want to know if it is possible to change the collums width to be like a Vertical Line ( 1px)

    Best Regards,

    Jose
  2. Stamo Gochev
    Admin
    Stamo Gochev avatar
    157 posts

    Posted 04 Nov 2013 Link to this post

    Hello,

    I have already answered the question in your support ticket, so I am posting the answer here as it might be useful to other clients.

    The described configuration is not currently supported in RadHtmlChart, but you can achieve a similar appearance by using the "gap" property of the series on the client-side like this:
    Copy Code
    <script type="text/javascript">
        function pageLoad() {
            //get the chart
            var chart = $find("<%= Chart.ClientID %>");
            //set the "gap" property of the first series, i.e. the ColumnSeries in our case
            chart._chartObject.options.series[0].gap = 50;
            //repaint the chart to apply the changes
            chart.repaint();
        }
    </script>
    You can specify whatever "gap" value you want. I also attach a sample page, so you can test my suggestion on your own.

    You can also vote for this functionality in our Feedback portal.

    Regards,
    Stamo Gochev
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Leg
    Leg avatar
    3 posts
    Member since:
    Oct 2013

    Posted 04 Nov 2013 Link to this post

    Hello,

    Yes i saw!
    Thanks for your help that solved my problem.

    Best Regards,

    Jose
Back to Top