atk4 / atk4-addons

Agile Toolkit Addons
http://atk4.com/
Other
15 stars 23 forks source link

highChard doesn't work #7

Closed shadeimi closed 11 years ago

shadeimi commented 12 years ago

i've tried to use the example code in ui.highcharts.js, but i've received a blank page. The JS libraries are correctly acquired (i see an highchart.com link on the bottom of the blank graph).

romaninsh commented 12 years ago

please examine the source of the page to find what might be the case.

shadeimi commented 12 years ago

<!DOCTYPE html>

Agile Toolkit ``` ``` ```
```
```
shadeimi commented 12 years ago

i don't see nothing strange, anyway can i have documentation about the library usage into the framework? (API description or something else?)

romaninsh commented 12 years ago

you'll need to look into :

$('#sample_project_graph_view_htmlelement').univ().highchart('line',[1,2,3,4,5,6,7,8],[{'name':'Name of series1','data':[10,20,30,40,50]}],{'title':{'text':'Title1 of your chart'}}); ; });

and the definition of this function:

highchart: function(options){
    var defaults = {
        chart: {
            renderTo: this.jquery.attr("id"),
            width: 500,
            height: 500,
            zoomType: "xy",
        },
        title: {
            text: 'Title'
        }
    };
    $.extend(true, defaults, options);
    var chart = new Highcharts.Chart(
        defaults
    );

}

Agile Toolkit passes all the options to highcharts, so you should check with the highcharts lib why it's not drawing the graph.

DarkSide666 commented 11 years ago

@shadeimi Is this issue still active or can I close this one?

romaninsh commented 11 years ago

i guess not ;)