Re: Creating dynamic chart / graphs with Django

2021-05-16 Thread Ryan Nowakowski
I like to start with one of the free dashboard templates for a project like 
this. I've used both CoreUI and AdminLTE in the past with good success. These 
dashboard templates include some sample graphs using one of the standard 
JavaScript charting libraries. 

I look at these graph examples for how the data is loaded. Then I use Django to 
load the data that same way. I like to optimize the data on the back end 
instead of having the charting library optimize it on the front end. For 
example, I'll do the interpolation of data in Python on the back end.

This allows me to have a project that has a pretty nice looking feel by 
default. Also I don't have to go through the trouble of trying to select a 
front end stack. The template has already done that for me.

On May 15, 2021 8:27:35 AM CDT, Santhosh Kumar  
wrote:
>i too have similar requirement. I tried plotly, however the integration
>of 
>django and plotly didnt go well often with huge data in sense, loading
>time 
>was high and special channels setup was required. (i learnt from this
>video 
>).
>Currently im trying with chartjs.
>Any other better suggestions please let us know in the group.
>
>I believe (not sure) such channels implementation will be required for 
>bokeh and seaborn as well. 
>
>On Monday, April 12, 2021 at 6:30:17 PM UTC+2 tristant wrote:
>
>> Thanks Walter and Lars for the tips.
>>
>> On Mon, Apr 12, 2021 at 8:16 AM Lars Liedtke  wrote:
>>
>>> Hey,
>>>
>>> this is quite good https://bokeh.org it can create dynamic html/js
>as 
>>> well, but I don't know how the interagion into django is.
>>>
>>> Cheers
>>>
>>> Lars
>>> Am 12.04.21 um 15:32 schrieb Walter Randazzo:
>>>
>>> Hi Tristan,
>>>
>>> i have used this one just once. 
>>>
>>>
>>> https://www.highcharts.com/demo
>>>
>>> Check it, it easy to setup.
>>>
>>> Regards,
>>>
>>>
>>>
>>> El lun, 12 abr 2021 a las 10:05, tristant () 
>>> escribió:
>>>
 I am looking to build site with a variety of charts and graphs. A
>quick 
 search shows quite a lot of packages out there, as listed here
>Django 
 Packages : Charts  

 Has anyone used any of these packages and could provide some advice
>on 
 which is better? For my task, I am looking to create both typical
>2D charts 
 as well as possible 3D plots. The charts need to be interactive (
>as in 
 user can tweak inputs and expect the charts to respond).

 I have done similar charts with R Shiny. I am wondering which of
>these 
 packages can do similar things?

 I notice in the link, some packages mention "offline". Does this
>mean 
 they cannot create interactive charts?

 Thanks.
 -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it,
>send 
 an email to django-users...@googlegroups.com.
 To view this discussion on the web visit 

>https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com
>

>
 .

>>> -- 
>>> You received this message because you are subscribed to the Google
>Groups 
>>> "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>send an 
>>> email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>>
>https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com
>
>>>
>
>>> .
>>>
>>> -- 
>>> ---punkt.de GmbH
>>> Lars Liedtke
>>> .infrastructure
>>>
>>> Kaiserallee 13a 
>>> 76133 Karlsruhe
>>>
>>> Tel. +49 721 9109 500
><+49%20721%209109500>https://infrastructure.punkt.dein...@punkt.de
>>>
>>> AG Mannheim 108285
>>> Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google
>Groups 
>>> "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>send an 
>>> email to django-users...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>>
>https://groups.google.com/d/msgid/django-users/b1a86516-79e5-faf1-9d6d-87edbf3301bc%40punkt.de
>
>>>
>
>>> .
>>>
>>
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Django users" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to django-users+unsubscr...@googlegroups.com.
>To view this discussion 

Re: Creating dynamic chart / graphs with Django

2021-05-15 Thread Thomas Lockhart
Django integration is fairly easy with Bokeh. For very large datasets you will 
want to also use Datashader and Holoviews so that high-density data gets 
rendered with meaningful interpolations.

hth

- Tom

> On Apr 12, 2021, at 7:16 AM, Lars Liedtke  wrote:
> 
> Hey,
> 
> this is quite good https://bokeh.org  it can create 
> dynamic html/js as well, but I don't know how the interagion into django is.
> 
> Cheers
> 
> Lars
> 
> Am 12.04.21 um 15:32 schrieb Walter Randazzo:
>> Hi Tristan,
>> 
>> i have used this one just once. 
>> 
>> 
>> https://www.highcharts.com/demo 
>> 
>> Check it, it easy to setup.
>> 
>> Regards,
>> 
>> 
>> 
>> 
>> El lun, 12 abr 2021 a las 10:05, tristant (> >) escribió:
>> I am looking to build site with a variety of charts and graphs. A quick 
>> search shows quite a lot of packages out there, as listed here Django 
>> Packages : Charts 
>> 
>> Has anyone used any of these packages and could provide some advice on which 
>> is better? For my task, I am looking to create both typical 2D charts as 
>> well as possible 3D plots. The charts need to be interactive ( as in user 
>> can tweak inputs and expect the charts to respond).
>> 
>> I have done similar charts with R Shiny. I am wondering which of these 
>> packages can do similar things?
>> 
>> I notice in the link, some packages mention "offline". Does this mean they 
>> cannot create interactive charts?
>> 
>> Thanks.
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users+unsubscr...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com
>>  
>> .
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users+unsubscr...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com
>>  
>> .
> -- 
> ---
> punkt.de GmbH
> Lars Liedtke
> .infrastructure
> 
> Kaiserallee 13a   
> 76133 Karlsruhe
> 
> Tel. +49 721 9109 500
> https://infrastructure.punkt.de 
> i...@punkt.de 
> 
> AG Mannheim 108285
> Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/b1a86516-79e5-faf1-9d6d-87edbf3301bc%40punkt.de
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4C6F8FF6-9CAF-4CA2-AE0A-5A8BB072B131%40gmail.com.


Re: Creating dynamic chart / graphs with Django

2021-05-15 Thread Santhosh Kumar
i too have similar requirement. I tried plotly, however the integration of 
django and plotly didnt go well often with huge data in sense, loading time 
was high and special channels setup was required. (i learnt from this video 
).
Currently im trying with chartjs.
Any other better suggestions please let us know in the group.

I believe (not sure) such channels implementation will be required for 
bokeh and seaborn as well. 

