Modify

Opened 8 years ago

Last modified 8 years ago

#4233 new enhancement

Adding "chd" support in place of missing "query"

Reported by: petraA Owned by: Martin Aspeli
Priority: normal Component: GoogleChartPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

query is equivalent to chd, though is a required parameter. It would be nice to use chd in place of missing query so a graph can be generated with embedded data, without querying of database. Hence, the following call would be possible:

[[GChart(type="p3", chl="Hello|World", chs="250x100", chd="t:60.0,40.0")]]

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by Martin Aspeli

I'd accept such a patch. :-)

comment:2 Changed 8 years ago by metafeather

I've gotten around this by declaring both using the #!GChart syntax:

  type="lxy",
  query="SELECT * FROM ticket",
  cht="lxy",
  chs="500x400",
  chtt="Iteration burndown",
  chg="10,5",
  chdl="Target|Actual",
  chco="C6D9FD,ff0000",
  chm="D,c6d9fd,0,0,6|o,ff0000,1,-1,8",
  chxt="x,y",
  chxl="0:|Start|Mon|Tue|Wed|Thur|Fri|Mon|Tue|Wed|Thur|Fri|\
              1:|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20",
  chds="0,10,0,20,0,10,0,20",
  chd="t:0,10|20,0|0,0,1,2,3,4,5,6,7,8,9,10,11|20"

The results of the query are ignored and the chd data used instead.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Martin Aspeli.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.