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

[Solved] IE 9 Ajax Chart

1 Answer 86 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bwood
Top achievements
Rank 1
bwood asked on 17 Jan 2012, 04:09 PM
I have a requirement that I have to have some text on a page and when the user hovers over the text a line chart is shown in a tooltip. It works ok in IE 8 but in IE 9 I only see a blank graph, no lines.

Here is my javascript to create the tooltip when hovered over:

$.ajax({
                        url: "/LineChart",
                        type: 'POST',
                        contentType: 'application/json; charset=utf-8',
                        data: JSON.stringify({ lines: linesData, categories: categoriesData }),
                        success: function (data) {
 
                            tooltipContent.append(data);
 
                            $that.tooltip({
                                top: 0,
                                left: 25,
                                staysOpen: false,
                                bodyHandler: function () {
                                    return tooltipContent.html();
                                }
                            });
                        }
 
                    });

1 Answer, 1 is accepted

Sort by
0
bwood
Top achievements
Rank 1
answered on 17 Jan 2012, 08:43 PM
The issue was that you cannot add a SVG element to a hidden element or it won't render properly.
Tags
Chart
Asked by
bwood
Top achievements
Rank 1
Answers by
bwood
Top achievements
Rank 1
Share this question
or