On Monday, April 12, 2021 at 6:30:17 PM UTC+2 tristant wrote:

> Thanks Walter and Lars for the tips.
>
> On Mon, Apr 12, 2021 at 8:16 AM Lars Liedtke  wrote:
>
>> Hey,
>>
>> this is quite good https://bokeh.org it can create dynamic html/js as 
>> well, but I don't know how the interagion into django is.
>>
>> Cheers
>>
>> Lars
>> Am 12.04.21 um 15:32 schrieb Walter Randazzo:
>>
>> Hi Tristan,
>>
>> i have used this one just once. 
>>
>>
>> https://www.highcharts.com/demo
>>
>> Check it, it easy to setup.
>>
>> Regards,
>>
>>
>>
>> El lun, 12 abr 2021 a las 10:05, tristant () 
>> escribió:
>>
>>> I am looking to build site with a variety of charts and graphs. A quick 
>>> search shows quite a lot of packages out there, as listed here Django 
>>> Packages : Charts  
>>>
>>> Has anyone used any of these packages and could provide some advice on 
>>> which is better? For my task, I am looking to create both typical 2D charts 
>>> as well as possible 3D plots. The charts need to be interactive ( as in 
>>> user can tweak inputs and expect the charts to respond).
>>>
>>> I have done similar charts with R Shiny. I am wondering which of these 
>>> packages can do similar things?
>>>
>>> I notice in the link, some packages mention "offline". Does this mean 
>>> they cannot create interactive charts?
>>>
>>> Thanks.
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com
>>  
>> 
>> .
>>
>> -- 
>> ---punkt.de GmbH
>> Lars Liedtke
>> .infrastructure
>>
>> Kaiserallee 13a  
>> 76133 Karlsruhe
>>
>> Tel. +49 721 9109 500 
>> <+49%20721%209109500>https://infrastructure.punkt.dein...@punkt.de
>>
>> AG Mannheim 108285
>> Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/b1a86516-79e5-faf1-9d6d-87edbf3301bc%40punkt.de
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/541bc692-a1af-44a5-bd11-c72738141e3bn%40googlegroups.com.


Re: Creating dynamic chart / graphs with Django

2021-04-12 Thread Tran Trong Tri
Thanks Walter and Lars for the tips.

On Mon, Apr 12, 2021 at 8:16 AM Lars Liedtke  wrote:

> Hey,
>
> this is quite good https://bokeh.org it can create dynamic html/js as
> well, but I don't know how the interagion into django is.
>
> Cheers
>
> Lars
> Am 12.04.21 um 15:32 schrieb Walter Randazzo:
>
> Hi Tristan,
>
> i have used this one just once.
>
>
> https://www.highcharts.com/demo
>
> Check it, it easy to setup.
>
> Regards,
>
>
>
> El lun, 12 abr 2021 a las 10:05, tristant ()
> escribió:
>
>> I am looking to build site with a variety of charts and graphs. A quick
>> search shows quite a lot of packages out there, as listed here Django
>> Packages : Charts 
>>
>> Has anyone used any of these packages and could provide some advice on
>> which is better? For my task, I am looking to create both typical 2D charts
>> as well as possible 3D plots. The charts need to be interactive ( as in
>> user can tweak inputs and expect the charts to respond).
>>
>> I have done similar charts with R Shiny. I am wondering which of these
>> packages can do similar things?
>>
>> I notice in the link, some packages mention "offline". Does this mean
>> they cannot create interactive charts?
>>
>> Thanks.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com
> 
> .
>
> --
> ---punkt.de GmbH
> Lars Liedtke
> .infrastructure
>
> Kaiserallee 13a   
> 76133 Karlsruhe
>
> Tel. +49 721 9109 500https://infrastructure.punkt.dei...@punkt.de
>
> AG Mannheim 108285
> Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b1a86516-79e5-faf1-9d6d-87edbf3301bc%40punkt.de
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B%3DtPq%3Dh9K6ZKMSPxXNRuO7HswouohzawyEv4WsRajaeVWz19A%40mail.gmail.com.


Re: Creating dynamic chart / graphs with Django

2021-04-12 Thread Walter Randazzo
Plus, in order to be an interactive real "live" chart you can use ajax.

El lun., 12 abr. 2021 10:32 a. m., Walter Randazzo 
escribió:

> Hi Tristan,
>
> i have used this one just once.
>
>
> https://www.highcharts.com/demo
>
> Check it, it easy to setup.
>
> Regards,
>
>
>
> El lun, 12 abr 2021 a las 10:05, tristant ()
> escribió:
>
>> I am looking to build site with a variety of charts and graphs. A quick
>> search shows quite a lot of packages out there, as listed here Django
>> Packages : Charts 
>>
>> Has anyone used any of these packages and could provide some advice on
>> which is better? For my task, I am looking to create both typical 2D charts
>> as well as possible 3D plots. The charts need to be interactive ( as in
>> user can tweak inputs and expect the charts to respond).
>>
>> I have done similar charts with R Shiny. I am wondering which of these
>> packages can do similar things?
>>
>> I notice in the link, some packages mention "offline". Does this mean
>> they cannot create interactive charts?
>>
>> Thanks.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL7Dry6iekOCzSJAyCSrfqRZx2GBEhKvdzg5kEjcwaJJHBQ%3DXQ%40mail.gmail.com.


Re: Creating dynamic chart / graphs with Django

2021-04-12 Thread Lars Liedtke
Hey,

this is quite good https://bokeh.org it can create dynamic html/js as
well, but I don't know how the interagion into django is.

Cheers

Lars

Am 12.04.21 um 15:32 schrieb Walter Randazzo:
> Hi Tristan,
>
> i have used this one just once. 
>
>
> https://www.highcharts.com/demo 
>
> Check it, it easy to setup.
>
> Regards,
>
>
>
> El lun, 12 abr 2021 a las 10:05, tristant ( >) escribió:
>
> I am looking to build site with a variety of charts and graphs. A
> quick search shows quite a lot of packages out there, as listed
> here Django Packages : Charts
> 
>
> Has anyone used any of these packages and could provide some
> advice on which is better? For my task, I am looking to create
> both typical 2D charts as well as possible 3D plots. The charts
> need to be interactive ( as in user can tweak inputs and expect
> the charts to respond).
>
> I have done similar charts with R Shiny. I am wondering which of
> these packages can do similar things?
>
> I notice in the link, some packages mention "offline". Does this
> mean they cannot create interactive charts?
>
> Thanks.
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to django-users+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com
> 
> .
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com
> .

