jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Repetitively Create jqxChart Repetitively Create jqxChart #79402

    Stephen
    Participant

    Hristo: I’m familiar with the license agreement and my organization has purchased a developer license with premium support. I’m unclear what you are trying to imply by bringing this up. Can you please be explicit. My intentions here are to highlight unexpected behavior in an attempt to help jqWidgets get better. If this is not in line with your or jqWidgets’ goals please let me know and I’ll forward this on to my organization for consideration.

    All examples posted showcase reuse of an existing a jqxChart which as I said above do not match this use case. Thank you for your time, I think I’ve found a solution by the method described above. Here’s a more production ready link with an optional timer to show that the chart is actually being recreated each click: http://jsfiddle.net/zyreL8cr/2/

    in reply to: Repetitively Create jqxChart Repetitively Create jqxChart #79356

    Stephen
    Participant

    I figured jqxChart is probably saving its state on the element within the DOM so I tried this demo:

    http://jsfiddle.net/zyreL8cr/

    It seems to work. The idea here is that I build a cache of all html attributes, destroy the div, and then recreate it in the same spot using the cache of attributes. Clunky and inelegant, but it works.

    Now can I modify my production code to utilize this workaround?

    in reply to: Repetitively Create jqxChart Repetitively Create jqxChart #79354

    Stephen
    Participant

    Hey Hristo, thanks for the reply.

    My use case is that I need to reuse the element, as in destroy the chart and _maybe_ in the future recreate it or create a completely new one. I have multiple views on a single page set dynamically by user defined and selected menus.

    Is this expected behavior by the jqxChart library?

    Thank you again,
    Stephen


    Stephen
    Participant

    Thank you for the very quick reply. I was hoping not to reinvent the wheel, though. My current solution works okay and is essentially just an SVG rectangles so I don’t see what value implementing jqxDraw would bring me.

    Ideally I could piggyback on the jqxChart library to enable features such as x-axis support, data-adapters, etc… The example posted for the custom draw function in jqxChart, while impressive, is a bit overkill. Could this function be used to just draw the chart area without affecting other elements such as axis, titles, legends? It doesn’t look like it but I could be wrong.

    – Stephen

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