jQWidgets Forums
Forum Replies Created
-
Author
-
December 4, 2014 at 7:31 am in reply to: AngularJS error on destroy chart widget AngularJS error on destroy chart widget #63769
Hi Bob, sorry I didn’t come in the forum for a while.
I didn’t have time to analyze further but in my case, I use angular routes, and in one of the routes I have bar charts displayed.
The “destroy” error appears when I leave the route containing the charts.I saw that the chrome process was getting bigger and bigger each time I left the charts route, which seems to be normal as the destroy function is not called.
I let you know if I find something.
November 12, 2014 at 8:54 am in reply to: AngularJS error on destroy chart widget AngularJS error on destroy chart widget #62562Hi, I have exactly the same problem is my project in which I have a bar chart.
But I didn’t had time to make a sample.Hi Peter,
Yes I have tried to change the unitInterval value and call the refresh() function but it does not work for me.
Anyway the unitInterval automatically adapts itself if I don’t set a particular value, si I no longer try to force its value.September 23, 2014 at 3:56 pm in reply to: Chart range selector drag Chart range selector drag #59932Ok, thanks Peter
Actually I have found the difference between your sample and mine that makes mine not working.
You use a dataAdapter as source for the data and I use a local sampleData just like this one (containing the same data as TSLA_stockprice.csv but converted to json) :
var dataSample = [
{
Date:”6/29/2010″,
Open:19,
High:25,
Low:17.54,
Close:23.89,
Volume:18766300,
AdjClose:23.89
},
{
Date:”6/30/2010″,
Open:25.79,
High:30.42,
Low:23.3,
Close:23.83,
Volume:17187100,
AdjClose:23.83
},
…
];In this case, I get the stack that I wrote in a previous post if I activate the range selector (if I don’t everything is fine).
Do I misunderstand the use of the source attribute or is it a bug ?
If it is a bug, is there a workaround that could let me continue to use a local json array as source ?Thanks Peter, your sample is working, I will now search why mine is not ..
I’ll let you know if I find something interesting.I have copied your working jquery sample with a range selector on a time X axis (demos/jqxchart/javascript_chart_range_selector.htm) and converted it to angular, using exactly the same settings and data.
The charts works if I comment the range selector in the xAxis object, but as soon as I uncomment the range selector i get this stack :
RangeError: Maximum call stack size exceeded
at String.replace (native)
at Function.n.extend.camelCase (http://localhost:8181/jqw-test/jquery-2.1.1.min.js:2:2591)
at Function.n.extend.css (http://localhost:8181/jqw-test/jquery-2.1.1.min.js:3:22215)
at Object.n.cssHooks.(anonymous function).get (http://localhost:8181/jqw-test/jquery-2.1.1.min.js:3:22561)
at Function.n.extend.css (http://localhost:8181/jqw-test/jquery-2.1.1.min.js:3:22332)
at http://localhost:8181/jqw-test/jquery-2.1.1.min.js:4:19736
at n.access (http://localhost:8181/jqw-test/jquery-2.1.1.min.js:2:30219)
at n.fn.(anonymous function) [as width] (http://localhost:8181/jqw-test/jquery-2.1.1.min.js:4:19507)
at Object.a.jqx.svgRenderer._layout (http://localhost:8181/jqw-test/jqwidgets/jqxchart.js:7:124826)
at Object.a.jqx.svgRenderer.init (http://localhost:8181/jqw-test/jqwidgets/jqxchart.js:7:124046)January 24, 2014 at 3:12 pm in reply to: Passing data with dataAdapter Passing data with dataAdapter #48352I found what was wrong, I had to use a different format to pass my data.
I have to use
data: {table_name: table_name}
instead of
data: “table_name=”+table_nameNot very clear in the doc however, but found it ;o)
Thanks Peter, that’s the solution I choosed.
I would like to add a precison.
I am aware of the displayMember and valueMember attributes, and they would be sufficient if I only had to get only one attribute from my movie object, but actually the movie object contains more attributes and I have to get them all, that’s why I would like to get the whole movie object in the returned item.January 10, 2014 at 7:52 am in reply to: jqxButton({disabled: false }) is not visually displayed jqxButton({disabled: false }) is not visually displayed #47669Thank you Peter, it works perfectly (in my case it works better with keyup).
January 9, 2014 at 3:09 pm in reply to: jqxButton({disabled: false }) is not visually displayed jqxButton({disabled: false }) is not visually displayed #47632Hi Peter,
I understand.
But actually my goal is very simple.
I just would like that a jqxButton originally disabled becomes enabled as soon as the user types some text inside a jqxinput.
But it must be done immediately without having to put the focus out of the jqxinput.
It would probably be the purpose of a “changing” event I suppose.
Is that possible by another mean ?
If yes would you have a sample ?
If not, may be you should add this feature because (up to me) this is a very common feature for a text input.Thank you
January 8, 2014 at 2:35 pm in reply to: jqxButton({disabled: false }) is not visually displayed jqxButton({disabled: false }) is not visually displayed #47545Were you able to reproduce the problem ?
January 6, 2014 at 12:11 pm in reply to: jqxButton({disabled: false }) is not visually displayed jqxButton({disabled: false }) is not visually displayed #47308I have made a little sample and I found that the “change” event of the jqxInput widget is not triggered.
Actually it is not triggered when the user modifies the text, but it is triggered when he clicks outside the jqxInput (which is not what we usually want).
Do you reproduce this behavior ?<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="../../scripts/demos.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script> </head> <body class='default'> <div id='content'> <script type="text/javascript"> $(document).ready(function () { $('#jqxInput').jqxInput({ width: 200 }); $('#jqxInput').on('change', function () { alert("Change event triggered"); }); }); </script> <input type="input" value="Modify text" id='jqxInput' /> </div> </body> </html>
January 6, 2014 at 10:06 am in reply to: jqxButton({disabled: false }) is not visually displayed jqxButton({disabled: false }) is not visually displayed #47296Thanks Peter, I will make sure that my code is correct before posting again.
-
AuthorPosts