-- 
---
punkt.de GmbH
Lars Liedtke
.infrastructure

Kaiserallee 13a 
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b1a86516-79e5-faf1-9d6d-87edbf3301bc%40punkt.de.


Re: Creating dynamic chart / graphs with Django

2021-04-12 Thread Walter Randazzo
Hi Tristan,

i have used this one just once.


https://www.highcharts.com/demo

Check it, it easy to setup.

Regards,



El lun, 12 abr 2021 a las 10:05, tristant ()
escribió:

> I am looking to build site with a variety of charts and graphs. A quick
> search shows quite a lot of packages out there, as listed here Django
> Packages : Charts 
>
> Has anyone used any of these packages and could provide some advice on
> which is better? For my task, I am looking to create both typical 2D charts
> as well as possible 3D plots. The charts need to be interactive ( as in
> user can tweak inputs and expect the charts to respond).
>
> I have done similar charts with R Shiny. I am wondering which of these
> packages can do similar things?
>
> I notice in the link, some packages mention "offline". Does this mean they
> cannot create interactive charts?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com.


Creating dynamic chart / graphs with Django

2021-04-12 Thread tristant
I am looking to build site with a variety of charts and graphs. A quick 
search shows quite a lot of packages out there, as listed here Django 
Packages : Charts 

Has anyone used any of these packages and could provide some advice on 
which is better? For my task, I am looking to create both typical 2D charts 
as well as possible 3D plots. The charts need to be interactive ( as in 
user can tweak inputs and expect the charts to respond).

I have done similar charts with R Shiny. I am wondering which of these 
packages can do similar things?

I notice in the link, some packages mention "offline". Does this mean they 
cannot create interactive charts?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com.


how to add graphs in django admin panel

2019-08-26 Thread Balaji Shetty
Hi everyone

Can anybody suggest me
how to add different graphs in django admin panel for relational models. I
will apply count, group by clsuse query to display count.

One more questions. We can change default django Administration GUI using
django admin suit. How is it. Is there any other way to change it


Thanks in advance.


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I
Nanded. My. India

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOuSHU_pq8ofKse%3DMrr43usU5Sb%2BzzzhTrNrsi%3DQ%2BPT15Q%40mail.gmail.com.


Re: USING graphs in django admin

2017-03-06 Thread chris rose
i have used d3.js in a template and past it data when answering a http 
request with a view

i found d3.js a little interesting to wrap my head around but it is a good 
tool

not used it with the admin though

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a7b4bec2-1a77-4be3-bcdf-e3f3a00c3b79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USING graphs in django admin

2017-03-03 Thread Luvpreet Singh
Can we link this with a template and a view in django ?

On Friday, March 3, 2017 at 4:17:08 PM UTC+5:30, Lachlan Musicman wrote:
>
> You could try 
>
> ggplot http://ggplot.yhathq.com/
>
> alternatively there's D3
>
> https://d3js.org/
>
> Cheers
> L.
>
> --
> The most dangerous phrase in the language is, "We've always done it this 
> way."
>
> - Grace Hopper
>
> On 3 March 2017 at 21:22, Luvpreet Singh <s.luvp...@gmail.com 
> > wrote:
>
>> I want to display graphs in django admin. Is there any tool to display 
>> them in django admin site ? 
>>
>>
>> I have tried django-admin-tools-stat , but I don't want to create a 
>> different dashboard for the graphs.
>>
>>
>> I want the queries on the models to be displayed with the help of those 
>> graphs.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/efc0869a-d6e0-433d-842a-292ea607fe6e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/efc0869a-d6e0-433d-842a-292ea607fe6e%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2b4710a1-0f13-440c-bf15-e1ad85dc0fe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USING graphs in django admin

2017-03-03 Thread Lachlan Musicman
You could try

ggplot http://ggplot.yhathq.com/

alternatively there's D3

https://d3js.org/

Cheers
L.

--
The most dangerous phrase in the language is, "We've always done it this
way."

- Grace Hopper

On 3 March 2017 at 21:22, Luvpreet Singh <s.luvpree...@gmail.com> wrote:

> I want to display graphs in django admin. Is there any tool to display
> them in django admin site ?
>
>
> I have tried django-admin-tools-stat , but I don't want to create a
> different dashboard for the graphs.
>
>
> I want the queries on the models to be displayed with the help of those
> graphs.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/efc0869a-d6e0-433d-842a-292ea607fe6e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/efc0869a-d6e0-433d-842a-292ea607fe6e%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGBeqiPONLkH-DaScVamowoAdo%2BYK7mgsSgzByLsTqnu4PFMEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


USING graphs in django admin

2017-03-03 Thread Luvpreet Singh


I want to display graphs in django admin. Is there any tool to display them 
in django admin site ? 


I have tried django-admin-tools-stat , but I don't want to create a 
different dashboard for the graphs.


I want the queries on the models to be displayed with the help of those 
graphs.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/efc0869a-d6e0-433d-842a-292ea607fe6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Graphs in django

2012-06-12 Thread kenneth gonsalves
On Tue, 2012-06-12 at 11:24 +0530, Satvir Toor wrote:
> On Tue, Jun 12, 2012 at 11:15 AM, Alec Taylor 
> wrote:
> > Put it in the template or whatnot
> >
> > Might be an easier job for a javascript graph library, or even
> processing-js
> okie.But i am not clear with javascript graph libraray 

take a look at this:
https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart
-- 
regards
Kenneth Gonsalves

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Graphs in django

2012-06-11 Thread Anoop Thomas Mathew
Hi,

What you are generating right now, is in a GTK window (desktop). This is
not directly show-able in a browser AFIK. What you can do is to
1. Generate a jpeg/png from that, and serve it as a static file to the
browser, just like an image
2. You can send the data across to the browser as json or any other
serialized format, and plot it using a javascript plotting library like
flot or flotr2 . This option would make
it more maintainable, look nicer and interactive.
Hope I am clear to you.

Thanks and Regards,
Anoop Thomas Mathew

atm
___
Life is short, Live it hard.




On 12 June 2012 11:15, Alec Taylor  wrote:

