Welcome Guest Search | Active Topics |

measureText problem in IE
vibstudio
#1 Posted : Friday, February 14, 2014 9:27:36 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/14/2014(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hello, I'm testing the plugin jqChart and from a sample application in ASP.NET 4.0, I can not render one Stacked Column Chart using Internet Explorer 11 (no problems with Firefox).
I have verified that after the statement
Quote:
this.setProperties (f);
in jquery.jqChart.js within the next FOR loop the instruction
Quote:
f.measureText
is "undefined", incurring the error: "Javascript Object does not support this property or method measureText".
I am strongly willing to purchase jqChart for jQuery, but I would first be sure I'll have no problems in my application: ASP.NET Web Forms 3.0.
Thanks.

Vito Baccaro
Dragan
#2 Posted : Friday, February 14, 2014 9:31:31 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Is it possible to send us a small example (or the real one), in which this issue is reproducible, so we can investigate it?
Best Regards,
Dragan Matek
jqChart Inc.
vibstudio
#3 Posted : Friday, February 14, 2014 9:47:52 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/14/2014(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Quote:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UploadsReport.aspx.cs" Inherits="Vibstudio.VPortal.Web.UI.UploadsReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<link rel="stylesheet" type="text/css" href="Styles/jquery.jqChart.css" />
<link rel="stylesheet" type="text/css" href="Styles/jquery.jqRangeSlider.css" />

<script type="text/javascript" src="Scripts/jquery.mousewheel.js"> </script>
<script type="text/javascript" src="Scripts/jquery.jqChart.js"> </script>
<script type="text/javascript" src="Scripts/jquery.jqRangeSlider.js"></script>
<script lang="javascript" src="Scripts/excanvas.js"></script>

<script lang="javascript" type="text/javascript">
$(function () {
loadUploadsReport();
});

function loadUploadsReport() {
$.ajax({
type: "GET",
url: "ReportService.asmx/GetUploads",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
initChart(msg.d.PlayerList, msg.d.ProcessedList, msg.d.DiscardedList);
},
error: function(xhr, status, error) {
alert(error);
}
});
}

function initChart(players, ok, ko) {
$('#jqChart').width(players * 100);

$('#jqChart').jqChart({
border: { visible: false },
legend: { location: 'left' },
shadows: { enabled: true },
tooltips: { disabled: true },
noDataMessage: {
text: 'No data available',
font: '20px sans-serif'
},
axes: [
{
type: 'category',
location: 'bottom',
categories: players
}
],
series: [
{
type: 'stackedColumn',
title: 'OK',
data: ok,
labels: {
font: '12px sans-serif'
}
},
{
type: 'stackedColumn',
title: 'KO',
data: ko,
labels: {
font: '12px sans-serif'
}
}
]
});

$('#jqChart').bind('dataPointMouseUp', function(e, data) {
if (data.series.title.toUpperCase() == "KO") {
alert(data.x + ": " + data.value);
}
});
}

</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div style="overflow-x: auto; width: 100%;">
<div id="jqChart" style="height: 300px;"></div>
</div>
</asp:Content>


La stessa pagina funziona correttamente in firefox.


Vito Baccaro
Dragan
#4 Posted : Friday, February 14, 2014 9:52:43 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
You can try changing

Code:
$(function () {
loadUploadsReport();
});


to

Code:
$(document).ready(function () {
loadUploadsReport();
});


If this doesn't help, what would be the result of your ajax call?

Code:
success: function(msg) {

initChart(msg.d.PlayerList, msg.d.ProcessedList, msg.d.DiscardedList);

},


You can also zip your whole project and send it to support@jqchart.com .
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.291 seconds.