thank you very mutch Paolo,
that's what I needed... I was just confused by the behaviour of a theme
based on an old version of web2py
It works perfectly :)
M.
Il 04/12/12 15:10, Paolo Caruccio ha scritto:
For flot:
put in yourapp/static/js
jquery.flot.js
and
jquery.flot.resize.js (for scalability)
usage in the view for example
|
{{extend 'layout.html'}}
<h1>{{=T('My first chart')}}</h1>
<script src="{{=URL('static','js/jquery.flot.js')}}"></script>
<script src="{{=URL('static','js/jquery.flot.resize.js')}}"></script>
<div class="row-fluid">
<div class="span2"></div>
<div class="span8">
<div id="placeholder"></div>
</div>
<div class="span2"> </div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery.plot(jQuery("#placeholder"), [ {{=data_chart}} ]);
//data_chart is a list of lists as [[0, 0], [1, 1]]
})
</script>
|
Il giorno martedì 4 dicembre 2012 13:58:24 UTC+1, Manuele ha scritto:
Il 03/12/12 16:37, Richard V�zina ha scritto:
> I am not sure I understand your question.
>
> web2py bootstrap.js contain all the boostrap.js into one file.
So you
> don't need to import anything else from bootstrap to create any
> bootstrap "effect" (just make sure you don't try to use something
> available in new version of bootstrap since web2py bootstrap can be
> one or more version older).
>
> About highcharts you will need to figure it out how to use it with
> web2py, something like, set the proper class to your html
content and
> init the plugin after have include the proper js and css.
>
> Is this what you want to know?
Thank you Richard for you answere,
I think you wrote everithing I need... I want to use scaffolding
tools
like this[1] to organize my dashboard. I would like to know if the
charts will be scaled with the their conteiner div markup. Can I
consider them as images?
thank you again
cheers
Manuele
[1]
http://twitter.github.com/bootstrap/scaffolding.html#fluidGridSystem
<http://twitter.github.com/bootstrap/scaffolding.html#fluidGridSystem>
>
> Richard
--
--