> Put it in the template or whatnot
>
> Might be an easier job for a javascript graph library, or even
> processing-js
>
> On Tue, Jun 12, 2012 at 3:40 PM, Satvir Toor 
> wrote:
> > here is code to display sin curve
> >
> > from pylab import *
> >
> > t = arange(0.0, 2.0, 0.01)
> > s = sin(2*pi*t)
> > plot(t, s, linewidth=1.0)
> >
> > xlabel('time (s)')
> > ylabel('voltage (mV)')
> > title('About as simple as it gets, folks')
> > grid(True)
> > show()
> >
> >
> > its working well but the output is being display in different
> > window..But i need to display this curve in browser window. Please
> > tell me what changes i have to make in this code
> >
> > --
> > Satvir Kaur
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Graphs in django

2012-06-11 Thread Satvir Toor
On Tue, Jun 12, 2012 at 11:15 AM, Alec Taylor  wrote:
> Put it in the template or whatnot
>
> Might be an easier job for a javascript graph library, or even processing-js
okie.But i am not clear with javascript graph libraray

-- 
Satvir Kaur
satveerkaur.blogspot.in

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Graphs in django

2012-06-11 Thread Alec Taylor
Put it in the template or whatnot

Might be an easier job for a javascript graph library, or even processing-js

On Tue, Jun 12, 2012 at 3:40 PM, Satvir Toor  wrote:
> here is code to display sin curve
>
> from pylab import *
>
> t = arange(0.0, 2.0, 0.01)
> s = sin(2*pi*t)
> plot(t, s, linewidth=1.0)
>
> xlabel('time (s)')
> ylabel('voltage (mV)')
> title('About as simple as it gets, folks')
> grid(True)
> show()
>
>
> its working well but the output is being display in different
> window..But i need to display this curve in browser window. Please
> tell me what changes i have to make in this code
>
> --
> Satvir Kaur
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Graphs in django

2012-06-11 Thread Satvir Toor
here is code to display sin curve

from pylab import *

t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
plot(t, s, linewidth=1.0)

xlabel('time (s)')
ylabel('voltage (mV)')
title('About as simple as it gets, folks')
grid(True)
show()


its working well but the output is being display in different
window..But i need to display this curve in browser window. Please
tell me what changes i have to make in this code

-- 
Satvir Kaur

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Graphs and django

2007-07-12 Thread Ben Ford
Hey Toby,
Thanks for the input, I'll try these things on tuesday (not to make anyone
jealous but I'm going to Bali for a long weekend in about 10 minutes :-D ).
The problems came up when I followed the steps in one of your .txt files...
I haven't had a chance to rigorously explore whats going on yet, and I'll
get right on to that when I get back!
As (another) aside I'm developing a reporting framework for django at the
moment, which I'd be keen to release to the community, and I think something
like dataplot would be a really good partner to that!! I'll be in touch -
sunburn not withstanding - when I get back! :-)
Ben

On 12/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
>
>
> Hi Ben,
>
> I see what you're doing now. There are a couple things I should mention.
>
> First of all, you are right: getattr(r,'generic.scatter.plot') is not the
> same as typing r.generic.scatter.plot -- instead, it invokes the
> __getattr__ method of r, and looks for something by that name in the R
> namespace. Having found nothing, it raises an exception. If it did find
> something -- you'd have to rplot.source_for_function() or
> r.source("/path/to/generic.scatter.plot.R") first -- it would return the
> function, and assign it to r.generic_scatter_plot (rpy automatically
> translates R dots . to python underscores _ in variable names).
>
> It also looks like our package versions are significantly different. RPy
> is notoriously touchy about what particular package versions you are
> using, so that may be the cause of django.contrib.dataplot's failure on
> your system. But despite the differences in package versions, I bet that
> if you source the R code first, you will be able to execute the getattr
> properly, i.e.
>
> >>> from rpy import r
> >>> r.source
> ("/usr/local/lib/python2.4/site-packages/django/contrib/dataplot/R/generic.scatter.plot.R")
> {'visible': False, 'value': }
> >>> r.generic_scatter_plot
> 
>
> However, the whole point of django.contrib.dataplot is that it takes care
> of these details for you ---
>
> >>> from django.contrib import dataplot
> >>> plot=dataplot.Scatter('myscatterplot',fun_to_get_scatter_data)
> >>> plot.to_html()
>
> Have you tried to get the demo bike app (django.contrib.dataplot.bike) to
> work? If you are able to get those simple examples working, it should be
> straightforward to translate the design paradigm to your problems.
>
> Sincerely,
> Toby Dylan Hocking
> http://www.ocf.berkeley.edu/~tdhock
>
> On Thu, 12 Jul 2007, Ben Ford wrote:
>
> > Hi Toby,
> > My versions are:
> > R:2.4.0
> > Python:   2.5.1
> > Rpy:1.0-RC2
> >
> > Sorry I wasn't very clear earlier... I imported r into ipython to have a
> > play with it and see what happens. I tried getattr(r,'
> generic.scatter.plot')
> > which didn't work - I'm under the impression that getattr won't work
> with
> > dotted notation like that if you're doing normal object lookup, am I
> right
> > in saying that r does it differently to python? So i tried getattr(r,
> > 'generic') and that didn't work either. The error I get is:
> >> Error in get(x, envir, mode, inherits) : variable "generic.time.series"
> > was not found
> > I tried it with underscores too and I got exactly the same message...
> >
> > In fact just having looked through the source and having a play with rpy
> it
> > seems that there are bugs all over the place:
> >
>  from rpy import r
> > RHOME= /usr/lib/R
> > RVERSION= 2.4.0
> > RVER= 2040
> > RUSER= /home/ben
> > Loading Rpy version 2040 .. Done.
> > Creating the R object 'r' ..  Done
>  r
> > Traceback (most recent call last):
> >  File "", line 1, in 
> >  File "/usr/lib/python2.5/site-packages/rpy.py", line 307, in __repr__
> >Rver = self.__getitem__('R_version_string')
> >  File "/usr/lib/python2.5/site-packages/rpy.py", line 290, in
> __getitem__
> >obj = self.__dict__[name] = self.__dict__.get(name, self.get(name))
> > rpy.RException: Error in get(x, envir, mode, inherits) : variable
> > "R_version_string" was not found
> >
> > It looks like the logic in R.__getattr__ isn't working properly! I'll
> > reinstall it at some point and see how it works :-)
> > Cheers
> > Ben
> >
> > On 12/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi Ben,
> >>
> >> I'm excited to hear that you got a copy of django.contrib.dataplot and
> you
> >> are trying it out. I will try to help you debug the problem, but the
> >> full traceback may be more useful. Can you send it?
> >>
> >> The purpose of the get_r_fun method is to look at the current R
> >> environment and check if the desired R function has been source'ed yet.
> >> This is one of the first steps before passing the data before R.
> >>
> >> I take the "r has no attribute generic" to refer to one of the generic
> >> plotting functions named in one of the RPlot subclasses -- you must be
> >> dealing with Scatter, TimeSeries, or NormalQQPlot, right? Are you sure
> it
> >> doesn't say something like "r has no attribute 

