jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts

  • thalyric
    Member

    Thnx!

    That did the trick .. I used the remove to remove the element, then added the element back and applied the plugin …


    thalyric
    Member

    Any idea’s?

    Is there a way to destroy the chart?

    for example

    $(“myelement”).jqxChart(“destroy”);


    thalyric
    Member

    yes

    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

    in reply to: series update undefined index series update undefined index #5444

    thalyric
    Member

    I 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

    in reply to: series update undefined index series update undefined index #5441

    thalyric
    Member

    Well 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” 🙁


    thalyric
    Member

    Is it possible to add a newline in the tooltip?

Viewing 6 posts - 1 through 6 (of 6 total)