This is a migrated thread and some comments may be shown as answers.

RadHtmlChart- Column width

2 Answers 124 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Leg
Top achievements
Rank 1
Leg asked on 31 Oct 2013, 07:53 PM
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 Answers, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 04 Nov 2013, 11:09 AM
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.
0
Leg
Top achievements
Rank 1
answered on 04 Nov 2013, 12:38 PM
Hello,

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

Best Regards,

Jose
Tags
Chart (HTML5)
Asked by
Leg
Top achievements
Rank 1
Answers by
Stamo Gochev
Telerik team
Leg
Top achievements
Rank 1
Share this question
or