Re: Graphs and django

2007-07-12 Thread Toby Dylan Hocking

Hey Jeremy,

Thanks for the input. You are correct: I am running a recent copy of 
django from SVN on the primary machine I am using to develop 
django.contrib.dataplot.

In fact, I ran into the same problem that you did when I tried to port 
django.contrib.dataplot to a different machine -- a machine running Django 
0.95. After realizing the existence of the new backwards-incompatible 
changes, I was able to get the django.contrib.dataplot.bike demo app 
working on my old system by simply adding the max_digits and 
decimal_places arguments to the bike/models.py FloatFields. Another 
solution would have been to upgrade the django libraries to the new trunk 
versions.

Again, thanks for trying out my library. I'm anxious to hear if you're 
able to get it working. Once you are able to get the bike app working on 
your system, it should be straightforward to translate the design 
paradigms to your plotting application.

Sincerely,
Toby Dylan Hocking
http://www.ocf.berkeley.edu/~tdhock

On Wed, 11 Jul 2007, Jeremy Dunck wrote:

>
> On 7/11/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
>> If you still need help with making data-driven plots, why don't you check
>> out my new Django package --- I'd like some testers and comments.
>
> Initial reaction-- sweet!
>
> After linking dataplot into my contribs dir and adding both dataplot
> and dataplot.bike in my INSTALLED_APPS, I get this:
>
> [EMAIL PROTECTED]:~/work/pegasus/b-schools$ ~/django-admin.py syncdb
> RHOME= /usr/lib/R
> RVERSION= 2.4.1
> RVER= 2041
> RUSER= /home/jdunck
> Loading Rpy version 2041 .. Done.
> Creating the R object 'r' ..  Done
> Error: Couldn't install apps, because there were errors in one or more models:
> bike.ride: "distance": FloatFields require a "decimal_places" attribute.
> 
>
> A quick check indicates that this is because of a backwards incompat in 
> Django:
> http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#RenamedFloatFieldtoDecimalField
>
> I guess you're running on latest trunk?
>
> >

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Graphs and django

2007-07-12 Thread Toby Dylan Hocking

Hi Ben,

I see what you're doing now. There are a couple things I should mention.

First of all, you are right: getattr(r,'generic.scatter.plot') is not the 
same as typing r.generic.scatter.plot -- instead, it invokes the 
__getattr__ method of r, and looks for something by that name in the R 
namespace. Having found nothing, it raises an exception. If it did find 
something -- you'd have to rplot.source_for_function() or 
r.source("/path/to/generic.scatter.plot.R") first -- it would return the 
function, and assign it to r.generic_scatter_plot (rpy automatically 
translates R dots . to python underscores _ in variable names).

It also looks like our package versions are significantly different. RPy 
is notoriously touchy about what particular package versions you are 
using, so that may be the cause of django.contrib.dataplot's failure on 
your system. But despite the differences in package versions, I bet that 
if you source the R code first, you will be able to execute the getattr 
properly, i.e.

>>> from rpy import r
>>> r.source("/usr/local/lib/python2.4/site-packages/django/contrib/dataplot/R/generic.scatter.plot.R")
{'visible': False, 'value': }
>>> r.generic_scatter_plot


However, the whole point of django.contrib.dataplot is that it takes care 
of these details for you ---

>>> from django.contrib import dataplot
>>> plot=dataplot.Scatter('myscatterplot',fun_to_get_scatter_data)
>>> plot.to_html()

Have you tried to get the demo bike app (django.contrib.dataplot.bike) to 
work? If you are able to get those simple examples working, it should be 
straightforward to translate the design paradigm to your problems.

Sincerely,
Toby Dylan Hocking
http://www.ocf.berkeley.edu/~tdhock

On Thu, 12 Jul 2007, Ben Ford wrote:

> Hi Toby,
> My versions are:
> R:2.4.0
> Python:   2.5.1
> Rpy:1.0-RC2
>
> Sorry I wasn't very clear earlier... I imported r into ipython to have a
> play with it and see what happens. I tried getattr(r,' generic.scatter.plot')
> which didn't work - I'm under the impression that getattr won't work with
> dotted notation like that if you're doing normal object lookup, am I right
> in saying that r does it differently to python? So i tried getattr(r,
> 'generic') and that didn't work either. The error I get is:
>> Error in get(x, envir, mode, inherits) : variable "generic.time.series"
> was not found
> I tried it with underscores too and I got exactly the same message...
>
> In fact just having looked through the source and having a play with rpy it
> seems that there are bugs all over the place:
>
 from rpy import r
