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

White gaps at begin and end

2 Answers 44 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Erick
Top achievements
Rank 2
Erick asked on 19 Aug 2016, 04:26 PM

Hi,

We're using your radhtmlchart to display subscriptions data by month, and this data is dynamically. Sometimes, there is a huge white gap at beginning and ending of the chart which i can't remove (see the attachment). 

For the X axis, i have set the MaxDate and MinDate values with the first and last possible dates and tried to set Step config but it don't works. The MinValue and MaxValue for Y axis works as expected.

Is there something i can try to minimalize this white gaps?

Kind regards,

Jelle

2 Answers, 1 is accepted

Sort by
0
Erick
Top achievements
Rank 2
answered on 19 Aug 2016, 04:53 PM

And how to set the min height of funnel item? Please see the attached image for example, when the fourth item haves low count, it results into very low item with too big label. 

The dynamic height is enabled, i like the automatically resize of the items based at the values but it needs min height...

0
Joana
Telerik team
answered on 24 Aug 2016, 10:23 AM
Hi Jelle,

Regarding the first issue with the white gaps, MinValue and MaxValue properties for the XAxis were available only for category axes but in R3 2016 we'll include this functionality for numeric series(as is ScatterLine series). Here you could track the progress and get a workaround: http://feedback.telerik.com/Project/108/Feedback/Details/145264. For your convenience, I am pasting the solution: 

<script>
    function pageLoad() {
        var chart = $find("<%=RadHtmlChart1.ClientID%>");
        chart._chartObject.options.xAxis.min = new Date(2013, 04, 01);
        chart._chartObject.options.xAxis.max = new Date(2013, 05, 01);
        chart.repaint();
    }
</script>

Regarding your second question - the dynamic size of FunnelSeries items is not implemented. You could submit a feature request in the UserVoice portal - http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback. However, you could use the LabelsAppearance inner property of the series to set FontSize: http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/appearance-and-styling/labels-and-titles-font-settings

Regards,
Joana
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Chart (HTML5)
Asked by
Erick
Top achievements
Rank 2
Answers by
Erick
Top achievements
Rank 2
Joana
Telerik team
Share this question
or