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

Ajax HTMLChart Tooltip issues

1 Answer 63 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Philipp
Top achievements
Rank 1
Philipp asked on 19 Apr 2016, 09:06 AM

Hi everybody,

we've recently updated to Telerik 2016 Q1 SP1 with latest Hotfix.

I am still facing some minor issues with the HTMLChart. There is a class called .k-chart-tooltip and after the upgrade this class is totally missing.
The html-markup is still referencing to this class but it can not be found in the resources, it is not there. Any help on this?

Another thing is that i give the possibility to make a cahrt 'small' or 'big'. The javascript code for this functionality looks like this:

function makeSmallGraph(chart) {
            if (chart == null) { chart = $find('<%=cGraph.ClientID%>'); }
                         
            chart._chartObject.options.series[0].labels.visible = false;
            chart._chartObject.options.series[1].labels.visible = false;
            chart._chartObject.options.series[2].labels.visible = false;
            chart._chartObject.options.series[3].labels.visible = false;
            chart._chartObject.options.title.visible = false;
            chart._options.valueAxis[0].title.visible = false;
            chart._chartObject.options.valueAxis.title.visible = false;
            chart._options.categoryAxis.title.visible = false;
            chart._chartObject.options.categoryAxis.title.visible = false;
 
            chart.repaint();
        }
 
        function makeBigGraph(chart) {
            if (chart == null) { chart = $find('<%=cGraph.ClientID%>'); }
                         
            chart._chartObject.options.series[0].labels.visible = true;
            chart._chartObject.options.series[1].labels.visible = true;
            chart._chartObject.options.series[2].labels.visible = true;
            chart._chartObject.options.series[3].labels.visible = true;
            chart._chartObject.options.title.visible = true;
            chart._options.valueAxis[0].title.visible = true;
            chart._chartObject.options.valueAxis.title.visible = true;
            chart._options.categoryAxis.title.visible = true;
            chart._chartObject.options.categoryAxis.title.visible = true;
 
            chart.repaint();
        }

 

After calling 'makeBigGraph' there are no more tooltips showing up. after calling 'makeSmallGraph' tooltips are back! Why?
We used version 2015 Q1 before upgrading to the latest build and i had none of the Problems described.

Kind regards

Philipp

1 Answer, 1 is accepted

Sort by
0
Philipp
Top achievements
Rank 1
answered on 19 Apr 2016, 02:12 PM

Hi again,

i found the problem. I created a class that just inherits the radHTMLChart like this:

Public Class myHTMLChart
    Inherits Telerik.Web.UI.RadHtmlChart
 
    Public Sub New()
        MyBase.New()
    End Sub
 
End Class

When i use this class the described behavior happens to be, i think i am missing some kind of directive. I am using the telerik base-class right now and everything works fine. With Version 2015 Q1 my class also worked fine. 

Greetings

Philipp

 

Tags
Chart (HTML5)
Asked by
Philipp
Top achievements
Rank 1
Answers by
Philipp
Top achievements
Rank 1
Share this question
or