> RHOME= /usr/lib/R
> RVERSION= 2.4.0
> RVER= 2040
> RUSER= /home/ben
> Loading Rpy version 2040 .. Done.
> Creating the R object 'r' ..  Done
 r
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "/usr/lib/python2.5/site-packages/rpy.py", line 307, in __repr__
>Rver = self.__getitem__('R_version_string')
>  File "/usr/lib/python2.5/site-packages/rpy.py", line 290, in __getitem__
>obj = self.__dict__[name] = self.__dict__.get(name, self.get(name))
> rpy.RException: Error in get(x, envir, mode, inherits) : variable
> "R_version_string" was not found
>
> It looks like the logic in R.__getattr__ isn't working properly! I'll
> reinstall it at some point and see how it works :-)
> Cheers
> Ben
>
> On 12/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi Ben,
>>
>> I'm excited to hear that you got a copy of django.contrib.dataplot and you
>> are trying it out. I will try to help you debug the problem, but the
>> full traceback may be more useful. Can you send it?
>>
>> The purpose of the get_r_fun method is to look at the current R
>> environment and check if the desired R function has been source'ed yet.
>> This is one of the first steps before passing the data before R.
>>
>> I take the "r has no attribute generic" to refer to one of the generic
>> plotting functions named in one of the RPlot subclasses -- you must be
>> dealing with Scatter, TimeSeries, or NormalQQPlot, right? Are you sure it
>> doesn't say something like "r has no attribute generic.scatter.plot"? You
>> might try changing the dots . to underscores _ in the
>> r_fun_name='generic.scatter.plot' line in the definition of the
>> ScatterPlot subclass.
>>
>> Maybe your version of RPy isn't translating python names into R names the
>> same way as mine is? I'm using RPy 0.4.6-3ubuntu2 Python 2.4.2-0ubuntu3
>> and R 2.2.1-2 on ubuntu dapper. What are your versions?
>>
>> Sincerely,
>> Toby Dylan Hocking
>> http://www.ocf.berkeley.edu/~tdhock
>>
>> On Wed, 11 Jul 2007, Ben Ford wrote:
>>
>>> Hi Toby
>>> I've grabbed a copy of your code but the RPlot.get_r_fun method isn't
>>> working for me... Could you perhaps explain how it does the mapping to
>> the R
>>> function? What my testing is saying to me is that r (the one that's
>> imported
>>> at the top of __init__.py) has no attribute generic... I've had a very

Re: Graphs and django

2007-07-11 Thread Ben Ford
Hi Toby,
My versions are:
R:2.4.0
Python:   2.5.1
Rpy:1.0-RC2

Sorry I wasn't very clear earlier... I imported r into ipython to have a
play with it and see what happens. I tried getattr(r,' generic.scatter.plot')
which didn't work - I'm under the impression that getattr won't work with
dotted notation like that if you're doing normal object lookup, am I right
in saying that r does it differently to python? So i tried getattr(r,
'generic') and that didn't work either. The error I get is:
> Error in get(x, envir, mode, inherits) : variable "generic.time.series"
was not found
I tried it with underscores too and I got exactly the same message...

In fact just having looked through the source and having a play with rpy it
seems that there are bugs all over the place:

>>> from rpy import r
RHOME= /usr/lib/R
RVERSION= 2.4.0
RVER= 2040
RUSER= /home/ben
Loading Rpy version 2040 .. Done.
Creating the R object 'r' ..  Done
>>> r
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.5/site-packages/rpy.py", line 307, in __repr__
Rver = self.__getitem__('R_version_string')
  File "/usr/lib/python2.5/site-packages/rpy.py", line 290, in __getitem__
obj = self.__dict__[name] = self.__dict__.get(name, self.get(name))
rpy.RException: Error in get(x, envir, mode, inherits) : variable
"R_version_string" was not found

It looks like the logic in R.__getattr__ isn't working properly! I'll
reinstall it at some point and see how it works :-)
Cheers
Ben

On 12/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
>
>
> Hi Ben,
>
> I'm excited to hear that you got a copy of django.contrib.dataplot and you
> are trying it out. I will try to help you debug the problem, but the
> full traceback may be more useful. Can you send it?
>
> The purpose of the get_r_fun method is to look at the current R
> environment and check if the desired R function has been source'ed yet.
> This is one of the first steps before passing the data before R.
>
> I take the "r has no attribute generic" to refer to one of the generic
> plotting functions named in one of the RPlot subclasses -- you must be
> dealing with Scatter, TimeSeries, or NormalQQPlot, right? Are you sure it
> doesn't say something like "r has no attribute generic.scatter.plot"? You
> might try changing the dots . to underscores _ in the
> r_fun_name='generic.scatter.plot' line in the definition of the
> ScatterPlot subclass.
>
> Maybe your version of RPy isn't translating python names into R names the
> same way as mine is? I'm using RPy 0.4.6-3ubuntu2 Python 2.4.2-0ubuntu3
> and R 2.2.1-2 on ubuntu dapper. What are your versions?
>
> Sincerely,
> Toby Dylan Hocking
> http://www.ocf.berkeley.edu/~tdhock
>
> On Wed, 11 Jul 2007, Ben Ford wrote:
>
> > Hi Toby
> > I've grabbed a copy of your code but the RPlot.get_r_fun method isn't
> > working for me... Could you perhaps explain how it does the mapping to
> the R
> > function? What my testing is saying to me is that r (the one that's
> imported
> > at the top of __init__.py) has no attribute generic... I've had a very
> brief
> > look at rpy before, but I'm not exactly familiar with it's inner
> > workings
> > Great work, I've been meaning to have a crack at something like this for
> > ages!!
> > Ben
> >
> > On 11/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi there,
> >>
> >> If you still need help with making data-driven plots, why don't you
> check
> >> out my new Django package --- I'd like some testers and comments.
> >> Basically it is an interface to the R programming language (for
> statistics
> >> and graphics) through the RPy package. You can download my latest
> release:
> >>
> >> http://www.ocf.berkeley.edu/~tdhock/dataplot-0.2.tgz
> >>
> >> I'm a statistician who has been using this system for some time at my
> >> work, but I finally am getting around to generalizing it and packaging
> it
> >> for general use with the Django framework.
> >>
> >> The installation instructions are in INSTALL.txt in the archive.
> >> Documentation is mostly present in docstrings at the moment -- I'm
> working
> >> on more tutorials, but the .txt files and the example app should be
> enough
> >> to get you started.
> >>
> >> Sincerely,
> >> Toby Dylan Hocking
> >> http://www.ocf.berkeley.edu/~tdhock
> >>
> >>
> >>>
> >>
> >
> >
> > --
> > Regards,
> > Ben Ford
> > [EMAIL PROTECTED]
> > +628111880346
> >
> > >
> >
>
> >
>


-- 
Regards,
Ben Ford
[EMAIL PROTECTED]
+628111880346

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Re: Graphs and django

2007-07-11 Thread Jeremy Dunck

On 7/11/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
> If you still need help with making data-driven plots, why don't you check
> out my new Django package --- I'd like some testers and comments.

Initial reaction-- sweet!

After linking dataplot into my contribs dir and adding both dataplot
and dataplot.bike in my INSTALLED_APPS, I get this:

[EMAIL PROTECTED]:~/work/pegasus/b-schools$ ~/django-admin.py syncdb
RHOME= /usr/lib/R
RVERSION= 2.4.1
RVER= 2041
RUSER= /home/jdunck
Loading Rpy version 2041 .. Done.
Creating the R object 'r' ..  Done
Error: Couldn't install apps, because there were errors in one or more models:
bike.ride: "distance": FloatFields require a "decimal_places" attribute.


