jQWidgets Forums
Forum Replies Created
-
Author
-
July 6, 2012 at 8:08 am in reply to: series update undefined index series update undefined index #5719
Thnx!
That did the trick .. I used the remove to remove the element, then added the element back and applied the plugin …
July 5, 2012 at 1:02 pm in reply to: series update undefined index series update undefined index #5696Any idea’s?
Is there a way to destroy the chart?
for example
$(“myelement”).jqxChart(“destroy”);
June 28, 2012 at 12:43 pm in reply to: base href , tooltip not working base href , tooltip not working #5446yes
The original demo :
http://www.coreelementscloud.nl/jqwidgets-ver2.2.1/demos/jqxchart/javascript_chart_line_series.htm
This one I altered with base href and also the path to the scripts / css is pointed from the root.
http://www.coreelementscloud.nl/jqwidgets-ver2.2.1/demos/jqxchart/test.html
June 28, 2012 at 12:28 pm in reply to: series update undefined index series update undefined index #5444I just created a new settings object and then
$(“myelement”).jqxChart(settings);
each time I wanted to update the chart.
At first I had a fixed series, but the datasource changed. That worked well. But now I want the series to change on the fly.
Is there another way to remove the chart and restart the widget with new settings.
I’ve tried with the “refresh” method .. but no luck
June 28, 2012 at 12:14 pm in reply to: series update undefined index series update undefined index #5441Well I still don’t get it ..
What I’m trying to do
1) I have 3 checkboxs with location name for example “location 1” , “location 2” , “location 3″
2) When I check a checkbox, a call is made to the server to include that location in de chart.These are the console logs
—–
Step 1 : first 1 location is checked
—–datasource:
[Object { Day=”ma”, location_0=”10″}, Object { Day=”di”, location_0=”100″}, Object { Day=”wo”, location_0=0}, Object { Day=”do”, location_0=”40″}, Object { Day=”vr”, location_0=0}, Object { Day=”za”, location_0=0}, Object { Day=”zo”, location_0=0}]
series :
[Object { dataField=”location_0″, displayText=”location 1″}]
—–
Step 2 : Now I check another
—–datasource :
[Object { Day=”ma”, location_0=”10″, location_1=0}, Object { Day=”di”, location_0=”100″, location_1=”50″}, Object { Day=”wo”, location_0=0, location_1=”50″}, Object { Day=”do”, location_0=”40″, location_1=0}, Object { Day=”vr”, location_0=0, location_1=0}, Object { Day=”za”, location_0=0, location_1=0}, Object { Day=”zo”, location_0=0, location_1=0}]
series :
[Object { dataField=”location_0″, displayText=”location 1″}, Object { dataField=”location_1″, displayText=”location 2″}]
—–
Step 2 : Now I uncheck one
—–datasource :
[Object { Day=”ma”, location_0=”10″}, Object { Day=”di”, location_0=”100″}, Object { Day=”wo”, location_0=0}, Object { Day=”do”, location_0=”40″}, Object { Day=”vr”, location_0=0}, Object { Day=”za”, location_0=0}, Object { Day=”zo”, location_0=0}]
series:
[Object { dataField=”location_0″, displayText=”location 1″}]
And then I get the error “uncaught exception: jqxChart: Data source contains invalid value at Index: 0, DataField: location_1” 🙁
June 28, 2012 at 9:43 am in reply to: Custom tool tips and other issues Custom tool tips and other issues #5424Is it possible to add a newline in the tooltip?
-
AuthorPosts