A quick check indicates that this is because of a backwards incompat in Django:
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#RenamedFloatFieldtoDecimalField

I guess you're running on latest trunk?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Graphs and django

2007-07-11 Thread Toby Dylan Hocking

Hi Ben,

I'm excited to hear that you got a copy of django.contrib.dataplot and you 
are trying it out. I will try to help you debug the problem, but the 
full traceback may be more useful. Can you send it?

The purpose of the get_r_fun method is to look at the current R 
environment and check if the desired R function has been source'ed yet. 
This is one of the first steps before passing the data before R.

I take the "r has no attribute generic" to refer to one of the generic 
plotting functions named in one of the RPlot subclasses -- you must be 
dealing with Scatter, TimeSeries, or NormalQQPlot, right? Are you sure it 
doesn't say something like "r has no attribute generic.scatter.plot"? You 
might try changing the dots . to underscores _ in the 
r_fun_name='generic.scatter.plot' line in the definition of the 
ScatterPlot subclass.

Maybe your version of RPy isn't translating python names into R names the 
same way as mine is? I'm using RPy 0.4.6-3ubuntu2 Python 2.4.2-0ubuntu3 
and R 2.2.1-2 on ubuntu dapper. What are your versions?

Sincerely,
Toby Dylan Hocking
http://www.ocf.berkeley.edu/~tdhock

On Wed, 11 Jul 2007, Ben Ford wrote:

> Hi Toby
> I've grabbed a copy of your code but the RPlot.get_r_fun method isn't
> working for me... Could you perhaps explain how it does the mapping to the R
> function? What my testing is saying to me is that r (the one that's imported
> at the top of __init__.py) has no attribute generic... I've had a very brief
> look at rpy before, but I'm not exactly familiar with it's inner
> workings
> Great work, I've been meaning to have a crack at something like this for
> ages!!
> Ben
>
> On 11/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi there,
>>
>> If you still need help with making data-driven plots, why don't you check
>> out my new Django package --- I'd like some testers and comments.
>> Basically it is an interface to the R programming language (for statistics
>> and graphics) through the RPy package. You can download my latest release:
>>
>> http://www.ocf.berkeley.edu/~tdhock/dataplot-0.2.tgz
>>
>> I'm a statistician who has been using this system for some time at my
>> work, but I finally am getting around to generalizing it and packaging it
>> for general use with the Django framework.
>>
>> The installation instructions are in INSTALL.txt in the archive.
>> Documentation is mostly present in docstrings at the moment -- I'm working
>> on more tutorials, but the .txt files and the example app should be enough
>> to get you started.
>>
>> Sincerely,
>> Toby Dylan Hocking
>> http://www.ocf.berkeley.edu/~tdhock
>>
>>
>>>
>>
>
>
> -- 
> Regards,
> Ben Ford
> [EMAIL PROTECTED]
> +628111880346
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Graphs and django

2007-07-11 Thread Ben Ford
Hi Toby
I've grabbed a copy of your code but the RPlot.get_r_fun method isn't
working for me... Could you perhaps explain how it does the mapping to the R
function? What my testing is saying to me is that r (the one that's imported
at the top of __init__.py) has no attribute generic... I've had a very brief
look at rpy before, but I'm not exactly familiar with it's inner
workings
Great work, I've been meaning to have a crack at something like this for
ages!!
Ben

On 11/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
>
>
> Hi there,
>
> If you still need help with making data-driven plots, why don't you check
> out my new Django package --- I'd like some testers and comments.
> Basically it is an interface to the R programming language (for statistics
> and graphics) through the RPy package. You can download my latest release:
>
> http://www.ocf.berkeley.edu/~tdhock/dataplot-0.2.tgz
>
> I'm a statistician who has been using this system for some time at my
> work, but I finally am getting around to generalizing it and packaging it
> for general use with the Django framework.
>
> The installation instructions are in INSTALL.txt in the archive.
> Documentation is mostly present in docstrings at the moment -- I'm working
> on more tutorials, but the .txt files and the example app should be enough
> to get you started.
>
> Sincerely,
> Toby Dylan Hocking
> http://www.ocf.berkeley.edu/~tdhock
>
>
> >
>


-- 
Regards,
Ben Ford
[EMAIL PROTECTED]
+628111880346

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Graphs and django

2007-07-11 Thread Toby Dylan Hocking

Hi there,

If you still need help with making data-driven plots, why don't you check 
out my new Django package --- I'd like some testers and comments. 
Basically it is an interface to the R programming language (for statistics 
and graphics) through the RPy package. You can download my latest release:

http://www.ocf.berkeley.edu/~tdhock/dataplot-0.2.tgz

I'm a statistician who has been using this system for some time at my 
work, but I finally am getting around to generalizing it and packaging it 
for general use with the Django framework.

The installation instructions are in INSTALL.txt in the archive. 
Documentation is mostly present in docstrings at the moment -- I'm working 
on more tutorials, but the .txt files and the example app should be enough 
to get you started.

Sincerely,
Toby Dylan Hocking
http://www.ocf.berkeley.edu/~tdhock


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Graphs and django

2007-06-21 Thread Chundermonkey


i've used chartdirector in the past with django, very easy to install,
although the free version cannot be used for commercial purposes.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Graphs and django

2007-06-21 Thread Kent Johnson

Martin Winkler wrote:
> If you want do do really nice graphs, you might take a look at some
> screenshots of matplotlib:
> http://matplotlib.sourceforge.net/screenshots.html
> 
> The module is quite large, but has really many functions: from simple
> pie charts (3D too) up to finance charts which gets data from
> finance.yahoo.com
> 
> I took quite some time until I figured how matplotlib/pylab works, but
> eventually I succeeded. Hopefully you'll get to some good results
> faster than me :)

I had a similar experience with matplotlib. The docs are not always too 
easy to understand so you have to do some digging and experimenting but 
it is very flexible  and powerful and the resulting charts are good quality.

A recipe here shows how to return a matplotlib image in a Django response:
http://www.scipy.org/Cookbook/Matplotlib/Django

Kent


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Graphs and django

2007-06-20 Thread Martin Winkler

Am Wed, 20 Jun 2007 16:26:24 +0100
schrieb "Gerry Steele" <[EMAIL PROTECTED]>:

> My needs are to create line, bar and pie charts.

One fast way for line graphs would be plain PIL
(http://www.pythonware.com/products/pil/) module. But the results are
usually not really pretty: No antialiasing of lines, except you also use
the aggdraw module (http://effbot.org/zone/aggdraw-index.htm).

If you want do do really nice graphs, you might take a look at some
screenshots of matplotlib:
http://matplotlib.sourceforge.net/screenshots.html

The module is quite large, but has really many functions: from simple
pie charts (3D too) up to finance charts which gets data from
finance.yahoo.com

I took quite some time until I figured how matplotlib/pylab works, but
eventually I succeeded. Hopefully you'll get to some good results
faster than me :)

Martin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Graphs and django

2007-06-20 Thread Joseph Heck

I've been using FusionGraphs (flash based graphing, generating the
"data" through XML templates) with good success. It's not directly in
python using PIL or anything, but it's been quick and effective.

-joe

On 6/20/07, Gerry Steele <[EMAIL PROTECTED]> wrote:
>
> i was wondering if anyone had any experience integrating any python
> graphing or anything similar libraries into django and which library
> people might recommend.
>
> My needs are to create line, bar and pie charts.
>
>
> Many Thanks
> Gerry
> --
> Gerry Steele
> http://belfast.no-ip.info/
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Graphs and django

2007-06-20 Thread Gerry Steele

i was wondering if anyone had any experience integrating any python
graphing or anything similar libraries into django and which library
people might recommend.

My needs are to create line, bar and pie charts.


Many Thanks
Gerry
-- 
Gerry Steele
http://belfast.no-ip.info/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-08 Thread Andy Robinson

Thanks Joseph.  You might find it interesting to take a look at our
Diagra product datasheet...  we've been in the financial charts
business since 2001
   http://www.reportlab.com/docs/diagra-ds.pdf

The engine and most chart types have been in the open source package
since 2001, but we've not really promoted it.  Now that we're getting
into Django, hopefully we'll get some nice examples out to inspire
people..

- Andy


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-08 Thread [EMAIL PROTECTED]

there is also pyChart and JS/SVG PlotKit -
http://www.liquidx.net/plotkit/ which is used by TurboGears :)
NeedsTesting...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Re: Creating graphs in Django application

2006-09-08 Thread Joseph Kocherhans

On 9/8/06, Andy Robinson <[EMAIL PROTECTED]> wrote:
>
> I have just added an article to the Wiki on how to create charts using
> ReportLab's graphics library  I hope this helps!
>
> http://code.djangoproject.com/wiki/Charts

Very cool. Thanks Andy! I didn't know ReportLab did anything but pdf before :)

Joseph

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-08 Thread Andy Robinson

I have just added an article to the Wiki on how to create charts using
ReportLab's graphics library  I hope this helps!

http://code.djangoproject.com/wiki/Charts

Andy Robinson, CEO/Chief Architect, ReportLab Europe Ltd


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-08 Thread Derek Hoy

On 9/7/06, Devraj <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> I am attempting to create graphs in my Django app.to provide reporting
> features. Are there any libraries available to do this in Python or
> Django?

haven't used it, but there's also Ploticus:
- http://ploticus.sourceforge.net/
- python API  http://www.srcc.lsu.edu/~davids/ploticus_module.html

-- 
Derek

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-07 Thread Jeremy Kelley

Quoting Devraj ([EMAIL PROTECTED]):
> 
> Hi everyone,
> 
> I am attempting to create graphs in my Django app.to provide reporting
> features. Are there any libraries available to do this in Python or
> Django?
> 
> Something like http://www.qualityunit.com/postgraph/ for PHP
> 
> Thanks

I'll second (third? fourth?) the matplotlib vote.  I've used it in a
couple of projects with django and it works quite well.  My biggest
complaint about matplotlib is the couple of dependencies it wants, but
the latest releases have taken care of most of that problem, so give it
a try.

If matplotlib doesn't work for you, there's another lib called
ChartDirector that we've used at work.  It's got PHP, and Python front
ends and the api is fairly consistent.  I think it costs about $75 for a
license, but I don't really remember.  Check it at
http://www.advsofteng.com/cdpython.html

Someone also ported the excellent JPGraph PHP lib to python.  You can
get it at http://metagram.webreply.com/ although I've not looked at it
in a long time and I'm not sure how well maintained it is.

Hope that helps ya,
jeremy

-- 
Jeremy Kelley <[EMAIL PROTECTED]>
gpg 1024D/EAB7CA38  6FF4 483B D7EA A09C A3E0 1CE1 F0A4 8C8E EAB7 CA38
The Christian ideal has not been tried and found wanting; it has been 
found difficult and left untried. - G.K. Chesterton

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-07 Thread Nate Straz

On Thu, Sep 07, 2006 at 01:39:30AM -0700, Devraj wrote:
> I am attempting to create graphs in my Django app.to provide reporting
> features. Are there any libraries available to do this in Python or
> Django?

PyX, http://pyx.sourceforge.net/

Nate

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-07 Thread [EMAIL PROTECTED]

non free, but nice: http://www.advsofteng.com/cdpython.html


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-07 Thread Jay Klehr

If you don't mind using Flash as the output medium you could try this:

http://www.maani.us/xml_charts/

Works with anything that is able to output XML, I've used the PHP 
version a bit and really like a lot of the options.

Jay


Devraj wrote:
> Hi everyone,
>
> I am attempting to create graphs in my Django app.to provide reporting
> features. Are there any libraries available to do this in Python or
> Django?
>
> Something like http://www.qualityunit.com/postgraph/ for PHP
>
> Thanks
>
>
> >
>
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-07 Thread Gacha


Devraj wrote:
> Hi everyone,
>
> I am attempting to create graphs in my Django app.to provide reporting
> features. Are there any libraries available to do this in Python or
> Django?
>
> Something like http://www.qualityunit.com/postgraph/ for PHP
> 
> Thanks

Try http://matplotlib.sourceforge.net/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Creating graphs in Django application

2006-09-07 Thread Gacha

Try: http://matplotlib.sourceforge.net/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Creating graphs in Django application

2006-09-07 Thread Devraj

Hi everyone,

I am attempting to create graphs in my Django app.to provide reporting
features. Are there any libraries available to do this in Python or
Django?

Something like http://www.qualityunit.com/postgraph/ for PHP

Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---